From e918c374d96e968c628d45458bc1a17ddf60d405 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Fri, 13 Jun 2014 18:32:12 +0200 Subject: Switched conky / i3bar to JSON protocol * conky now generates JSON output in conjunction with newly created ".conky.sh" * changed conky script logic to be interface aware ** detects and displays address of the active interface (eth / wlan / wwan) * changed conky date format to iso * switched gvim font to "Droid Sans Mono" ** analog to urxvt font * xdg config is now preventing "Desktop" and "Downloads" directories from being created --- conky/.conkyrc | 53 ++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 52 insertions(+), 1 deletion(-) (limited to 'conky/.conkyrc') diff --git a/conky/.conkyrc b/conky/.conkyrc index b052dfd..dff876f 100644 --- a/conky/.conkyrc +++ b/conky/.conkyrc @@ -4,5 +4,56 @@ total_run_times 0 update_interval 5 +if_up_strictness address + TEXT -Host: $nodename | Kernel: $kernel | Root: ${fs_used_perc /}% | IP: ${addr} | CPU-Temp: ${acpitemp}°C | Fan: ${ibm_fan} rpm | RAM: ${memperc}% | CPU-Load: ${cpu cpu0}% | Battery: ${battery_percent} | ${time %d.%m.%y %H:%M} +[ + { + "full_text" : " Host: $nodename " + }, + { + "full_text" : " Kernel: $kernel " + }, + { + "full_text" : " Root: ${fs_used_perc /}% " + }, + ${if_up enp0s25} + { + "full_text" : " IP: ${addr enp0s25} " + }, + ${else} + ${if_up wlp3s0} + { + "full_text" : " IP: ${addr wlp3s0} " + }, + ${else} + ${if_up wwp0s29u1u4i6} + { + "full_text" : " IP: ${addr wwp0s29u1u4i6} " + }, + ${else} + { + "full_text" : " IP: No connection " + }, + ${endif} + ${endif} + ${endif} + { + "full_text" : " Temp: ${acpitemp}°C " + }, + { + "full_text" : " Fan: ${ibm_fan} " + }, + { + "full_text" : " RAM: ${memperc}% " + }, + { + "full_text" : " Load: ${cpu cpu0}% " + }, + { + "full_text" : " Battery: ${battery_percent} " + }, + { + "full_text" : " ${time %Y/%m/%d %H:%M}" + } +], -- cgit v1.2.3