Created
February 16, 2019 19:48
-
-
Save EgZvor/57ab94739d3d16ad400c385069f39b2d 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 | |
# pylint: disable=C0330 | |
# flake8: noqa: E128 | |
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'], | |
) | |
status.register("battery", | |
format="{status} {percentage:.0f}%", | |
alert=True, | |
alert_percentage=5, | |
alert_timeout=10, | |
color=DRACULA_THEME["yellow"], | |
charging_color=DRACULA_THEME["green"], | |
full_color=DRACULA_THEME["green"], | |
status={ | |
"DIS": "\ue807", | |
"CHR": "\ue804", | |
"FULL": "\ue805", | |
}, | |
levels={ | |
25: "\ue808", | |
50: "\ue807", | |
75: "\ue806", | |
}, | |
) | |
# Shows your CPU temperature, if you have a Intel CPU | |
status.register("temp", | |
format="\ue81c {Package_id_0:.0f}°C", | |
lm_sensors_enabled=True, | |
color=DRACULA_THEME["purple"], | |
alert_color=DRACULA_THEME["red"], | |
alert_temp=60, | |
) | |
status.register("openvpn_simple", | |
format="{status}", | |
color_up=DRACULA_THEME['green'], | |
color_down=DRACULA_THEME['purple'], | |
vpn_name="protonvpn", | |
) | |
status.register("network", | |
interface="wlp2s0", | |
format_up="\ue800", | |
color_up=DRACULA_THEME["purple"], | |
color_down=DRACULA_THEME["red"], | |
dynamic_color=False, | |
hints={'separator': False, 'separator_block_width': 1} | |
) | |
# Shows pulseaudio default sink volume | |
# Note: requires libpulseaudio from PyPI | |
status.register("pulseaudio", | |
format="\ue801 {volume}%", | |
color_unmuted=DRACULA_THEME["purple"], | |
color_muted=DRACULA_THEME["red"], | |
) | |
status.register("xkblayout", | |
color=DRACULA_THEME['purple'], | |
layouts=['us', 'ru'], | |
) | |
status.register("mpd", | |
format="{artist} - {title} ({album}) {status}", | |
status={ | |
"stop": "\ue811", | |
"play": "\ue810", | |
"pause": "\ue812" | |
}, | |
on_leftclick="switch_playpause", | |
on_rightclick="stop", | |
on_middleclick="toggle_hidden", | |
dummy_output="# ♪ #", | |
hide_inactive=True, | |
color=DRACULA_THEME['purple'], | |
color_map={ | |
'play': DRACULA_THEME['green'], | |
'pause': DRACULA_THEME['cyan'], | |
'stop': DRACULA_THEME['purple'], | |
} | |
) | |
status.run() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment