lemonbar: Quick hostname fix for conky
This commit is contained in:
@@ -73,7 +73,33 @@ def format_load(data, module, alert):
|
|||||||
|
|
||||||
class ConkyFastModule(LemonModule):
|
class ConkyFastModule(LemonModule):
|
||||||
# TODO use internal python stuff for stuff like clock, then raise update interval
|
# TODO use internal python stuff for stuff like clock, then raise update interval
|
||||||
conky_config = """
|
if os.uname()[1] == 'kubaDesktop':
|
||||||
|
conky_config = """
|
||||||
|
conky.config = {
|
||||||
|
background=false,
|
||||||
|
update_interval=0.2,
|
||||||
|
total_run_times=0,
|
||||||
|
override_utf8_locale=true,
|
||||||
|
short_units=true,
|
||||||
|
uppercase=false,
|
||||||
|
out_to_console=true,
|
||||||
|
out_to_x=false,
|
||||||
|
if_up_strictness='address',
|
||||||
|
format_human_readable=true,
|
||||||
|
}
|
||||||
|
|
||||||
|
conky.text = [[
|
||||||
|
${time %a %d %b %H:%M:%S} \
|
||||||
|
${exec ~/.i3/lemonbar/get_vol.sh} \
|
||||||
|
down down\
|
||||||
|
\
|
||||||
|
${if_up enp5s0}${downspeedf enp5s0} ${upspeedf enp5s0}\
|
||||||
|
${else}down down${endif}\
|
||||||
|
\
|
||||||
|
]]
|
||||||
|
"""
|
||||||
|
else:
|
||||||
|
conky_config = """
|
||||||
conky.config = {
|
conky.config = {
|
||||||
background=false,
|
background=false,
|
||||||
update_interval=0.2,
|
update_interval=0.2,
|
||||||
@@ -93,7 +119,7 @@ ${exec ~/.i3/lemonbar/get_vol.sh} \
|
|||||||
${if_up wlp3s0}${downspeedf wlp3s0} ${upspeedf wlp3s0}\
|
${if_up wlp3s0}${downspeedf wlp3s0} ${upspeedf wlp3s0}\
|
||||||
${else}down down${endif}\
|
${else}down down${endif}\
|
||||||
\
|
\
|
||||||
${if_up enp5s0}${downspeedf enp2s0} ${upspeedf enp5s0}\
|
${if_up enp2s0}${downspeedf enp2s0} ${upspeedf enp2s0}\
|
||||||
${else}down down${endif}\
|
${else}down down${endif}\
|
||||||
\
|
\
|
||||||
]]
|
]]
|
||||||
@@ -176,8 +202,8 @@ ${else}down down${endif}\
|
|||||||
self.show_secs = not self.show_secs
|
self.show_secs = not self.show_secs
|
||||||
|
|
||||||
class ConkySlowModule(LemonModule):
|
class ConkySlowModule(LemonModule):
|
||||||
|
if os.uname()[1] == 'kubaDesktop':
|
||||||
conky_config = """
|
conky_config = """
|
||||||
conky.config = {
|
conky.config = {
|
||||||
background=false,
|
background=false,
|
||||||
update_interval=5,
|
update_interval=5,
|
||||||
@@ -199,6 +225,32 @@ ${fs_used_perc /home} \
|
|||||||
F100 \
|
F100 \
|
||||||
100.00 \
|
100.00 \
|
||||||
${exec /home/kuba/.i3/scripts/lang.sh show}
|
${exec /home/kuba/.i3/scripts/lang.sh show}
|
||||||
|
]]
|
||||||
|
"""
|
||||||
|
else:
|
||||||
|
conky_config = """
|
||||||
|
|
||||||
|
conky.config = {
|
||||||
|
background=false,
|
||||||
|
update_interval=5,
|
||||||
|
total_run_times=0,
|
||||||
|
override_utf8_locale=true,
|
||||||
|
short_units=true,
|
||||||
|
uppercase=false,
|
||||||
|
out_to_console=true,
|
||||||
|
out_to_x=false,
|
||||||
|
if_up_strictness='address',
|
||||||
|
format_human_readable=true,
|
||||||
|
}
|
||||||
|
|
||||||
|
conky.text = [[
|
||||||
|
${cpu} \
|
||||||
|
${mem} \
|
||||||
|
${fs_used_perc /} \
|
||||||
|
${fs_used_perc /home} \
|
||||||
|
${exec ~/.i3/lemonbar/get_bat.sh} \
|
||||||
|
${exec brillo} \
|
||||||
|
${exec /home/kuba/.i3/scripts/lang.sh show}
|
||||||
]]
|
]]
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user