punkfairie
a53c7bb844
Add .config/dunst/dunstrc Add .config/hypr/component/waybar/config Add .config/hypr/component/waybar/style.css Add .config/hypr/autostart Add .config/hypr/hyprland.conf Add .config/hypr/scripts/expand_toolbar Add .config/hypr/scripts/launch_waybar Add .config/hypr/scripts/lock Add .config/hypr/scripts/rgb Add .config/hypr/scripts/rgb_borders Add .config/hypr/scripts/screenshot Add .config/hypr/scripts/toolbar_state Add .config/hypr/scripts/wall Add .config/hypr/scripts/workspaces Add .config/hypr/scripts/tools/dynamic Add .config/hypr/scripts/tools/expand Add .config/hypr/scripts/tools/notif Add .config/hypr/scripts/tools/start_dyn Add .config/hypr/store/dynamic_out.txt Add .config/hypr/store/latest_notif Add .config/hypr/store/prev.txt Add .config/hypr/wallpapers/cloud.png Add .config/hypr/wallpapers/clouds_realism.jpg Add .config/hypr/wallpapers/evening-sky.png Add .config/hypr/wallpapers/flower.jpg Add .config/hypr/wallpapers/mountain.png Add .config/hypr/wallpapers/totoro.png Add .config/hypr/wallpapers/train.jpg Update .config/packages/archgirlie Add .config/wofi/config Add .config/wofi/menu Add .config/wofi/menu.css Add .config/wofi/style.css
50 lines
No EOL
992 B
Bash
50 lines
No EOL
992 B
Bash
#!/usr/bin/bash
|
|
TEMP=/tmp/current_wall
|
|
|
|
files=(~/.config/hypr/wallpapers/*)
|
|
|
|
hypr=~/.config/hypr
|
|
scripts=$hypr/scripts
|
|
|
|
cooldown=0.1
|
|
|
|
|
|
while true
|
|
do
|
|
case "$1" in
|
|
"cycle")
|
|
index=$(cat $TEMP)
|
|
index=$((index+1))
|
|
if [ $index -ge ${#files[@]} ]; then
|
|
index=0
|
|
fi
|
|
echo $index > $TEMP
|
|
$scripts/wall "${files[$index]}"
|
|
exit 0
|
|
;;
|
|
"arrow-icon")
|
|
if $scripts/toolbar_state; then
|
|
echo ""
|
|
else
|
|
echo ""
|
|
fi
|
|
;;
|
|
"ss-icon")
|
|
if $scripts/toolbar_state; then
|
|
echo ""
|
|
else
|
|
echo ""
|
|
fi
|
|
;;
|
|
# "media")
|
|
|
|
*)
|
|
if $scripts/toolbar_state; then
|
|
echo " "
|
|
else
|
|
echo ""
|
|
fi
|
|
;;
|
|
esac
|
|
sleep $cooldown
|
|
done |