summaryrefslogblamecommitdiff
path: root/nixpkgs/icewm.nix
blob: 225c8fc17b635d871fbeda74b9648e53b8ddb874 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                

                             






                                                                    




                                   
                                                         
                                                                           


                  
                          




























                                                                                                                  
                                           
 
{ pkgs, ... }: {
  imports = [ ./wmonly.nix ];

  nixpkgs.config.packageOverrides = pkgs: {
    chicago95 = import ../nixos/pkg_chicago95.nix { inherit pkgs; };
  };

  home.file = {
    ".config/sx/sxrc".executable = true;
    ".config/sx/sxrc".text = ''
      export XMODIFIERS="@im=fcitx"
      export XMODIFIER="@im=fcitx"
      export GTK_IM_MODULE="fcitx"
      export QT_IM_MODULE="fcitx"
      fcitx5 &
      ${pkgs.xorg.xsetroot}/bin/xsetroot -solid "#008080"
      ${pkgs.xorg.xkbcomp}/bin/xkbcomp ${../xkb/symbols/custom-fr} $DISPLAY
      xset s off
      xset -dpms
      pcmanfm -d &
      #pcmanfm --desktop &
      nm-applet &
      icewm-session
    '';
    ".config/icewm/preferences".source = ../icewm/preferences;
    ".config/icewm/keys".source = ../icewm/keys;
    ".config/icewm/menu".source = ../icewm/menu;
    ".config/icewm/theme".source = ../icewm/theme;
    ".config/icewm/toolbar".text = ''
      prog "Terminal" ${pkgs.chicago95}/share/icons/Chicago95/apps/24/utilities-terminal.png st
      prog "File manager" ${pkgs.chicago95}/share/icons/Chicago95/apps/24/system-file-manager.png pcmanfm -n /Z/lx
      prog "Qutebrowser" ${pkgs.qutebrowser}/share/icons/hicolor/32x32/apps/qutebrowser.png qutebrowser
      prog "Firefox" ${pkgs.firefox}/share/icons/hicolor/32x32/apps/firefox.png ${pkgs.firefox}/bin/firefox
      # prog "Thunderbird" ${pkgs.thunderbird}/share/icons/hicolor/32x32/apps/thunderbird.png thunderbird
      prog "Music" ${pkgs.sonixd}/share/icons/hicolor/32x32/apps/sonixd.png sonixd
    '';
    ".gtkrc-2.0".text = ''
      gtk-theme-name = "Chicago95"
      gtk-icon-theme-name = "Chicago95"
    '';
    ".config/gtk-3.0/settings.ini".text = ''
      [Settings]
      gtk-icon-theme-name = Chicago95
      gtk-theme-name = Chicago95
    '';
    ".config/pcmanfm/default/pcmanfm.conf".source = ../pcmanfm/pcmanfm.conf;
    ".config/pcmanfm/default/desktop-items-0.conf".source =
      ../pcmanfm/desktop-items-0.conf;
  };

  home.packages = with pkgs; [ chicago95 ];
}