Improve i3pystatus
Consume less battery by not printing seconds Save space by hiding down interfaces
This commit is contained in:
parent
08e06e5600
commit
546db749c3
@ -29,7 +29,7 @@ COLORS = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
status.register("clock",
|
status.register("clock",
|
||||||
format="%a %Y-%m-%d %H:%M:%S",
|
format="%a %m/%d %H:%M",
|
||||||
color=COLORS['Magenta'])
|
color=COLORS['Magenta'])
|
||||||
|
|
||||||
status.register("load",
|
status.register("load",
|
||||||
@ -82,13 +82,22 @@ if os.path.exists("/sys/class/power_supply/BAT1"):
|
|||||||
if os.path.exists("/sys/class/net/wlp3s0"):
|
if os.path.exists("/sys/class/net/wlp3s0"):
|
||||||
status.register("wireless",
|
status.register("wireless",
|
||||||
interface="wlp3s0",
|
interface="wlp3s0",
|
||||||
format_up="{essid}",
|
format_up="{essid} {quality:.0f}%",
|
||||||
|
format_down="",
|
||||||
color_up=COLORS['Green'],
|
color_up=COLORS['Green'],
|
||||||
color_down=COLORS['Red'])
|
color_down=COLORS['Red'])
|
||||||
|
|
||||||
if os.path.exists("/sys/class/net/enp0s25"):
|
if os.path.exists("/sys/class/net/enp0s25"):
|
||||||
status.register("network",
|
status.register("network",
|
||||||
interface="enp0s25",
|
interface="enp0s25",
|
||||||
|
format_down="",
|
||||||
|
color_up=COLORS['Green'],
|
||||||
|
color_down=COLORS['Red'])
|
||||||
|
|
||||||
|
if os.path.exists("/sys/class/net/enp0s20u2c2"):
|
||||||
|
status.register("network",
|
||||||
|
interface="enp0s20u2c2",
|
||||||
|
format_down="",
|
||||||
color_up=COLORS['Green'],
|
color_up=COLORS['Green'],
|
||||||
color_down=COLORS['Red'])
|
color_down=COLORS['Red'])
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user