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








                                                                    
                                                                           


                  
                          















































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

  home.file = {
    ".config/sx/sxrc".executable = true;
    ".config/sx/sxrc".text = ''
      ${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 xfce.tumbler ];

  xdg.desktopEntries.llpp = {
    name = "llpp";
    genericName = "PDF viewer";
    exec = "llpp %f";
    terminal = false;
    categories = [ "Graphics" "Viewer" ];
    mimeType = [ "application/pdf" "application/x-pdf" ];
    type = "Application";
  };
  xdg.mimeApps.enable = true;
  xdg.mimeApps.defaultApplications = {
    "application/pdf" = [ "epdfview.desktop" ];
    "image/jpeg" = [ "org.xfce.ristretto.desktop" ];
    "image/png" = [ "org.xfce.ristretto.desktop" ];
    "text/plain" = [ "leafpad.desktop" ];
  };
}