Configure wallpaper

This commit is contained in:
Oliver Davies 2025-03-17 23:05:33 +00:00
parent 0188b564a5
commit 6eb7b2a622
4 changed files with 6 additions and 16 deletions
bin
nix
modules/home-manager/desktop
pkgs/displayselect

3
bin/setbg Executable file
View file

@ -0,0 +1,3 @@
#!/usr/bin/env bash
xwallpaper --zoom ~/Code/dotfiles/wallpaper/wallpaper.jpg

View file

@ -21,6 +21,8 @@ with lib;
poweralertd -s &
setbg &
systemctl --user start dwm-status &
exec dwm
@ -29,6 +31,7 @@ with lib;
packages = with pkgs; [
dunst
poweralertd
xwallpaper
];
};
};

View file

@ -19,10 +19,6 @@ stdenv.mkDerivation {
xorg.xrandr
];
patches = [
./remove-setbg.patch
];
installPhase = ''
mkdir -p $out/bin
cp .local/bin/displayselect $out/bin

View file

@ -1,12 +0,0 @@
diff --git a/.local/bin/displayselect b/.local/bin/displayselect
index 51dd468..f69f154 100755
--- a/.local/bin/displayselect
+++ b/.local/bin/displayselect
@@ -57,7 +57,6 @@ onescreen() { # If only one output available or chosen.
}
postrun() { # Stuff to run to clean up.
- setbg # Fix background if screen size/arangement has changed.
{ killall dunst ; setsid -f dunst ;} >/dev/null 2>&1 # Restart dunst to ensure proper location on screen
}