2019-10-24 02:20:38 +02:00
|
|
|
{ pkgs, lib, config, ... }:
|
|
|
|
let
|
|
|
|
|
2020-02-14 19:06:43 +01:00
|
|
|
background-repo = pkgs.fetchgit {
|
|
|
|
url = "https://git.ingolf-wagner.de/palo/image-generator-lib";
|
2020-04-13 11:00:33 +02:00
|
|
|
rev = "95bc53de0b73917c5571a061a6702c71c9bf173e";
|
|
|
|
sha256 = "1x14pknv0v38x0g5sf6k25g9w7r7j0mndazq5ixjvybwdynk25kw";
|
2020-02-14 19:06:43 +01:00
|
|
|
};
|
2020-02-16 04:16:07 +01:00
|
|
|
|
2019-12-20 05:54:26 +01:00
|
|
|
nixCommands = { height, width }:
|
|
|
|
pkgs.writeText "NixCommands.hs" # haskell
|
|
|
|
''
|
|
|
|
module NixCommands where
|
2019-10-24 02:20:38 +02:00
|
|
|
|
2019-12-20 05:54:26 +01:00
|
|
|
nixStartIrc = "${pkgs.rxvt_unicode}/bin/urxvt -e irc"
|
|
|
|
nixStartAudacious = "${pkgs.audacious}/bin/audacious"
|
|
|
|
nixStartFlameshot = "${pkgs.flameshot}/bin/flameshot gui -p /share/"
|
|
|
|
nixInvertColors = "${pkgs.xcalib}/bin/xcalib -invert -alter"
|
|
|
|
nixStartRedshift = "${pkgs.redshift}/bin/redshift -O 6100 -g 0.9:0.9:0.9 -b 0.9"
|
|
|
|
nixResetRedshift = "${pkgs.redshift}/bin/redshift -x"
|
|
|
|
nixSetCursorImage = "${pkgs.xorg.xsetroot}/bin/xsetroot -cursor_name left_ptr"
|
2021-09-29 05:05:26 +02:00
|
|
|
nixSetBackground = "${pkgs.polygon-art.polygon-art}/bin/rings --height ${
|
2019-12-20 05:54:26 +01:00
|
|
|
toString height
|
|
|
|
} --width ${
|
|
|
|
toString width
|
2021-04-15 06:50:16 +02:00
|
|
|
} /dev/shm/background.png && ${pkgs.feh}/bin/feh --bg-scale /dev/shm/background.png"
|
2019-12-20 05:54:26 +01:00
|
|
|
nixStartAlbert = "${pkgs.albert}/bin/albert"
|
|
|
|
nixStartCopyq = "${pkgs.copyq}/bin/copyq"
|
|
|
|
nixShowCopyq = "${pkgs.copyq}/bin/copyq show"
|
2020-05-16 02:25:06 +02:00
|
|
|
nixStartTerminal = "${pkgs.rxvt_unicode}/bin/urxvtc"
|
2020-02-18 23:28:39 +01:00
|
|
|
nixAlsaRaiseVolume = "${pkgs.alsaUtils}/bin/amixer set Master 5%+"
|
|
|
|
nixAlsaLowerVolume = "${pkgs.alsaUtils}/bin/amixer set Master 5%-"
|
|
|
|
nixAlsaMute = "${pkgs.alsaUtils}/bin/amixer set Master toggle"
|
2020-03-28 11:50:50 +01:00
|
|
|
nixNotifySend = "${pkgs.libnotify}/bin/notify-send"
|
2019-12-20 05:54:26 +01:00
|
|
|
'';
|
2019-10-24 02:20:38 +02:00
|
|
|
in {
|
|
|
|
|
|
|
|
home-manager.users.mainUser = {
|
|
|
|
home.file.".xmonad/xmonad.hs".source = ./xmonad/Main.hs;
|
|
|
|
home.file.".xmonad/lib/NixCommands.hs".source = nixCommands {
|
|
|
|
height = config.configuration.desktop.height;
|
|
|
|
width = config.configuration.desktop.width;
|
|
|
|
};
|
2019-12-20 05:54:26 +01:00
|
|
|
home.file.".xmonad/lib/SolarizedLight.hs".source =
|
|
|
|
./xmonad/SolarizedLight.hs;
|
2019-10-24 02:20:38 +02:00
|
|
|
home.file.".xmonad/lib/SolarizedDark.hs".source = ./xmonad/SolarizedDark.hs;
|
|
|
|
home.file.".xmonad/lib/FloatKeys.hs".source = ./xmonad/FloatKeys.hs;
|
|
|
|
home.file.".xmonad/lib/TabbedFix.hs".source = ./xmonad/TabbedFix.hs;
|
2019-11-06 03:52:08 +01:00
|
|
|
home.file.".xmonad/lib/BoringWindows.hs".source = ./xmonad/BoringWindows.hs;
|
2020-01-25 10:11:41 +01:00
|
|
|
home.file.".xmonad/lib/Memo.hs".source = ./xmonad/Memo.hs;
|
2019-11-10 18:38:14 +01:00
|
|
|
home.file.".xmonad/lib/SubLayouts.hs".source = ./xmonad/SubLayouts.hs;
|
2019-11-10 18:13:03 +01:00
|
|
|
|
|
|
|
home.file.".xmonad/xmonad.cabal".source = ./xmonad/palos-xmonad.cabal;
|
|
|
|
home.file.".xmonad/Main.hs".source = ./xmonad/Main.hs;
|
2019-10-24 02:20:38 +02:00
|
|
|
};
|
|
|
|
}
|