Skip to content

Instantly share code, notes, and snippets.

@knabben
Last active October 4, 2015 17:37
Show Gist options
  • Save knabben/5188107d4fa9ca9b3391 to your computer and use it in GitHub Desktop.
Save knabben/5188107d4fa9ca9b3391 to your computer and use it in GitHub Desktop.
cat >> $HOME/.i3/conkyrc
background no
out_to_console yes
out_to_x no
max_text_width 0
own_window no
update_interval 0.5
total_run_times 0
short_units yes
if_up_strictness address
use_spacer right
override_utf8_locale no
cpu_avg_samples 2
TEXT
[ {"full_text":" <U+F0AD>","color":"\#FF4000","separator":false,"separator_block_width":6},
{"full_text":"[${kernel}]","color":"\#808080","separator":false,"separator_block_width":6},
{"full_text":" <U+F028>","color":"\#268BD2","separator":false,"separator_block_width":6},
{"full_text":"${exec amixer | grep Playback |tail -n1| cut -d " " -f7| tr -d "[" | tr -d "]"} ","color":"\#808080","separator":false,"separator_block_width":6},
{"full_text": "<U+F085> : [$cpu%]", "color":"\#8D00FF", "separator": false, "separator_block_width":6},
{"full_text":" <U+F011>","color":"\#FF0000","separator":false,"separator_block_width":6},
{"full_text":"[${exec uptime}]","color":"\#808080","separator":false,"separator_block_width":6},
{"full_text":" <U+F073>","color":"\#2E9AFE","separator":false,"separator_block_width":6},
{"full_text":"${time %a %b %d}","color":"\#808080","separator":false},
{"full_text":" <U+F017>","color":"\#0404B4","separator":false,"separator_block_width":6},
CTRL+D
cat >> $HOME/.i3/conky
#!/bin/sh
# conky wrapper for use with i3
# reference: http://i3wm.org/docs/user-contributed/conky-i3bar.html
# 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
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment