Sfoglia il codice sorgente

Make sure showgbr module in i3staplus does not break JSON syntax

Alois Mahdal 1 anno fa
parent
commit
f4d7897068
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1
    1
      dotfiles/config/i3/bin/i3staplus

+ 1
- 1
dotfiles/config/i3/bin/i3staplus Vedi File

57
 
57
 
58
 gibrs() {
58
 gibrs() {
59
     local out
59
     local out
60
-    out=$(showgbr)
60
+    out=$(showgbr | head -1 | sed 's/"/\\"/')
61
     test -n "$out" || return 0
61
     test -n "$out" || return 0
62
     printf '{"full_text": "ⓖ %s"},' \
62
     printf '{"full_text": "ⓖ %s"},' \
63
        "$out"
63
        "$out"