Last active
August 29, 2015 14:24
-
-
Save Altai-man/3f698017cbb06c72a220 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from i3pystatus import Status | |
status = Status(standalone=True) | |
# Displays clock like this: | |
# Tue 30 Jul 11:59:46 PM KW31 | |
# ^-- calendar week | |
status.register("clock", | |
format=" %X ",) | |
# Shows your CPU temperature, if you have a Intel CPU | |
status.register("temp", | |
format="CPU:{temp:.0f}°C",) | |
# The battery monitor has many formatting options, see README for details | |
# This would look like this, when discharging (or charging) | |
# ↓14.22W 56.15% [77.81%] 2h:41m | |
# And like this if full: | |
# =14.22W 100.0% [91.21%] | |
# | |
# This would also display a desktop notification (via D-Bus) if the percentage | |
# goes below 5 percent while discharging. The block will also color RED. | |
# If you don't have a desktop notification demon yet, take a look at dunst: | |
# http://www.knopwob.org/dunst/ | |
status.register("battery", | |
format=" {status}/{percentage:.2f}% {remaining:%E%hh:%Mm} ", | |
alert=True, | |
alert_percentage=5, | |
status={ | |
"DIS": "↓", | |
"CHR": "↑", | |
"FULL": "=", | |
},) | |
# Shows disk usage of / | |
# Format: | |
# 42/128G [86G] | |
status.register("disk", | |
path="/", | |
format=" root:{used}/{total}G ",) | |
status.run() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment