Add compos script and update news dwmbar module

This commit is contained in:
Wiktor Zykubek 2020-05-26 12:31:41 +02:00
parent 05613d7c7b
commit 14c8b8b615
2 changed files with 8 additions and 1 deletions

5
.local/bin/scripts/compos Executable file
View File

@ -0,0 +1,5 @@
#!/bin/sh
# Toggle compositor.
[ "$(pgrep picom)" ] && pkill picom || picom -b

View File

@ -4,4 +4,6 @@ icon="$(cat "/tmp/newsupdate" 2>/dev/null)"
unread="$(cat "$HOME/.cache/news_unread" 2>/dev/null)"
echo " $unread$icon"
printf ""
[ "$unread" ] && "$unread"
echo "$icon"