]> Git — Sourcephile - julm/julm-nix.git/blob - homes/softwares/xmonad.nix
patate: various fixes
[julm/julm-nix.git] / homes / softwares / xmonad.nix
1 { pkgs, lib, config, ... }:
2 {
3 home.file = lib.optionalAttrs config.xsession.windowManager.xmonad.enable {
4 ".xmonad/xmobar.hs".source = xmonad/xmobar.hs;
5 };
6 xsession = {
7 scriptPath = ".hm-xsession";
8 initExtra = ''
9 xset dpms 380 640 1200
10 ${pkgs.xorg.xsetroot}/bin/xsetroot -solid black -fg black -bg white -cursor_name left_ptr
11 ${pkgs.rxvt-unicode}/bin/urxvtd -f -o
12 ${pkgs.parcellite}/bin/parcellite &
13 ${pkgs.pasystray}/bin/pasystray &
14 '';
15 windowManager.xmonad = {
16 haskellPackages = pkgs.haskellPackages;
17 #extraPackages = haskellPackages: [ ];
18 enableContribAndExtras = true;
19 config = xmonad/xmonad.hs;
20 };
21 };
22 home.packages = lib.mkIf config.xsession.windowManager.xmonad.enable [
23 pkgs.acpilight
24 pkgs.gmrun
25 pkgs.light
26 pkgs.mate.caja
27 pkgs.rxvt-unicode
28 pkgs.stalonetray
29 pkgs.wmname
30 #pkgs.xautolock
31 #pkgs.xlockmore
32 pkgs.xmobar
33 pkgs.xorg.xev
34 pkgs.xorg.xhost
35 pkgs.xorg.xmodmap
36 pkgs.xorg.xset
37 pkgs.xsecurelock
38 pkgs.xss-lock
39 ];
40 }