/
i3pystatus.py
executable file
·61 lines (48 loc) · 1.33 KB
/
i3pystatus.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import subprocess
from i3pystatus import Status
status = Status(standalone=True)
status.register("clock",
format="\uf133 %Y-%m-%d \uf017 %T",)
# Shows the average load of the last minute and the last 5 minutes
# (the default value for format is used)
#status.register("load")
# Shows your CPU temperature, if you have a Intel CPU
#status.register("temp",
# format="{temp:.0f}°C",)
status.register("battery",
format="{status} {percentage_design:.2f}% {remaining:%E%hh:%Mm}",
alert=True,
alert_percentage=5,
status={
"DIS": "\uf0e7",
"CHR": "\uf1e6",
"FULL": "\uf0e7",
},)
status.register("network",
interface="enp6s0",
format_up="\uf038 {v4cidr}",
format_down="",
dynamic_color=True)
status.register("network",
interface="wlp5s0f0",
format_up="\uf1eb {quality:03.0f}% / {essid}",
format_down="{essid}",
dynamic_color=True)
status.register("disk",
path="/",
format="\uf0a0 {avail}G",
critical_limit=5,)
status.register("alsa",
format="{muted} {volume}%",
muted="\uf026",
unmuted="\uf028",)
status.register("mpd",
format="{status} [{title} - {artist}] ({song_elapsed}/{song_length})",
status={
"pause": "\uf04c",
"play": "\uf04b",
"stop": "\uf04d",
},)
status.run()