feat(scripts): 添加脚本

This commit is contained in:
augety 2024-07-21 06:40:46 +08:00
parent 3bb95014f0
commit 3b46e688a3
3 changed files with 27 additions and 0 deletions

7
scripts/autostart.sh Executable file
View File

@ -0,0 +1,7 @@
fcitx5 &
/bin/bash ~/.dwm/wallpapers.sh rando &
sleep 2
picom &

1
scripts/menu.sh Executable file
View File

@ -0,0 +1 @@
rofi -show drun

19
scripts/wallpapers.sh Executable file
View File

@ -0,0 +1,19 @@
setup() {
feh --bg-fill --randomize --no-fehbg ~/Pictures/wallpapers/*.png
}
randomize() {
while true; do
setup
sleep 300
done
}
if [ $1 == "setup" ]
then
setup
elif [ $1 == "rando" ]
then
randomize
fi