scripts reorganize

This commit is contained in:
djaidjai committed 2026-10-06 22:34:05 +02:00
1 parent a2a056a68d
commit 0734bee219
60 files changed
+824 -5

No files matched your search

+19
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
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.