Advertisement
Guest User

conky bar

a guest
Apr 7th, 2015
506
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.34 KB | None | 0 0
  1. out_to_x no
  2. out_to_console yes
  3. short_units yes
  4. update_interval 1
  5.  
  6. TEXT
  7.  
  8. [\
  9. # MPD
  10. #{ "full_text" : ${if_mpd_playing} "now_playing ", "color" : "\#545454", "separator" : false, "separator_block_width" : 4 },\
  11. #{ "full_text" : "${mpd_artist 20} - ${mpd_album 20} - ${mpd_title 30}"${else}""${endif}, "color" : "\#FFFFFF", "min_width" : 500, "separator" : false, "separator_block_width" : 4 },\
  12.  
  13. {"full_text":"${if_match "${mpd_status}" == "Playing"}▶ ${mpd_artist 20} - ${mpd_album 20} - ${mpd_title 30} - ${mpd_elapsed}/${mpd_length}","color":"\#FFFFFF","separator":false,"separator_block_width":6, "min_width" : 20},\
  14. {"full_text":"${else}"},\
  15. {"full_text":"${if_match "${mpd_status}" == "Paused"}▍▍ ${mpd_artist 20} - ${mpd_album 20} - ${mpd_title 30} - ${mpd_elapsed}/${mpd_length}","color":"\#FFFFFF","separator":false,"separator_block_width":6, "min_width" : 20},\
  16. {"full_text":"${endif}${endif}"},\
  17.  
  18.  
  19.  
  20.  
  21. #
  22. # {"full_text" : ${if_match "${mpd_status}" == "Playing"} "▌▌ ", "color" : "\#EEEEEE", "separator" : false, "separator_block_width" : 4 },\
  23. # {"full_text" : "${mpd_artist 20} - ${mpd_album 20} - ${mpd_title 30} - ${mpd_elapsed}/${mpd_length}", "color" : "\#FFFFFF", "min_width" : 400, "separator" : false, "separator_block_width" : 4 },\
  24. #${else}
  25. #${if_match "${mpd_status}" == "Paused"}
  26. # {"full_text" : "▌▌ ", "color" : "\#EEEEEE", "separator" : false, "separator_block_width" : 4 },\
  27. # {"full_text" : "${mpd_artist 20} - ${mpd_album 20} - ${mpd_title 30} - ${mpd_elapsed}/${mpd_length}", "color" : "\#FFFFFF", "min_width" : 400, "separator" : false, "separator_block_width" : 4 },\
  28. #${endif}
  29. #{"full_text":"${else}"},\
  30. #{"full_text" : ${if_match "${mpd_status}" == "Playing"} "P ", "color" : "\#EEEEEE", "separator" : false, "separator_block_width" : 4 },\
  31. #{"full_text":"${else}"},\
  32. #{"full_text" : ${if_match "${mpd_status}" == "Paused"} "pa ", "color" : "\#EEEEEE", "separator" : false, "separator_block_width" : 4 },\
  33. #{"full_text":"${endif}${endif}${endif}"},\
  34. {"full_text" : "${mpd_artist 20} - ${mpd_album 20} - ${mpd_title 30} - ${mpd_elapsed}/${mpd_length}", "color" : "\#FFFFFF", "min_width" : 400, "separator" : false, "separator_block_width" : 4 },\
  35. # CPU temperature:
  36. {"full_text":" CPU","color":"\#545454","separator":false,"separator_block_width":6},\
  37. {"full_text":"${if_match ${acpitemp}<50}${acpitemp}°C","color":"\#FFFFFF","separator":false,"separator_block_width":6},\
  38. {"full_text":"${else}"},\
  39. {"full_text":"${if_match ${acpitemp}<60}${acpitemp}°C","color":"\#FFFFFF","separator":false,"separator_block_width":6},\
  40. {"full_text":"${else}"},\
  41. {"full_text":"${if_match ${acpitemp}>=60}${acpitemp}°C","color":"\#FFFFFF","separator":false,"separator_block_width":6},\
  42. {"full_text":"${else}"},\
  43. {"full_text":"${endif}${endif}${endif}"},\
  44.  
  45. # wlan_sig_quality ${wireless_link_qual_perc wlp4s0}%${alignr}${wireless_link_qual wlp4s0} / ${wireless_link_qual_max wlp4s0}
  46. # Wlan signal strength:
  47. {"full_text":"SIGNAL","color":"\#545454","separator":false,"separator_block_width":6},\
  48. {"full_text":"${if_match ${wireless_link_qual_perc wlp4s0}>66}${wireless_link_qual_perc wlp4s0}%","color":"\#FFFFFF","separator":false,"separator_block_width":6, "min_width" : 20},\
  49. {"full_text":"${else}"},\
  50. {"full_text":"${if_match ${wireless_link_qual_perc wlp4s0}>33}${wireless_link_qual_perc wlp4s0}%","color":"\#FFFFFF","separator":false,"separator_block_width":6, "min_width" : 20},\
  51. {"full_text":"${else}"},\
  52. {"full_text":"${if_match ${wireless_link_qual_perc wlp4s0}>=0}${wireless_link_qual_perc wlp4s0}%","color":"\#FFFFFF","separator":false,"separator_block_width":6, "min_width" : 20},\
  53. {"full_text":"${endif}${endif}${endif}"},\
  54.  
  55.  
  56. # Download:
  57. {"full_text":"DOWN","color":"\#545454","separator":false,"separator_block_width":6},\
  58. {"full_text":"${if_match ${downspeedf wlp4s0}<1000}${downspeed wlp4s0}","color":"\#FFFFFF","separator":false,"separator_block_width":6, "min_width" : 33},\
  59. {"full_text":"${else}"},\
  60. {"full_text":"${if_match ${downspeedf wlp4s0}<3000}${downspeed wlp4s0}","color":"\#FFFFFF","separator":false,"separator_block_width":6, "min_width" : 33},\
  61. {"full_text":"${else}"},\
  62. {"full_text":"${if_match ${downspeedf wlp4s0}>=3000}${downspeed wlp4s0}","color":"\#FFFFFF","separator":false,"separator_block_width":6, "min_width" : 33},\
  63. {"full_text":"${endif}${endif}${endif}"},\
  64. # Upload:
  65. {"full_text":"UP","color":"\#545454","separator":false,"separator_block_width":6},\
  66. {"full_text":"${if_match ${upspeedf wlp4s0}<300}${upspeed wlp4s0}","color":"\#FFFFFF","separator":false,"separator_block_width":6, "min_width" : 33},\
  67. {"full_text":"${else}"},\
  68. {"full_text":"${if_match ${upspeedf wlp4s0}<800}${upspeed wlp4s0}","color":"\#FFFFFF","separator":false,"separator_block_width":6, "min_width" : 33},\
  69. {"full_text":"${else}"},\
  70. {"full_text":"${if_match ${upspeedf wlp4s0}>=800}${upspeed wlp4s0}","color":"\#FFFFFF","separator":false,"separator_block_width":6, "min_width" : 33},\
  71. {"full_text":"${endif}${endif}${endif}"},\
  72. # Memory:
  73. {"full_text":"MEM","color":"\#545454","separator":false,"separator_block_width":6},\
  74. {"full_text":"${if_match ${memperc}<30}${memeasyfree}","color":"\#FFFFFF","separator":false,"separator_block_width":6},\
  75. {"full_text":"${else}"},\
  76. {"full_text":"${if_match ${memperc}<70}${memeasyfree}","color":"\#FFFFFF","separator":false,"separator_block_width":6},\
  77. {"full_text":"${else}"},\
  78. {"full_text":"${if_match ${memperc}>=70}${memeasyfree}","color":"\#FFFFFF","separator":false,"separator_block_width":6},\
  79. {"full_text":"${endif}${endif}${endif}"},\
  80. # CPU:
  81. {"full_text":"CPU","color":"\#545454","separator":false,"separator_block_width":6, "min_width" : 20},\
  82. {"full_text":"${if_match ${cpu cpu0}<50}${cpu cpu0}%","color":"\#FFFFFF","separator":false,"separator_block_width":6, "min_width" : 20},\
  83. {"full_text":"${else}"},\
  84. {"full_text":"${if_match ${cpu cpu0}<60E}${cpu cpu0}%","color":"\#FFFFFF","separator":false,"separator_block_width":6, "min_width" : 20},\
  85. {"full_text":"${else}"},\
  86. {"full_text":"${if_match ${cpu cpu0}<=100}${cpu cpu0}%","color":"\#FFFFFF","separator":false,"separator_block_width":6},\
  87. {"full_text":"${endif}${endif}${endif}"},\
  88. # Weather:
  89. {"full_text":"☀","color":"\#545454","separator":false,"separator_block_width":6},\
  90. # --- Weather --- #
  91. ###################
  92. \
  93. # --- WOEID (Location id) --- #
  94. ${execi 300 curl -s "http://weather.yahooapis.com/forecastrss?w=550763&u=c" -o ~/.cache/weather.xml}\
  95. \
  96. # --- Temperature --- #
  97. #######################
  98. \
  99. {"full_text":"${execi 300 grep "yweather:condition" ~/.cache/weather.xml | grep -o "temp=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}° ","color":"\#EEEEEE","seperator":false,"seperator_block_width":6},\
  100. {"full_text":"${execi 300 grep "yweather:condition" ~/.cache/weather.xml | grep -o "text=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"} ${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "low=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==1'}° / ${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "high=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==1'}°","color":"\#EEEEEE","seperator":false,"seperator_block_width":6},\
  101. #{"full_text":"${execi 300 ~/bin/weather_simple "EUR|UK|UK241|LONDON"}","color":"\#EEEEEE","separator":false,"separator_block_width":6},\
  102. # Mail:
  103. #{"full_text":"MAIL","color":"\#545454","separator":false,"separator_block_width":6},\
  104. #{"full_text":"${if_match ${execpi 60 python ~/bin/gmail.py}<=0}${execpi 60 python ~/bin/gmail.py}","color":"\#FFFFFF","separator":false,"separator_block_width":6},\
  105. #{"full_text":"${else}"},\
  106. #{"full_text":"${if_match ${execpi 60 python ~/bin/gmail.py}<2}${execpi 60 python ~/bin/gmail.py}","color":"\#FFFFFF","separator":false,"separator_block_width":6},\
  107. #{"full_text":"${else}"},\
  108. #{"full_text":"${if_match ${execpi 60 python ~/bin/gmail.py}>2}${execpi 60 python ~/bin/gmail.py}","color":"\#FFFFFF","separator":false,"separator_block_width":6},\
  109. #{"full_text":"${endif}${endif}${endif}"},\
  110. # Battery:
  111. {"full_text":"BAT","color":"\#545454","separator":false,"separator_block_width":6},\
  112. {"full_text":"${if_match ${battery_percent BAT1}<30}${battery_percent BAT1}%","color":"\#FFFFFF","separator":false,"separator_block_width":6},\
  113. {"full_text":"${else}"},\
  114. {"full_text":"${if_match ${battery_percent BAT1}<70}${battery_percent BAT1}%","color":"\#FFFFFF","separator":false,"separator_block_width":6},\
  115. {"full_text":"${else}"},\
  116. {"full_text":"${if_match ${battery_percent BAT1}>=70}${battery_percent BAT1}%","color":"\#FFFFFF","separator":false,"separator_block_width":6},\
  117. {"full_text":"${endif}${endif}${endif}"},\
  118. # Dropbox
  119. #{"full_text":"DB","color":"\#545454","separator":false,"separator_block_width":6},\
  120. #{"full_text":"${execi 6 dropbox status | sed -n 1p}","color":"\#FFFFFF","separator":false},\
  121. # Volume:
  122. {"full_text":"VOL","color":"\#545454","separator":false,"separator_block_width":6},\
  123. {"full_text":"${execi 0.5 amixer sget Master,0 | grep 'Front Left' | egrep -o '([0-9]+%|\[(on|off)\])' | sed ':a;N;$!ba;s/\n/ /g'}","color":"\#FFFFFF","separator":false},\
  124. # Date:
  125. {"full_text":"|","color":"\#545454","separator":false,"separator_block_width":6},\
  126. {"full_text":"${time %d.%m.%y}","color":"\#aaaaaa","separator":false,"separator_block_width":6},\
  127. # Time:
  128. {"full_text":"|","color":"\#545454","separator":false,"separator_block_width":6},\
  129. {"full_text":"${time %H:%M:%S}","color":"\#aaaaaa","separator":false}\
  130. ],
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement