aboutsummaryrefslogtreecommitdiff
path: root/i3blocks
diff options
context:
space:
mode:
authorInigoGutierrez <inigogf.95@gmail.com>2019-12-12 22:03:48 +0100
committerInigoGutierrez <inigogf.95@gmail.com>2019-12-12 22:03:48 +0100
commit63112ef77d4b847ce96cb247ec0b53d799e61b74 (patch)
treecb87b740a6a1cd02a793fafe5b5a909e68b06839 /i3blocks
parent6b62c5743d95c28d0a69159efea533a200b3d1c9 (diff)
downloadscripts-63112ef77d4b847ce96cb247ec0b53d799e61b74.tar.gz
scripts-63112ef77d4b847ce96cb247ec0b53d799e61b74.zip
Added cmus to flags and changed - for lowercase when not running.
Diffstat (limited to 'i3blocks')
-rwxr-xr-xi3blocks/i3flags.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/i3blocks/i3flags.sh b/i3blocks/i3flags.sh
index 8d18ca0..0e363dd 100755
--- a/i3blocks/i3flags.sh
+++ b/i3blocks/i3flags.sh
@@ -15,7 +15,7 @@
#esac
if [ -z "$1" ]; then
- programs="picom dunst"
+ programs="cmus picom dunst"
else
programs="$*"
fi
@@ -26,7 +26,8 @@ for program in $programs; do
flag="$(echo "${program:0:1}" | awk '{print toupper($1)}')"
flags="${flags}${flag}"
else
- flags="${flags}-"
+ flag="$(echo "${program:0:1}" | awk '{print tolower($1)}')"
+ flags="${flags}${flag}"
fi
done