feat(bin): More scripts for 'bin' directory

This commit is contained in:
2025-05-14 22:22:17 +02:00
parent c13e8b3d9d
commit 3de58bb297
6 changed files with 34 additions and 1 deletions

View File

@ -2,7 +2,8 @@
# random_wallpaper
#
# Requirement: feh (apt install feh)
# Requirement: feh (apt install feh) - for Xorg
# Requirement: swaybg - for Wayland
directory="$HOME/wallpapers"
minutes=15
@ -50,6 +51,7 @@ while true; do
# Change background
file="${array_files["$NUMBER"]}"
if "${is_wayland}"; then
# Use of swaybg program (used with swaymsg)
$PROGRAM output "*" bg "$directory/$file" fill
else
feh --bg-fill "$directory/$file"