From 3b46e688a34c7e1bb562a3c6f6b044cf0dfd89ac Mon Sep 17 00:00:00 2001 From: augety Date: Sun, 21 Jul 2024 06:40:46 +0800 Subject: [PATCH] =?UTF-8?q?feat(scripts):=20=E6=B7=BB=E5=8A=A0=E8=84=9A?= =?UTF-8?q?=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/autostart.sh | 7 +++++++ scripts/menu.sh | 1 + scripts/wallpapers.sh | 19 +++++++++++++++++++ 3 files changed, 27 insertions(+) create mode 100755 scripts/autostart.sh create mode 100755 scripts/menu.sh create mode 100755 scripts/wallpapers.sh diff --git a/scripts/autostart.sh b/scripts/autostart.sh new file mode 100755 index 0000000..1623fac --- /dev/null +++ b/scripts/autostart.sh @@ -0,0 +1,7 @@ +fcitx5 & + +/bin/bash ~/.dwm/wallpapers.sh rando & + +sleep 2 +picom & + diff --git a/scripts/menu.sh b/scripts/menu.sh new file mode 100755 index 0000000..d5ca64f --- /dev/null +++ b/scripts/menu.sh @@ -0,0 +1 @@ +rofi -show drun diff --git a/scripts/wallpapers.sh b/scripts/wallpapers.sh new file mode 100755 index 0000000..d40e965 --- /dev/null +++ b/scripts/wallpapers.sh @@ -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 +