Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- out_to_x no
- out_to_console yes
- short_units yes
- update_interval 1
- TEXT
- [\
- # MPD
- #{ "full_text" : ${if_mpd_playing} "now_playing ", "color" : "\#545454", "separator" : false, "separator_block_width" : 4 },\
- #{ "full_text" : "${mpd_artist 20} - ${mpd_album 20} - ${mpd_title 30}"${else}""${endif}, "color" : "\#FFFFFF", "min_width" : 500, "separator" : false, "separator_block_width" : 4 },\
- {"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},\
- {"full_text":"${else}"},\
- {"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},\
- {"full_text":"${endif}${endif}"},\
- #
- # {"full_text" : ${if_match "${mpd_status}" == "Playing"} "▌▌ ", "color" : "\#EEEEEE", "separator" : false, "separator_block_width" : 4 },\
- # {"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 },\
- #${else}
- #${if_match "${mpd_status}" == "Paused"}
- # {"full_text" : "▌▌ ", "color" : "\#EEEEEE", "separator" : false, "separator_block_width" : 4 },\
- # {"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 },\
- #${endif}
- #{"full_text":"${else}"},\
- #{"full_text" : ${if_match "${mpd_status}" == "Playing"} "P ", "color" : "\#EEEEEE", "separator" : false, "separator_block_width" : 4 },\
- #{"full_text":"${else}"},\
- #{"full_text" : ${if_match "${mpd_status}" == "Paused"} "pa ", "color" : "\#EEEEEE", "separator" : false, "separator_block_width" : 4 },\
- #{"full_text":"${endif}${endif}${endif}"},\
- {"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 },\
- # CPU temperature:
- {"full_text":" CPU","color":"\#545454","separator":false,"separator_block_width":6},\
- {"full_text":"${if_match ${acpitemp}<50}${acpitemp}°C","color":"\#FFFFFF","separator":false,"separator_block_width":6},\
- {"full_text":"${else}"},\
- {"full_text":"${if_match ${acpitemp}<60}${acpitemp}°C","color":"\#FFFFFF","separator":false,"separator_block_width":6},\
- {"full_text":"${else}"},\
- {"full_text":"${if_match ${acpitemp}>=60}${acpitemp}°C","color":"\#FFFFFF","separator":false,"separator_block_width":6},\
- {"full_text":"${else}"},\
- {"full_text":"${endif}${endif}${endif}"},\
- # wlan_sig_quality ${wireless_link_qual_perc wlp4s0}%${alignr}${wireless_link_qual wlp4s0} / ${wireless_link_qual_max wlp4s0}
- # Wlan signal strength:
- {"full_text":"SIGNAL","color":"\#545454","separator":false,"separator_block_width":6},\
- {"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},\
- {"full_text":"${else}"},\
- {"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},\
- {"full_text":"${else}"},\
- {"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},\
- {"full_text":"${endif}${endif}${endif}"},\
- # Download:
- {"full_text":"DOWN","color":"\#545454","separator":false,"separator_block_width":6},\
- {"full_text":"${if_match ${downspeedf wlp4s0}<1000}${downspeed wlp4s0}","color":"\#FFFFFF","separator":false,"separator_block_width":6, "min_width" : 33},\
- {"full_text":"${else}"},\
- {"full_text":"${if_match ${downspeedf wlp4s0}<3000}${downspeed wlp4s0}","color":"\#FFFFFF","separator":false,"separator_block_width":6, "min_width" : 33},\
- {"full_text":"${else}"},\
- {"full_text":"${if_match ${downspeedf wlp4s0}>=3000}${downspeed wlp4s0}","color":"\#FFFFFF","separator":false,"separator_block_width":6, "min_width" : 33},\
- {"full_text":"${endif}${endif}${endif}"},\
- # Upload:
- {"full_text":"UP","color":"\#545454","separator":false,"separator_block_width":6},\
- {"full_text":"${if_match ${upspeedf wlp4s0}<300}${upspeed wlp4s0}","color":"\#FFFFFF","separator":false,"separator_block_width":6, "min_width" : 33},\
- {"full_text":"${else}"},\
- {"full_text":"${if_match ${upspeedf wlp4s0}<800}${upspeed wlp4s0}","color":"\#FFFFFF","separator":false,"separator_block_width":6, "min_width" : 33},\
- {"full_text":"${else}"},\
- {"full_text":"${if_match ${upspeedf wlp4s0}>=800}${upspeed wlp4s0}","color":"\#FFFFFF","separator":false,"separator_block_width":6, "min_width" : 33},\
- {"full_text":"${endif}${endif}${endif}"},\
- # Memory:
- {"full_text":"MEM","color":"\#545454","separator":false,"separator_block_width":6},\
- {"full_text":"${if_match ${memperc}<30}${memeasyfree}","color":"\#FFFFFF","separator":false,"separator_block_width":6},\
- {"full_text":"${else}"},\
- {"full_text":"${if_match ${memperc}<70}${memeasyfree}","color":"\#FFFFFF","separator":false,"separator_block_width":6},\
- {"full_text":"${else}"},\
- {"full_text":"${if_match ${memperc}>=70}${memeasyfree}","color":"\#FFFFFF","separator":false,"separator_block_width":6},\
- {"full_text":"${endif}${endif}${endif}"},\
- # CPU:
- {"full_text":"CPU","color":"\#545454","separator":false,"separator_block_width":6, "min_width" : 20},\
- {"full_text":"${if_match ${cpu cpu0}<50}${cpu cpu0}%","color":"\#FFFFFF","separator":false,"separator_block_width":6, "min_width" : 20},\
- {"full_text":"${else}"},\
- {"full_text":"${if_match ${cpu cpu0}<60E}${cpu cpu0}%","color":"\#FFFFFF","separator":false,"separator_block_width":6, "min_width" : 20},\
- {"full_text":"${else}"},\
- {"full_text":"${if_match ${cpu cpu0}<=100}${cpu cpu0}%","color":"\#FFFFFF","separator":false,"separator_block_width":6},\
- {"full_text":"${endif}${endif}${endif}"},\
- # Weather:
- {"full_text":"☀","color":"\#545454","separator":false,"separator_block_width":6},\
- # --- Weather --- #
- ###################
- \
- # --- WOEID (Location id) --- #
- ${execi 300 curl -s "http://weather.yahooapis.com/forecastrss?w=550763&u=c" -o ~/.cache/weather.xml}\
- \
- # --- Temperature --- #
- #######################
- \
- {"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},\
- {"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},\
- #{"full_text":"${execi 300 ~/bin/weather_simple "EUR|UK|UK241|LONDON"}","color":"\#EEEEEE","separator":false,"separator_block_width":6},\
- # Mail:
- #{"full_text":"MAIL","color":"\#545454","separator":false,"separator_block_width":6},\
- #{"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},\
- #{"full_text":"${else}"},\
- #{"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},\
- #{"full_text":"${else}"},\
- #{"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},\
- #{"full_text":"${endif}${endif}${endif}"},\
- # Battery:
- {"full_text":"BAT","color":"\#545454","separator":false,"separator_block_width":6},\
- {"full_text":"${if_match ${battery_percent BAT1}<30}${battery_percent BAT1}%","color":"\#FFFFFF","separator":false,"separator_block_width":6},\
- {"full_text":"${else}"},\
- {"full_text":"${if_match ${battery_percent BAT1}<70}${battery_percent BAT1}%","color":"\#FFFFFF","separator":false,"separator_block_width":6},\
- {"full_text":"${else}"},\
- {"full_text":"${if_match ${battery_percent BAT1}>=70}${battery_percent BAT1}%","color":"\#FFFFFF","separator":false,"separator_block_width":6},\
- {"full_text":"${endif}${endif}${endif}"},\
- # Dropbox
- #{"full_text":"DB","color":"\#545454","separator":false,"separator_block_width":6},\
- #{"full_text":"${execi 6 dropbox status | sed -n 1p}","color":"\#FFFFFF","separator":false},\
- # Volume:
- {"full_text":"VOL","color":"\#545454","separator":false,"separator_block_width":6},\
- {"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},\
- # Date:
- {"full_text":"|","color":"\#545454","separator":false,"separator_block_width":6},\
- {"full_text":"${time %d.%m.%y}","color":"\#aaaaaa","separator":false,"separator_block_width":6},\
- # Time:
- {"full_text":"|","color":"\#545454","separator":false,"separator_block_width":6},\
- {"full_text":"${time %H:%M:%S}","color":"\#aaaaaa","separator":false}\
- ],
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement