From 63112ef77d4b847ce96cb247ec0b53d799e61b74 Mon Sep 17 00:00:00 2001 From: InigoGutierrez Date: Thu, 12 Dec 2019 22:03:48 +0100 Subject: Added cmus to flags and changed - for lowercase when not running. --- i3blocks/i3flags.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'i3blocks/i3flags.sh') 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 -- cgit v1.2.1