summaryrefslogtreecommitdiff
path: root/.scripts/setbg
diff options
context:
space:
mode:
authorSaumit Dinesan <justsaumit@protonmail.com>2022-12-27 22:21:10 +0530
committerSaumit Dinesan <justsaumit@protonmail.com>2022-12-27 22:21:10 +0530
commit98009443722b7b292c6e2f3669da6cb11120bf5d (patch)
treee6f40f61aaa5d213f9eda2ffb740541182ad9019 /.scripts/setbg
parent96001998eb3ea26c556dd9151f74c7812eaae25a (diff)
setbg - pgrep + posix brackets
Diffstat (limited to '.scripts/setbg')
-rwxr-xr-x.scripts/setbg4
1 files changed, 2 insertions, 2 deletions
diff --git a/.scripts/setbg b/.scripts/setbg
index 01676a4..0878b7b 100755
--- a/.scripts/setbg
+++ b/.scripts/setbg
@@ -15,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
- [[ $(ps -u $USER -o comm | grep "telegram") = "telegram-deskto" ]] && r="-r"
- $HOME/.local/usr/wal-telegram/wal-telegram "$r" 2> /dev/null &
+[ -n $(pgrep "telegram") ] && 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 &