Last active
February 2, 2018 10:16
-
-
Save EgZvor/5d7241fb1f1b9350f787e73d4927768b to your computer and use it in GitHub Desktop.
i3pystatus configuration (do not name this file as i3pystatus.py , because it will mess up python imports)
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() | |
DRACULA_THEME={ | |
"background": "#282a36", | |
"current line": "#44475a", | |
"selection": "#44475a", | |
"foreground": "#f8f8f2", | |
"comment": "#6272a4", | |
"cyan": "#8be9fd", | |
"green": "#50fa7b", | |
"orange": "#ffb86c", | |
"pink": "#ff79c6", | |
"purple": "#bd93f9", | |
"red": "#ff5555", | |
"yellow": "#f1fa8c", | |
} | |
status.register("clock", | |
format="%H:%M %b/%d/%Y", | |
color=DRACULA_THEME['yellow'], | |
) | |
# Shows your CPU temperature, if you have a Intel CPU | |
status.register("temp", | |
format="\ue809 {temp:.0f}°C", | |
color=DRACULA_THEME["purple"], | |
alert_color=DRACULA_THEME["red"], | |
alert_temp=80, | |
) | |
status.register("battery", | |
format="{status} {percentage:.0f}%", | |
alert=True, | |
alert_percentage=10, | |
color=DRACULA_THEME["purple"], | |
charging_color=DRACULA_THEME["green"], | |
full_color=DRACULA_THEME["green"], | |
status={ | |
"DIS": "\ue815", | |
"CHR": "\ue805", | |
"FULL": "\ue817", | |
},) | |
status.register("network", | |
interface="wlp2s0", | |
format_up="\ue80D", | |
color_up=DRACULA_THEME["green"], | |
dynamic_color=False, | |
) | |
status.register("disk", | |
path="/home", | |
format="\ue80B {used}G ({percentage_used}%)", | |
color=DRACULA_THEME["purple"], | |
) | |
status.register("mem", | |
format="\ue808 {percent_used_mem}%", | |
color=DRACULA_THEME["purple"], | |
warn_percentage=60, | |
warn_color=DRACULA_THEME["yellow"], | |
alert_color=DRACULA_THEME["red"], | |
) | |
status.register("cpu_usage", | |
format="\ue807 {usage}%", | |
color=DRACULA_THEME["purple"], | |
) | |
# Shows pulseaudio default sink volume | |
# | |
# Note: requires libpulseaudio from PyPI | |
status.register("pulseaudio", | |
format="\ue812 {volume}%", | |
color_unmuted=DRACULA_THEME["purple"], | |
color_muted=DRACULA_THEME["red"], | |
) | |
status.run() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment