Replace xwallpaper with nitrogen

This commit is contained in:
Evie Litherland-Smith 2023-04-06 10:41:26 +01:00
parent c411cc8ab9
commit 4bb0852544

View file

@ -6,7 +6,7 @@
./sddm.nix ./sddm.nix
]; ];
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
xwallpaper nitrogen
]; ];
services.xserver = { services.xserver = {
enable = true; enable = true;
@ -20,7 +20,9 @@
displayManager = { displayManager = {
defaultSession = "xfce+bspwm"; defaultSession = "xfce+bspwm";
sessionCommands = '' sessionCommands = ''
${pkgs.xwallpaper}/bin/xwallpaper --daemon --center $HOME/.dotfiles/wallpaper/images_dark/1920x1080.png [ -f "$HOME/.config/nitrogen/bg-saved.cfg" ]\
&& ${pkgs.nitrogen}/bin/nitrogen --restore\
|| ${pkgs.nitrogen}/bin/nitrogen --set-auto $HOME/.dotfiles/wallpaper/images_dark/5120x2880.png --save
${pkgs.xorg.xinput}/bin/xinput set-button-map "Logitech USB Receiver Mouse" 3 2 1 ${pkgs.xorg.xinput}/bin/xinput set-button-map "Logitech USB Receiver Mouse" 3 2 1
''; '';
}; };