Configure wallpaper
This commit is contained in:
parent
0188b564a5
commit
6eb7b2a622
3
bin/setbg
Executable file
3
bin/setbg
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
xwallpaper --zoom ~/Code/dotfiles/wallpaper/wallpaper.jpg
|
|
@ -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
|
||||
];
|
||||
};
|
||||
};
|
||||
|
|
|
@ -19,10 +19,6 @@ stdenv.mkDerivation {
|
|||
xorg.xrandr
|
||||
];
|
||||
|
||||
patches = [
|
||||
./remove-setbg.patch
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cp .local/bin/displayselect $out/bin
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
Loading…
Reference in a new issue