Add compos script and update news dwmbar module
This commit is contained in:
parent
05613d7c7b
commit
14c8b8b615
5
.local/bin/scripts/compos
Executable file
5
.local/bin/scripts/compos
Executable file
@ -0,0 +1,5 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# Toggle compositor.
|
||||||
|
|
||||||
|
[ "$(pgrep picom)" ] && pkill picom || picom -b
|
@ -4,4 +4,6 @@ icon="$(cat "/tmp/newsupdate" 2>/dev/null)"
|
|||||||
|
|
||||||
unread="$(cat "$HOME/.cache/news_unread" 2>/dev/null)"
|
unread="$(cat "$HOME/.cache/news_unread" 2>/dev/null)"
|
||||||
|
|
||||||
echo " $unread$icon"
|
printf ""
|
||||||
|
[ "$unread" ] && "$unread"
|
||||||
|
echo "$icon"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user