Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .bin/i3bar-conky.sh
- #!/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/conky/conkyrc
- .i3/conkyrc
- out_to_x no
- own_window no
- out_to_console yes
- background no
- max_text_width 0
- # Update interval in seconds
- update_interval 1.0
- # This is the number of times Conky will update before quitting.
- # Set to zero to run forever.
- #total_run_times 0
- # Shortens units to a single character (kiB->k, GiB->G, etc.). Default is off.
- short_units yes
- # Add spaces to keep things from moving about? This only affects certain objects.
- # use_spacer should have an argument of left, right, or none
- use_spacer left
- # Force UTF8? note that UTF8 support required XFT
- override_utf8_locale no
- # number of cpu samples to average
- # set to 1 to disable averaging
- cpu_avg_samples 2
- text_buffer_size 1000
- # Stuff after 'TEXT' will be formatted on screen
- TEXT
- # JSON for i3bar
- [ \
- { "full_text" : "cpu $cpu%${acpitemp}°C" , "separator" : "false", "color" : "\#ffffff" }, \
- { "full_text" : "${exec setxkbmap -v 7 | grep layout | awk '{print $2}'}" , "separator" : "false", "color" : "\#FFD700" }, \
- { "full_text" : " ${time %b %d, %a %R}", "separator" : "false"} \
- ],
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement