Add compos script and update news dwmbar module

This commit is contained in:
samedamci 2020-05-26 12:31:41 +02:00
parent 455a7862f8
commit 724350ea7b
No known key found for this signature in database
GPG Key ID: FCB4A9A20D00E894
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"