aboutsummaryrefslogtreecommitdiffstats
path: root/i3/bar.py
blob: d7abbcb0f40578267caa8850a7769dab1f583663 (plain)
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
# -*- coding: utf-8 -*-

import subprocess

from i3pystatus import Status

status = Status(standalone=True)

status.register("clock",
    format="%y-%m-%d %H:%M:%S",)

status.register("battery",
    format="⚡:{percentage:.2f}% {remaining:%E%hh:%Mm}{status}",
    alert=True,
    alert_percentage=20,
    status={
        "DIS": "↓",
        "CHR": "↑",
        "FULL": "=",
    },
    battery_ident="BAT1",)


status.register("temp",
    format="{temp:.0f}°C",)

status.register("pulseaudio",
    format="♪:{volume}%",)

#status.register("mpd",
#    format="{status} {artist} > {title}",
#    status={
#        "pause": "✧",
#        "play": "▶",
#        "stop": "◾",
#    },)

status.register("wireless",
    interface="wlp3s0",
    format_up="{v4cidr}{quality:3.0f}%",)

# Shows disk usage of /
# Format:
# 42/128G [86G]
status.register("disk",
    path="/media",
    format="{avail}G",)

status.register("disk",
    path="/",
    format="{avail}G",)



status.run()