summaryrefslogtreecommitdiff
path: root/.scripts/setbg
diff options
context:
space:
mode:
Diffstat (limited to '.scripts/setbg')
-rwxr-xr-x.scripts/setbg3
1 files changed, 2 insertions, 1 deletions
diff --git a/.scripts/setbg b/.scripts/setbg
index e01527c..6681c9f 100755
--- a/.scripts/setbg
+++ b/.scripts/setbg
@@ -15,7 +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 -r 2> /dev/null &
+ [[ $(ps -u $USER -o comm | grep "telegram") = "telegram-deskto" ]] && r="-r"
+ $HOME/.local/usr/wal-telegram/wal-telegram "$r" 2> /dev/null &
ln -sf ~/.cache/wal/dunstrc ~/.config/dunst/dunstrc
pkill dunst &&
dunst 2> /dev/null &