diff options
author | René 'Necoro' Neumann <necoro@necoro.net> | 2013-05-30 17:49:19 +0200 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.net> | 2013-05-30 17:49:19 +0200 |
commit | d749ee8ac4e6a828281387be79fb4ee93649b844 (patch) | |
tree | 20a23c11bc2111eefbbe13a17f120b709ba30ddc /.i3/scripts | |
parent | a9ff14668077e8e90c007f8025cfee80cf527f61 (diff) | |
download | dotfiles-d749ee8ac4e6a828281387be79fb4ee93649b844.tar.gz dotfiles-d749ee8ac4e6a828281387be79fb4ee93649b844.tar.bz2 dotfiles-d749ee8ac4e6a828281387be79fb4ee93649b844.zip |
I3 Config
Diffstat (limited to '')
-rwxr-xr-x | .i3/scripts/conkystatus.sh | 13 | ||||
-rw-r--r-- | .i3/scripts/json_escape.lua | 3 |
2 files changed, 16 insertions, 0 deletions
diff --git a/.i3/scripts/conkystatus.sh b/.i3/scripts/conkystatus.sh new file mode 100755 index 0000000..bb1bb8e --- /dev/null +++ b/.i3/scripts/conkystatus.sh @@ -0,0 +1,13 @@ +#!/bin/sh + +# Send the header so that i3bar knows we want to use JSON: +echo '{"version":1}' + +# Begin the endless array. +echo '[' + +# We send an empty first array of blocks to make the loop simpler: +echo '[],' + +# Now send blocks with information forever: +exec conky -c $HOME/.i3/conkyrc diff --git a/.i3/scripts/json_escape.lua b/.i3/scripts/json_escape.lua new file mode 100644 index 0000000..03860b7 --- /dev/null +++ b/.i3/scripts/json_escape.lua @@ -0,0 +1,3 @@ +function conky_json(str) + return string.gsub(conky_parse(str), '[\\"]', '\\%1') +end |