feat(scripts): 添加脚本
This commit is contained in:
parent
3bb95014f0
commit
3b46e688a3
7
scripts/autostart.sh
Executable file
7
scripts/autostart.sh
Executable file
@ -0,0 +1,7 @@
|
|||||||
|
fcitx5 &
|
||||||
|
|
||||||
|
/bin/bash ~/.dwm/wallpapers.sh rando &
|
||||||
|
|
||||||
|
sleep 2
|
||||||
|
picom &
|
||||||
|
|
1
scripts/menu.sh
Executable file
1
scripts/menu.sh
Executable file
@ -0,0 +1 @@
|
|||||||
|
rofi -show drun
|
19
scripts/wallpapers.sh
Executable file
19
scripts/wallpapers.sh
Executable 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
|
||||||
|
|
Reference in New Issue
Block a user