ソースを参照

Provide funny colors for funny sstatuses

Alois Mahdal 5 年 前
コミット
4ff4625021
共有1 個のファイルを変更した4 個の追加2 個の削除を含む
  1. 4
    2
      dotfiles/i3/bin/i3staplus

+ 4
- 2
dotfiles/i3/bin/i3staplus ファイルの表示

24
     test -s "$ovw_path" || return 0
24
     test -s "$ovw_path" || return 0
25
     ovw=$(cat "$ovw_path")
25
     ovw=$(cat "$ovw_path")
26
     case $ovw in
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
     esac
31
     esac
30
     printf '{"full_text": " %s"%s},' \
32
     printf '{"full_text": " %s"%s},' \
31
         "$ovw" "$color"
33
         "$ovw" "$color"