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
];
environment.systemPackages = with pkgs; [
xwallpaper
nitrogen
];
services.xserver = {
enable = true;
@ -20,7 +20,9 @@
displayManager = {
defaultSession = "xfce+bspwm";
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
'';
};