Advertisement
Guest User

Untitled

a guest
Sep 22nd, 2015
498
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.39 KB | None | 0 0
  1. .bin/i3bar-conky.sh
  2. #!/bin/sh
  3.  
  4. # Send the header so that i3bar knows we want to use JSON:
  5. echo '{"version":1}'
  6.  
  7. # Begin the endless array.
  8. echo '['
  9.  
  10. # We send an empty first array of blocks to make the loop simpler:
  11. echo '[],'
  12.  
  13. # Now send blocks with information forever:
  14. exec conky -c $HOME/.i3/conky/conkyrc
  15.  
  16. .i3/conkyrc
  17. out_to_x no
  18. own_window no
  19. out_to_console yes
  20. background no
  21. max_text_width 0
  22.  
  23. # Update interval in seconds
  24. update_interval 1.0
  25.  
  26. # This is the number of times Conky will update before quitting.
  27. # Set to zero to run forever.
  28. #total_run_times 0
  29.  
  30. # Shortens units to a single character (kiB->k, GiB->G, etc.). Default is off.
  31. short_units yes
  32.  
  33. # Add spaces to keep things from moving about? This only affects certain objects.
  34. # use_spacer should have an argument of left, right, or none
  35. use_spacer left
  36.  
  37. # Force UTF8? note that UTF8 support required XFT
  38. override_utf8_locale no
  39.  
  40. # number of cpu samples to average
  41. # set to 1 to disable averaging
  42. cpu_avg_samples 2
  43.  
  44. text_buffer_size 1000
  45.  
  46. # Stuff after 'TEXT' will be formatted on screen
  47. TEXT
  48. # JSON for i3bar
  49. [ \
  50. { "full_text" : "cpu $cpu%${acpitemp}°C" , "separator" : "false", "color" : "\#ffffff" }, \
  51. { "full_text" : "${exec setxkbmap -v 7 | grep layout | awk '{print $2}'}" , "separator" : "false", "color" : "\#FFD700" }, \
  52. { "full_text" : " ${time %b %d, %a %R}", "separator" : "false"} \
  53. ],
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement