From 7e7aa928072775240ff70ca61f2dd0e8a09242d8 Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Sun, 2 Feb 2014 20:35:42 +0100 Subject: (Let's pretend that this is the) initial commit --- i3/bar.py | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 i3/bar.py (limited to 'i3/bar.py') diff --git a/i3/bar.py b/i3/bar.py new file mode 100644 index 0000000..0ce9469 --- /dev/null +++ b/i3/bar.py @@ -0,0 +1,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="{status} {percentage:.2f}% {remaining:%E%hh:%Mm}", + 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="/home/kyrias/media", + format="{avail}G",) + +status.register("disk", + path="/", + format="{avail}G",) + + + +status.run() -- cgit v1.2.3-54-g00ecf