diff --git a/.local/bin/scripts/compos b/.local/bin/scripts/compos new file mode 100755 index 0000000..a5602f5 --- /dev/null +++ b/.local/bin/scripts/compos @@ -0,0 +1,5 @@ +#!/bin/sh + +# Toggle compositor. + +[ "$(pgrep picom)" ] && pkill picom || picom -b diff --git a/.local/bin/scripts/dwmbar/news b/.local/bin/scripts/dwmbar/news index 37acf0e..5d0c784 100755 --- a/.local/bin/scripts/dwmbar/news +++ b/.local/bin/scripts/dwmbar/news @@ -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"