conky.config = { out_to_x = false, own_window = false, out_to_console = true, background = false, max_text_width = 0, double_buffer = false, -- Update interval in seconds update_interval = 2.5, -- This is the number of times Conky will update before quitting. -- Set to zero to run forever. total_run_times = 0, -- Shortens units to a single character (kiB->k, GiB->G, etc.). Default is off. short_units = true, -- How strict should if_up be when testing an interface for being up? -- The value is one of up, link or address, to check for the interface -- being solely up, being up and having link or being up, having link -- and an assigned IP address. if_up_strictness = 'address', -- Add spaces to keep things from moving about? This only affects certain objects. -- use_spacer should have an argument of left, right, or none use_spacer = 'left', -- Force UTF8? note that UTF8 support required XFT override_utf8_locale = true, -- number of cpu samples to average -- set to 1 to disable averaging cpu_avg_samples = 2, lua_load = '$HOME/.i3/scripts/conky_helpers.lua', }; conky.text = [[ [ \ {\ "full_text" : " ${if_match ${cpu}<10} ${endif}${cpu}%"\ },\ {\ "full_text" : " ${mem}",\ "min_width" : " 1000M",\ "color" : "\#${if_match ${memperc}<90}ffffff${else}ff0000${endif}"\ },\ {\ "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" : " ${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"\ } \ ], ]]; -- vim:ft=lua