summaryrefslogtreecommitdiff
path: root/.i3/conkyrc
diff options
context:
space:
mode:
Diffstat (limited to '.i3/conkyrc')
-rw-r--r--.i3/conkyrc30
1 files changed, 12 insertions, 18 deletions
diff --git a/.i3/conkyrc b/.i3/conkyrc
index b955ae8..ce5ef17 100644
--- a/.i3/conkyrc
+++ b/.i3/conkyrc
@@ -34,37 +34,31 @@ conky.config = {
cpu_avg_samples = 2,
lua_load = '$HOME/.i3/scripts/conky_helpers.lua',
-
- template0 = [["$HOME/.i3/icons/\1.xbm"]],
};
conky.text = [[
[ \
- ${if_mpd_playing}{
- "full_text" : "${lua json ${mpd_smart}}",\
- "icon" : ${if_match "${mpd_status}"=="Paused"}${template0 pause}${else}${template0 mpd}${endif} \
- },${endif}\
{\
- "full_text" : "${cpu}%",\
- "icon" : ${template0 cpu},\
- "min_width" : "99%",\
- "align" : "right"\
+ "full_text" : " ${if_match ${cpu}<10} ${endif}${cpu}%"\
},\
{\
- "full_text" : " ${mem}",\
- "icon" : ${template0 load},\
- "min_width" : " 1000M",\
+ "full_text" : " ${mem}",\
+ "min_width" : " 1000M",\
"color" : "\#${if_match ${memperc}<90}ffffff${else}ff0000${endif}"\
},\
{\
- "full_text" : "${platform coretemp.0 temp 2}°C${platform f71882fg.2560 temp 2}°C ${execi 30 nvidia-settings -query GPUCoreTemp | perl -n -e'/Attribute.*: (.*).$/ && print $1'}°C",\
- "icon" : ${template0 temp}\
+ "full_text" : "${if_existing /sys/class/power_supply/AC0/online 1}${else}${endif} ${battery_percent BAT0}${if_existing /sys/class/power_supply/AC0/online 0} ${lua utime ${battery_time BAT0}}${endif}"\
},\
{\
- "full_text" : " ${if_up eth0}${addr}${else}(down)${endif}",\
- "icon" : ${template0 net-wired},\
- "color" : "\#${if_up eth0}ffffff${else}ff0000${endif}"\
+ "full_text" : " ${platform coretemp.0 temp 2}°C"\
},\
+ ${if_up eth0}{\
+ "full_text" : "⑆ ${addr eth0}"\
+ },${endif}\
+ ${if_up wlan0}{\
+ "full_text" : " ${addr wlan0} (${wireless_essid wlan0})",\
+ "color" : "\#${if_match ${wireless_link_qual_perc wlan0}<80}${if_match ${wireless_link_qual_perc wlan0}>50}ffff00${else}ff0000${endif}${else}ffffff${endif}"\
+ },${endif}\
{\
"full_text" : "${time %a, %d. %b %R}",\
"color" : "\#40B5D6"\