scripts reorganize

This commit is contained in:
2026-10-06 22:34:05 +02:00
parent a2a056a68d
commit 0734bee219
60 changed files with 824 additions and 5 deletions

View File

@@ -0,0 +1,19 @@
#!/usr/bin/env fish
# This script switches the wallpaper to a random image found under ~/Pictures/wallpapers
# Supports i3, Hyprland, and Sway.
switch "$XDG_CURRENT_DESKTOP"
case i3
feh --bg-fill (find ~/Pictures/wallpapers -type f -regextype posix-extended -iregex "/(.*/)*[^\.]*\.(png|jpe?g|webp)" | sort -R | head -n1)
case sway Hyprland
swaybg -i (find ~/Pictures/wallpapers -type f | sort -R | head -n1) &
set newpid $last_pid
sleep 0.2
for pid in (pgrep -x swaybg)
if test $pid -ne $last_pid
kill $pid
end
end
end