status.register("load", format="Load {avg1}") status.register("cpu_usage", format="CPU {usage}%") status.register("temp", format="{Core_0}°C {Core_1}°C {Core_2}°C {Core_3}°C", hints={"markup": "pango"}, lm_sensors_enabled=True, dynamic_color=True) status.register("network", interface="wlo1", format_up="↓{bytes_recv}KB/s ↑{bytes_sent}KB/s") status.register("battery") status.register("pulseaudio") status.register('weather', format='{condition} {current_temp}{temp_unit}', colorize=True, hints={'markup': 'pango'}, backend=weathercom.Weathercom( location_code='ASXX0117:1:AS', units="metric", )) status.register("uptime", format="Up {hours}:{mins}:{secs}") status.run()
from i3pystatus.weather import weathercom status = Status(standalone=True) status.register( "clock", color="#93A8D8", format=" %a %-d %b %H:%M", ) status.register( "weather", format='{icon} {current_temp}{temp_unit}', colorize=True, backend=weathercom.Weathercom( location_code="GMXX0027", units="metric", ), on_leftclick=[ "chromium http://www.weather.com/de-DE/wetter/heute/l/GMXX0027" ]) status.register( "shell", format= "<span color=\"#FFFFFF\">H:</span> <span color=\"#31F18B\">{output}</span>", hints={"markup": "pango"}, command= "echo \"list DHT_Bedroom humidity\nexit\" | netcat tank 7072 | awk '{print $4}'", ) status.register(
status.register( "clock", format="📆 %D %a 🕒 %I:%M %p", ) status.register( 'weather', format= '🌈 {condition} {current_temp}{temp_unit}[ {update_error}] 💦 {humidity}%', interval=900, colorize=True, hints={'markup': 'pango'}, backend=weathercom.Weathercom( location_code='85721:4:US', # UofA #location_code='85704:4:US', # Apt units='imperial', update_error='<span color="#ff0000">!</span>', log_level=logging.DEBUG, ), ) status.register("calendar", format="📅 {title}", update_interval=10, urgent_blink=True, backend=google.Google( credential_path='/home/yman/.gcalcli_gmail/oauth', days=2)) status.register("calendar", format="📅 {title}", update_interval=10,
# Shows mpd status # Format: # Cloud connected▶Reroute to Remain status.register("mpd", format="{title}{status}{album}", status={ "pause": "▷", "play": "▶", "stop": "◾", },) status.register( 'weather', format='{condition} {current_temp}{temp_unit}[ {icon}][ Hi: {high_temp}][ Lo: {low_temp}][ {update_error}]', interval=900, colorize=True, hints={'markup': 'pango'}, backend=weathercom.Weathercom( location_code='94107:4:US', units='imperial', update_error='<span color="#ff0000">!</span>', ), ) # status = Status(logfile='$HOME/i3pystatus.log') # status = Status( # logfile='/home/jaskirat/i3pystatus.log', # logformat='%(asctime)s %(levelname)s:', # ) status.run()
'clock', format='| %a %-d %b %R |', ) # Network status.register( 'network', interface='eno1', format_up='{v4cidr}', ) # Spotify status.register('spotify', format='| {status} {artist} - {title} |') # Weather status.register( 'weather', format= '{city}: {current_temp}{temp_unit}[ {icon}][ Hi: {high_temp}][ Lo: {low_temp}]', colorize=True, hints={'markup': 'pango'}, log_level=logging.DEBUG, backend=weathercom.Weathercom( location_code='84020', units='imperial', log_level=logging.DEBUG, ), ) status.run()
import logging # For time format specification: "man strftime" status = Status() status.register("clock", format=["%l:%M %p", "%X"]) status.register("clock", format=["%a %b %e, %Y", "%x"]) status.register("moon", format="{moonicon} {status} {illum:.0f}%") status.register( "weather", format= "{condition} {current_temp}{temp_unit}{icon}[ Hi: {high_temp}] Lo: {low_temp} {wind_speed}{wind_unit}", colorize=True, log_level=logging.DEBUG, backend=weathercom.Weathercom(location_code="USMN0503:1:US", units="imperial"), ) status.register( "battery", format="{status}{percentage:.0f}% {remaining:%E%hh:%Mm}", alert=True, alert_percentage=5, status={ "DIS": "↓", "CHR": "↑", "FULL": "=" }, ) status.register("disk", path="/", format="Disk {used:.0f}/{total:.0f}G") status.register("uname", format="{nodename}")
dynamic_color=False, color_up="#FFFFFF", color_down="#FFFFFF", interface="wlp2s0", format_up=" {v4} {kbs}KB/s {quality}%", format_down=" {interface}: DOWN", interval=1) status.register("disk", path="/", format=" {used}/{total}G [{avail}G]", interval=30) status.register("weather", format="{icon} {condition}, {current_temp}{temp_unit}[ HI: {high_temp}][ LO: {low_temp}][{update_error}]", color="#FFFFFF", hints={'markup': 'pango'}, backend=weathercom.Weathercom( location_code="CAXX0531:1:CA", units="metric", ), on_leftclick=["check_weather"], on_doubleleftclick=["launch_web"], interval=1800) # status.register("window_title", # format="{title}", # max_width=45) status.run()
color_good = base0B color_warn = base0A color_bad = base08 color_white = base07 # Displays clock status.register("clock", color=color_white, hints={'markup': 'pango'}, format="%m<b>%d</b>|%H<b>%M</b>") # Weather status.register("weather", format="{icon} {current_temp:>2}{temp_unit}", colorize=True, backend=weathercom.Weathercom(units="metric", location_code="DAXX0009")) # Shows pulseaudio default sink volume # # Note: requires libpulseaudio from PyPI status.register("pulseaudio", color_unmuted=color_white, format=" {volume:>3}%", format_muted=" [MUTE]") # show battery status status.register("battery", full_color=color_good, format=" {percentage:>3.0f}%", alert=True, alert_percentage=20,
from i3pystatus import Status from i3pystatus.weather import weathercom import netifaces status = Status(standalone=True) # documentation = http://docs.enkore.de/i3pystatus status.register("clock", format="%a %-d %b %H:%M:%S", color="#0FF000") status.register("weather", colorize=True, interval=300, backend=weathercom.Weathercom( location_code='RSMK0150:1:RS', units='metric' ) ) ifaces = netifaces.interfaces() gateways = netifaces.gateways() values = list(gateways['default'].values()) try: iface = values[0][44] except IndexError: # gateway is not available yet iface = '' if iface not in ifaces: iface = ifaces[int(len(ifaces) / 2)] status.register("network", interface=iface, format_down="DOWN: {interface}", graph_style="braille-fill", detached_down=False, format_up="{bytes_recv}↓{bytes_sent}↑", interval=5)
status.register( "clock", format=" %a %d-%m-%Y ", color='#61AEEE', interval=1, ) status.register( 'weather', format= '{condition} {current_temp}{temp_unit}[ {icon}][ H: {high_temp}][ L: {low_temp}][ {update_error}]', colorize=True, hints={'markup': 'pango'}, backend=weathercom.Weathercom( location_code='ASXX0016:1:AS', units='metric', ), log_level=10, ) status.register( "cpu_usage", on_leftclick="alacritty --title=htop -e 'htop'", format=" {usage}%", ) status.register( "temp", format= "{Package_id_0}°C \uE0C0{Core_0_bar}{Core_1_bar}{Core_2_bar}{Core_3_bar}", hints={"markup": "pango"},
color=base0B, interval=1, ) # weather status.register( 'weather', # format='{condition} {current_temp}{temp_unit}[ {icon}] [ Hi: {high_temp}][ Lo: {low_temp}]', format= '{condition} {current_temp}{temp_unit}[ {icon}] [ Hi: {high_temp}][ Lo: {low_temp}]', interval=300, color=base0D, # colorize=True, hints={'markup': 'pango'}, backend=weathercom.Weathercom( location_code='60637:4:US', units='metric', ), ) # status.register("updates", # format="Updates: {count}", # format_no_updates="", # on_leftclick="urxvt --hold -e 'pacaur --needed --noconfirm --noedit -Syu'", # backends=[pacman.Pacman(), cower.Cower()]) # audio status.register("pulseaudio", color_unmuted=base04, color_muted=base08, format_muted=' [muted]', format=" {volume}%")
status.register("load", format="{avg5} {avg1}") status.register("cpu_usage") status.register("temp") status.register("network", interface="enp0s25", format_up=" {bytes_sent} MiB/s {bytes_recv} MiB/s", divisor=1024**2, recv_limit=100000, sent_limit=40000) #status.register("xkblayout", layouts=["de", "us colemak"]) status.register("disk", format=" {avail} GiB", path="/") status.register("weather", backend=weathercom.Weathercom(location_code="GMXX4347:1:GM", units="metric"), colorize=True, format="{current_temp}°C") status.register("spotify", format=" {status} {artist} - {title}") #status.register("sabnzbd", host="10.0.10.21", # api_key=config.sabnzbd_api) status.run()
status.register( "pulseaudio", format="♪ {volume}", color_muted="#cc342b", color_unmuted="#c5c8c6", ) status.register( "weather", format="{current_temp}{temp_unit}[ {icon}]", interval=900, colorize=True, hints={'markup': 'pango'}, backend=weathercom.Weathercom( location_code='21012:4:US', units='imperial', ), color_icons={ 'Snow': ('☃', '#c5c8c6'), 'Partly Cloudy': ('☁', '#969896'), 'Rainy': ('⛈', '#3971ed'), 'Fair': ('☼', '#198844'), 'Thunderstorm': ('⚡', '#fba922'), 'Sunny': ('☀', '#fba922'), 'default': ('', None), 'Cloudy': ('☁', '#969896'), 'Fog': ('', '#969896') }, ) # status.register(
'Partly Cloudy': ('<span font="Weather Icons 10">\uf002</span>', '#f8f8ff'), 'Snow': ('<span font="Weather Icons 10">\uf01b</span>', '#ffffff'), 'default': ('', None), 'Sunny': ('<span font="Weather Icons 10">\uf00d</span>', '#ffff00') } status.register( "weather", #location_code="FRXX5264", interval=900, colorize=True, color_icons=color_icon_values, #format="{current_temp} {current_wind} {humidity}%", format= '{current_temp}{temp_unit}[ {icon}][ Max: {high_temp}{temp_unit}][ Min: {low_temp}{temp_unit}][ {wind_speed}{wind_unit} {wind_direction}][{pressure_trend}]', hints={'markup': 'pango'}, backend=weathercom.Weathercom( location_code='FRXX0007:1:FR', units='metric', ), ) status.register("bitcoin", currency="EUR", colorize=True, symbol="\uF15A") #status.register("pomodoro", # sound="~/share/sounds/196106__aiwha__ding.wav", # format="\uE001 {current_pomodoro}/{total_pomodoro} {time}") status.run()