Added output for volume and for eth0.
Note that the output of volume needs the kernel module snd-pcm-oss to be
loaded.
echo "snd-pcm-oss" >> /etc/modules-load.d/snd-pcm-oss.conf
This commit is contained in:
@@ -16,12 +16,6 @@ update_interval_on_battery 1.0
|
|||||||
#pad_percents 2
|
#pad_percents 2
|
||||||
#use_spacer left
|
#use_spacer left
|
||||||
|
|
||||||
#TEXT
|
|
||||||
#
|
|
||||||
#\
|
|
||||||
#\
|
|
||||||
#\
|
|
||||||
#\
|
|
||||||
TEXT
|
TEXT
|
||||||
[
|
[
|
||||||
{ "full_text" : " \
|
{ "full_text" : " \
|
||||||
@@ -100,6 +94,26 @@ ${endif}
|
|||||||
\
|
\
|
||||||
\
|
\
|
||||||
\
|
\
|
||||||
|
${if_existing /sys/class/net/eth0}
|
||||||
|
{ "full_text" : " \
|
||||||
|
eth0: \
|
||||||
|
${if_up eth0}\
|
||||||
|
${addr eth0}\
|
||||||
|
${else}\
|
||||||
|
E: down\
|
||||||
|
${endif}\
|
||||||
|
" , "color" : "\
|
||||||
|
${if_up eth0}\
|
||||||
|
${if_match "${addr eth0}" != "No Address"}\#00FF00\
|
||||||
|
${else}\#FFFF00\
|
||||||
|
${endif}\
|
||||||
|
${else}\#FF0000\
|
||||||
|
${endif}\
|
||||||
|
" },
|
||||||
|
${endif}
|
||||||
|
\
|
||||||
|
\
|
||||||
|
\
|
||||||
{ "full_text" : " \
|
{ "full_text" : " \
|
||||||
LOAD: ${loadavg 2}\
|
LOAD: ${loadavg 2}\
|
||||||
" , "color" : "\
|
" , "color" : "\
|
||||||
@@ -112,6 +126,16 @@ ${endif}\
|
|||||||
\
|
\
|
||||||
\
|
\
|
||||||
\
|
\
|
||||||
|
{ "full_text" : " VOL: \
|
||||||
|
${if_match ${mixer} == 0}\
|
||||||
|
mute\
|
||||||
|
${else}\
|
||||||
|
${mixer}%\
|
||||||
|
${endif}\
|
||||||
|
" , "color" : "\#FFFFFF" },
|
||||||
|
\
|
||||||
|
\
|
||||||
|
\
|
||||||
${if_existing /proc/acpi/battery/BATO}\
|
${if_existing /proc/acpi/battery/BATO}\
|
||||||
{ "full_text" : " BAT: ${battery_short} (${battery_time}) " , "color" : "\#FFFFFF" },
|
{ "full_text" : " BAT: ${battery_short} (${battery_time}) " , "color" : "\#FFFFFF" },
|
||||||
${endif}\
|
${endif}\
|
||||||
|
|||||||
Reference in New Issue
Block a user