add support for hyprpaper for randomWallpaper script
parent
c3e6687ded
commit
d4ce7ee5d3
|
@ -2,10 +2,16 @@
|
||||||
pkgs.writeShellApplication {
|
pkgs.writeShellApplication {
|
||||||
name = "randomWallpaper";
|
name = "randomWallpaper";
|
||||||
|
|
||||||
runtimeInputs = with pkgs; [ findutils coreutils feh ];
|
runtimeInputs = with pkgs; [ findutils coreutils feh hyprland jq ];
|
||||||
|
|
||||||
text = ''
|
text = ''
|
||||||
wallpaper="$(find ~/.config/wallpapers/ -type f,l | shuf -n 1)"
|
wallpaper="$(find ~/.config/wallpapers/ -type f,l | shuf -n 1)"
|
||||||
|
if [ -z ''${WAYLAND_DISPLAY+x} ]; then
|
||||||
feh --bg-fill "$wallpaper"
|
feh --bg-fill "$wallpaper"
|
||||||
|
else
|
||||||
|
hyprctl hyprpaper preload "$wallpaper"
|
||||||
|
hyprctl monitors -j | jq '.[].name' | xargs -I{} hyprctl hyprpaper wallpaper '{}',"$wallpaper"
|
||||||
|
hyprctl hyprpaper unload all
|
||||||
|
fi
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 25 KiB |
Binary file not shown.
Before Width: | Height: | Size: 4.8 MiB |
Binary file not shown.
After Width: | Height: | Size: 10 MiB |
|
@ -198,4 +198,5 @@ in
|
||||||
bindm = $mainMod, mouse:273, resizewindow
|
bindm = $mainMod, mouse:273, resizewindow
|
||||||
|
|
||||||
exec-once=synology-drive
|
exec-once=synology-drive
|
||||||
|
exec-once=randomWallpaper
|
||||||
''
|
''
|
||||||
|
|
Loading…
Reference in New Issue