2018-08-24 09:26:15 +00:00
|
|
|
|
from i3pystatus import Status
|
2019-03-23 15:09:15 +00:00
|
|
|
|
import sensors
|
2018-08-24 09:26:15 +00:00
|
|
|
|
|
|
|
|
|
status = Status()
|
|
|
|
|
|
|
|
|
|
status.register("pulseaudio",
|
2018-10-31 12:53:51 +00:00
|
|
|
|
format="♪I {volume}%",
|
|
|
|
|
format_muted="♪I -∞dB",
|
2018-08-24 09:26:15 +00:00
|
|
|
|
step="2",
|
2018-10-31 12:53:51 +00:00
|
|
|
|
sink="alsa_output.pci-0000_00_1f.3.analog-stereo")
|
|
|
|
|
status.register("pulseaudio",
|
|
|
|
|
format="♪D {volume}%",
|
|
|
|
|
format_muted="♪D -∞dB",
|
|
|
|
|
step="2",
|
|
|
|
|
sink="@DEFAULT_SINK@")
|
2018-08-24 09:26:15 +00:00
|
|
|
|
|
|
|
|
|
status.register("backlight",
|
|
|
|
|
format="{percentage}%",
|
|
|
|
|
backlight="intel_backlight",
|
|
|
|
|
on_leftclick="xbacklight =10",
|
|
|
|
|
on_rightclick="xbacklight =50",
|
|
|
|
|
interval=1)
|
|
|
|
|
|
|
|
|
|
status.register("shell",
|
2019-09-24 14:15:31 +00:00
|
|
|
|
format="L: {output}",
|
2018-08-24 09:26:15 +00:00
|
|
|
|
command="/home/kunsi/.config/i3pystatus/screensaver-status.sh",
|
|
|
|
|
interval=1,
|
|
|
|
|
on_leftclick="xset s 90 10",
|
|
|
|
|
on_rightclick="xset s off")
|
|
|
|
|
|
|
|
|
|
status.register("clock",
|
2019-10-15 15:01:09 +00:00
|
|
|
|
format="%a, %Y-%m-%d %H:%M:%S UTC",)
|
2018-08-24 09:26:15 +00:00
|
|
|
|
|
|
|
|
|
status.register("battery",
|
2018-10-31 12:53:51 +00:00
|
|
|
|
battery_ident="BAT0",
|
2019-09-24 14:15:31 +00:00
|
|
|
|
format="B0: {status}{percentage:.2f}% {remaining:%E%h:%M}",
|
2018-10-31 12:53:51 +00:00
|
|
|
|
alert=True,
|
|
|
|
|
alert_percentage=5,
|
|
|
|
|
status={
|
|
|
|
|
"DIS": "↓",
|
|
|
|
|
"CHR": "↑",
|
|
|
|
|
"FULL": "",
|
|
|
|
|
})
|
|
|
|
|
status.register("battery",
|
|
|
|
|
battery_ident="BAT1",
|
2019-09-24 14:15:31 +00:00
|
|
|
|
format="B1: {status}{percentage:.2f}% {remaining:%E%h:%M}",
|
2018-08-24 09:26:15 +00:00
|
|
|
|
alert=True,
|
|
|
|
|
alert_percentage=5,
|
|
|
|
|
status={
|
|
|
|
|
"DIS": "↓",
|
|
|
|
|
"CHR": "↑",
|
|
|
|
|
"FULL": "",
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
status.register("load",
|
2018-12-21 16:34:49 +00:00
|
|
|
|
format="{avg1}")
|
2018-08-24 09:26:15 +00:00
|
|
|
|
|
2019-03-23 15:09:15 +00:00
|
|
|
|
status.register("temp",
|
|
|
|
|
format="{temp:.0f}°C",
|
|
|
|
|
hints={"markup": "pango"},
|
|
|
|
|
# lm_sensors_enable=True,
|
|
|
|
|
dynamic_color=True)
|
2018-08-24 09:26:15 +00:00
|
|
|
|
|
2018-10-31 12:53:51 +00:00
|
|
|
|
status.register("shell",
|
|
|
|
|
format="{output}",
|
2018-12-21 16:34:49 +00:00
|
|
|
|
hints = {"markup": "pango"},
|
|
|
|
|
command="/home/kunsi/.config/i3pystatus/rfkill-wifi.py",
|
|
|
|
|
interval=1)
|
|
|
|
|
status.register("shell",
|
|
|
|
|
format="{output}",
|
|
|
|
|
hints = {"markup": "pango"},
|
|
|
|
|
command="/home/kunsi/.config/i3pystatus/rfkill-bt.py",
|
2018-10-31 12:53:51 +00:00
|
|
|
|
interval=1)
|
2019-03-29 17:26:34 +00:00
|
|
|
|
status.register("shell",
|
|
|
|
|
format="{output}",
|
|
|
|
|
hints = {"markup": "pango"},
|
|
|
|
|
command="/home/kunsi/.config/i3pystatus/touchscreen.sh",
|
|
|
|
|
interval=1,
|
|
|
|
|
on_leftclick="xinput enable 'ELAN Touchscreen'",
|
|
|
|
|
on_rightclick="xinput disable 'ELAN Touchscreen'")
|
2018-10-31 12:53:51 +00:00
|
|
|
|
|
2018-08-24 09:26:15 +00:00
|
|
|
|
status.register("network",
|
2018-10-31 12:53:51 +00:00
|
|
|
|
interface="wlp4s0",
|
2019-10-23 09:04:01 +00:00
|
|
|
|
format_up="{interface}:[ {essid} ({freq:01.3f}GHz – {quality}%)][ {v6cidr}][ {v4cidr}]",
|
2018-08-24 09:26:15 +00:00
|
|
|
|
format_down="{interface}: down",
|
|
|
|
|
detect_active=True,
|
2019-06-20 14:24:12 +00:00
|
|
|
|
freq_divisor=1000000000,
|
|
|
|
|
divisor=1024,
|
|
|
|
|
hints={"markup":"pango"})
|
2018-08-24 09:26:15 +00:00
|
|
|
|
|
|
|
|
|
status.register("disk",
|
|
|
|
|
path="/home",
|
|
|
|
|
format="{used}/{total}G",)
|
|
|
|
|
|
|
|
|
|
status.run()
|