cleaned up syntax and included mpd information

This commit is contained in:
2017-03-25 11:17:13 +02:00
parent 95549148d5
commit ab731420b7

View File

@@ -1,4 +1,3 @@
-- vim: ts=4 sw=4 noet ai cindent syntax=lua
conky.config = {
update_interval = 1,
cpu_avg_samples = 1,
@@ -12,12 +11,19 @@ conky.config = {
conky.text = [[
S\
%{c}\
%{F\#ff517ba2}%{B-}%{F\#ffffffff}%{B\#ff517ba2} ${upspeedf br0}K \
%{F\#ff3d3d3d}%{B\#ff517ba2}%{F\#ffffffff}%{B\#ff3d3d3d} ${downspeedf br0}K \
%{F\#ff517ba2}%{B\#ff3d3d3d}%{F\#ffffffff}%{B\#ff517ba2} ${hwmon 0 temp 1}°%{B\#ff3d3d3d}\
%{F\#ff517ba2}%{B\#ff3d3d3d} %{F\#ffffffff}%{B\#ff3d3d3d} ${cpu cpu0}%\
%{F\#ff3d3d3d}%{B\#ff517ba2} %{F\#ffffffff}%{B\#ff517ba2} ${mem}%{B-}%{F\#ff517ba2}\
%{F\#a7a5a5}%{B\#000000}%{F\#504e4e}%{B\#a7a5a5}%{F\#d6d3d2}%{B\#504e4e} ${upspeedf br0}K \
%{F\#a7a5a5}%{B\#504e4e}%{F\#504e4e}%{B\#a7a5a5}%{F\#d6d3d2}%{B\#504e4e} ${downspeedf br0}K \
%{F\#a7a5a5}%{B\#504e4e}%{F\#504e4e}%{B\#a7a5a5}%{F\#d6d3d2}%{B\#504e4e} ${hwmon 0 temp 1}°\
%{F\#504e4e}%{B\#a7a5a5}%{F\#a7a5a5}%{B\#504e4e}%{F\#d6d3d2}%{B\#504e4e}  ${cpu cpu0}%\
%{F\#504e4e}%{B\#a7a5a5}%{F\#a7a5a5}%{B\#504e4e}%{F\#d6d3d2}%{B\#504e4e}  ${mem}\
%{F\#504e4e}%{B\#a7a5a5}%{F\#a7a5a5}%{B\#000000}\
%{r}\
%{F\#ff517ba2}%{B-}%{F\#ffffffff}%{B\#ff517ba2} ${texeci 60 mosquitto_sub -C 1 -t "study/sensor/temperature"}° \
%{F\#ff3d3d3d}%{B\#ff3d3d3d}%{F\#ffffffff} ${time %a %b %d, %T} %{B-}%{F\#ff3d3d3d}\
%{F\#a7a5a5}%{B\#000000}%{F\#504e4e}%{B\#a7a5a5}%{F\#d6d3d2}%{B\#504e4e} \
${if_match "${mpd_status}" =="Playing"}${mpd_smart}${else}MPD ${mpd_status}${endif} \
%{F\#a7a5a5}%{B\#504e4e}%{F\#504e4e}%{B\#a7a5a5}%{F\#d6d3d2}%{B\#504e4e} \
${texeci 60 mosquitto_sub -C 1 -t "study/sensor/temperature"}° \
%{F\#a7a5a5}%{B\#504e4e}%{F\#504e4e}%{B\#a7a5a5}%{F\#d6d3d2}%{B\#504e4e} ${time %a %b %d, %T} \
%{F\#a7a5a5}%{B\#504e4e}%{B\#000000}\
]]
-- vim: ts=4 sw=4 noet ai cindent syntax=lua