diff options
author | Saumit Dinesan <justsaumit@protonmail.com> | 2022-09-30 06:22:15 +0530 |
---|---|---|
committer | Saumit Dinesan <justsaumit@protonmail.com> | 2022-09-30 06:22:15 +0530 |
commit | 7ce96f4805774b256b4d1f1f7be89ae182dbceca (patch) | |
tree | 391b3abf77794eb62ec1e57386893bc7c4a9d5c2 /.scripts/setbg | |
parent | 5fd7b9cebdca3f7fda60bb35d3d19bab9d06b2bb (diff) |
setbg with auto-terminate telegram flag
Diffstat (limited to '.scripts/setbg')
-rwxr-xr-x | .scripts/setbg | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/.scripts/setbg b/.scripts/setbg index f7a4e95..e01527c 100755 --- a/.scripts/setbg +++ b/.scripts/setbg @@ -1,8 +1,9 @@ #!/bin/sh +walldir="$HOME/pix/Wallpaper/w/wow" if [ -z "$1" ]; then echo "Chosing a random wallpaper..." - wall=$(find $HOME/pix/Wallpaper/w/wow -type f | shuf -n 1) + wall=$(find $walldir -type f | shuf -n 1) echo "Setting up the wallpaper: $(echo $wall|cut -d '/' -f 8)" else wall="$1" @@ -14,8 +15,8 @@ echo "Generating pywal color schemes..." wal -n -i $wall >/dev/null && echo "dwm reading Xresources color values at runtime" xdotool key super+F5 -$HOME/.local/usr/wal-telegram/wal-telegram +$HOME/.local/usr/wal-telegram/wal-telegram -r 2> /dev/null & ln -sf ~/.cache/wal/dunstrc ~/.config/dunst/dunstrc pkill dunst && -dunst > /dev/null & +dunst 2> /dev/null & echo "^_^ Enjoy your new look!!!" |