瀏覽代碼

The JSON protocol does not seem to support color names

Or rather the frontend had changed syntax, because this used to work.
This will suffice until we come up with proper syntax or something...
Alois Mahdal 7 年之前
父節點
當前提交
b0f2cda5c4
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      dotfiles/i3/bin/i3staplus

+ 1
- 1
dotfiles/i3/bin/i3staplus 查看文件

11
     )
11
     )
12
     case $layout in
12
     case $layout in
13
         us) color='' ;;
13
         us) color='' ;;
14
-        *)  color=',"color": "red"' ;;
14
+        *)  color=',"color": "#ff0000"' ;;
15
     esac
15
     esac
16
     printf '{"full_text": " %s"%s},' \
16
     printf '{"full_text": " %s"%s},' \
17
         "$layout" "$color"
17
         "$layout" "$color"