summaryrefslogtreecommitdiff
path: root/nixpkgs/icewm.nix
blob: 6bb963cf24fa5b5c37d8e7d0cc42c35605ac70cf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
{ 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 ];

  xdg.mimeApps.defaultApplications = {
    "application/pdf" = [ "epdfview.desktop" ];
    "image/jpeg" = [ "org.xfce.ristretto.desktop" ];
    "image/png" = [ "org.xfce.ristretto.desktop" ];
    "text/plain" = [ "leafpad.desktop" ];
  };
}