summaryrefslogtreecommitdiff
path: root/.scripts/setbg
diff options
context:
space:
mode:
authorSaumit Dinesan <justsaumit@protonmail.com>2022-10-01 00:56:51 +0530
committerSaumit Dinesan <justsaumit@protonmail.com>2022-10-01 00:56:51 +0530
commitded37b8f6515772648527fe2a3e9d9d490066ca0 (patch)
tree9f2fe68e715f67bc6685b9e2e14a9947c479bfa8 /.scripts/setbg
parent7ce96f4805774b256b4d1f1f7be89ae182dbceca (diff)
minimizing scripts + replacing emojis for fonticons
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 &