Guest User

i3bar-conky-i3

a guest
Feb 20th, 2016
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.26 KB | None | 0 0
  1. ### $HOME/.conkyrc
  2. out_to_x no
  3. own_window no
  4. out_to_console yes
  5. background no
  6. max_text_width 0
  7.  
  8. # Update interval in seconds
  9. update_interval 2.0
  10.  
  11. # This is the number of times Conky will update before quitting.
  12. # Set to zero to run forever.
  13. total_run_times 0
  14.  
  15. # Shortens units to a single character (kiB->k, GiB->G, etc.). Default is off.
  16. short_units yes
  17.  
  18. # How strict should if_up be when testing an interface for being up?
  19. # The value is one of up, link or address, to check for the interface
  20. # being solely up, being up and having link or being up, having link
  21. # and an assigned IP address.
  22. if_up_strictness address
  23.  
  24. # Add spaces to keep things from moving about? This only affects certain objects.
  25. # use_spacer should have an argument of left, right, or none
  26. use_spacer left
  27.  
  28. # Force UTF8? note that UTF8 support required XFT
  29. override_utf8_locale no
  30.  
  31. # number of cpu samples to average
  32. # set to 1 to disable averaging
  33. cpu_avg_samples 4
  34.  
  35. # Stuff after 'TEXT' will be formatted on screen
  36. TEXT
  37.  
  38. # JSON for i3bar
  39.  
  40. [{ "full_text" : " Uptime $uptime_short " , "color" : "\#ffffff" },
  41. { "full_text" : " RAM ${mem} " , "color" : ${if_match ${memperc}<90}"\#ffffff"${else}"\#ff0000"${endif} },
  42. { "full_text" : " Load ${loadavg 1} " , "color" : "\#ffffff" },
  43. { "full_text" : " I/O ${diskio /dev/sda} " , "color" : "\#ffffff" },
  44. { "full_text" : " $time " , "color" : "\#ffffff" }],
  45.  
  46.  
  47.  
  48. ### $HOME/.config/i3/conky-i3bar.sh
  49. #!/bin/sh
  50. end the header so that i3bar knows we want to use JSON:
  51. echo '{"version":1}'
  52.  
  53. # Begin the endless array.
  54. echo '['
  55.  
  56. # We send an empty first array of blocks to make the loop simpler:
  57. echo '[],'
  58.  
  59. # Now send blocks with information forever:
  60. exec conky -c $HOME/.conkyrc']'
  61.  
  62.  
  63.  
  64. ### $HOME/.config/i3/config - bar section
  65. bar {
  66. status_command conky ~/.config/i3/conky-i3bar
  67. position top
  68. tray_output eDP1
  69. mode hide
  70. font pango:anonymous pro for powerline 9, FontAwsome 9
  71. colors {
  72. background #002b36
  73. statusline #839496
  74. separator #586e75
  75. focused_workspace #b58900 #b58900 #002b36
  76. active_workspace #586e75 #586e75 #002b36
  77. inactive_workspace #073642 #002b36 #839496
  78. urgent_workspace #dc322f #dc322f #fdf6e3
  79. }
Add Comment
Please, Sign In to add comment