Advertisement
cirrus

~/.config/i3

Mar 5th, 2014
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 3.58 KB | None | 0 0
  1. #~/.config/i3/startup_conky
  2. ## both files below belong in ~/.config/i3 directory
  3.  
  4.  
  5. #!/bin/sh
  6.  
  7. # Send the header so that i3bar knows we want to use JSON:
  8. echo '{"version":1}'
  9.  
  10. # Begin the endless array.
  11. echo '['
  12.  
  13. # We send an empty first array of blocks to make the loop simpler:
  14. echo '[],'
  15.  
  16. # Now send blocks with information forever:
  17. exec conky -c $HOME/.config/i3/conkyrc
  18.  
  19. -------------------------------------------END---------------------------------------------------
  20.  
  21. #~/.config/i3/conkyrc
  22.  
  23. out_to_x no
  24. own_window no
  25. out_to_console yes
  26. background no
  27. max_text_width 10920
  28.  
  29. # Update interval in seconds
  30. update_interval 1
  31.  
  32. # This is the number of times Conky will update before quitting.
  33. # Set to zero to run forever.
  34. total_run_times 0
  35.  
  36. # Shortens units to a single character (kiB->k, GiB->G, etc.). Default is off.
  37. short_units yes
  38.  
  39. # How strict should if_up be when testing an interface for being up?
  40. # The value is one of up, link or address, to check for the interface
  41. # being solely up, being up and having link or being up, having link
  42. # and an assigned IP address.
  43. if_up_strictness address
  44.  
  45. # Add spaces to keep things from moving about?  This only affects certain objects.
  46. # use_spacer should have an argument of left, right, or none
  47. use_spacer left
  48.  
  49. # Force UTF8? note that UTF8 support required XFT
  50. override_utf8_locale no
  51.  
  52. # number of cpu samples to average
  53. # set to 1 to disable averaging
  54. cpu_avg_samples 4 4 4 4
  55.  
  56. template0 80FF00
  57. template1 808080
  58.  
  59. # Stuff after 'TEXT' will be formatted on screen
  60. TEXT
  61.  
  62. # JSON for i3bar
  63.  
  64. [\
  65. # Music
  66. ${if_match "Playing" == "$mpd_status"}
  67. {"full_text":"мρđ αυđίσ οùτρυτ ▶ ♪","10E889":"\#${template1}","separator":false,"separator_block_width":6},\
  68. {"full_text":"$mpd_artist - $mpd_title | $mpd_album","color":"\#${template0}","separator":false,"separator_block_width":6},\
  69. $endif
  70.  
  71. # Volume:
  72. {"full_text":"♬ ▏νσιυмε →","10E889":"\#${template1}","separator":false,"separator_block_width":6},\
  73. {"full_text":"${exec amixer get Master -M | grep -oE "[[:digit:]]*%"}","color":"\#${template0}","separator":false,"separator_block_width":6},\
  74.  
  75. # LOAD:
  76. {"full_text":"▏ ℓσαđ →","10E889":"\#${template1}","separator":false,"separator_block_width":6},\
  77. {"full_text":"${cpu cpu0}%","color":"\#${template0}","separator":false,"separator_block_width":6},\
  78.  
  79. # Memory:
  80. {"full_text":"▏ғяεε мεмσяү →","10E889":"\#${template1}","separator":false,"separator_block_width":6},\
  81. {"full_text":"${memeasyfree}","color":"\#${template0}","separator":false,"separator_block_width":6},\
  82.  
  83. #Disk
  84. {"full_text":"▏яσσт:","ffffff":"\#${template1}","separator":false,"separator_block_width":6},\
  85. {"full_text":"${fs_used /}/${fs_size /}","color":"\#${template0}","separator":false,"separator_block_width":6},\
  86. {"full_text":"▏нσмε:","ffffff":"\#${template1}","separator":false,"separator_block_width":6},\
  87. {"full_text":"${fs_used /home/}/${fs_size /home/}","color":"\#${template0}","separator":false,"separator_block_width":6},\
  88.  
  89. # NETWORK:
  90. ${if_up eth0}
  91. {"full_text":"▏εтнεяηεт ├","ffffff":"\#${template1}","separator":false,"separator_block_width":6},\
  92. {"full_text":"${addr eth0}","color":"\#${template0}","separator":false,"separator_block_width":6},\
  93. ${endif}
  94.  
  95. # DateTime:
  96. {"full_text":"├  тίмε  ","ffffff":"\#${template1}","separator":false,"separator_block_width":6},\
  97. {"full_text":"${time %d.%m.%Y  %H:%M}","color":"\#993232","separator":false,"separator_block_width":6}\
  98. ],
  99.  
  100.  
  101. -------------------------------END-----------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement