From 14215e6af325d4b338d37b2e93fd1d6aed57345e Mon Sep 17 00:00:00 2001 From: _N3m0 Date: Wed, 6 Mar 2024 08:20:09 +0100 Subject: [PATCH] wallpaper --- randwallpaper | 8 ++++++++ wallpaper | 4 +++- xinitrc | 2 +- 3 files changed, 12 insertions(+), 2 deletions(-) create mode 100755 randwallpaper diff --git a/randwallpaper b/randwallpaper new file mode 100755 index 0000000..e939754 --- /dev/null +++ b/randwallpaper @@ -0,0 +1,8 @@ +#!/bin/bash + +wallpath=$OPT_PATH/img/wallpaper +img=$(ls $wallpath | shuf -n 1) + +cp $wallpath/$img $OPT_PATH/img/wallpaper.curr + +feh --bg-scale $wallpath/$img diff --git a/wallpaper b/wallpaper index fdb6b66..e90ebd9 100755 --- a/wallpaper +++ b/wallpaper @@ -1,6 +1,8 @@ #!/bin/bash -wallpath=$OPT_PATH/img/funny-linux +wallpath=$OPT_PATH/img/wallpaper img=$(ls $wallpath | dmenu -l 10 -p "wallpaper:") +cp $wallpath/$img $OPT_PATH/img/wallpaper.curr + feh --bg-scale $wallpath/$img diff --git a/xinitrc b/xinitrc index a5400e3..07760e3 100755 --- a/xinitrc +++ b/xinitrc @@ -11,7 +11,7 @@ xset dpms $lstime $lstime $lstime xss-lock slock & # wallpaper -feh --bg-scale ~/opt/img/wallpaper.jpg & +feh --bg-scale ~/opt/img/wallpaper.curr & # status bar ~/dev/script/statusbar.sh &