Browse Source

Provide funny colors for funny sstatuses

Alois Mahdal 5 years ago
parent
commit
4ff4625021
1 changed files with 4 additions and 2 deletions
  1. 4
    2
      dotfiles/i3/bin/i3staplus

+ 4
- 2
dotfiles/i3/bin/i3staplus View File

@@ -24,8 +24,10 @@ bmo_be_ovw() {
24 24
     test -s "$ovw_path" || return 0
25 25
     ovw=$(cat "$ovw_path")
26 26
     case $ovw in
27
-        "")     color='' ;;
28
-        *)      color=',"color": "#ff0000"' ;;
27
+        *%onbreak)  color=',"color": "#33aa55"' ;;
28
+        *%mtg)      color=',"color": "#ff0000"' ;;
29
+        *%working)  color=',"color": "#cccccc"' ;;
30
+        *)          color='' ;;
29 31
     esac
30 32
     printf '{"full_text": " %s"%s},' \
31 33
         "$ovw" "$color"