def clock_example(): from i3pystatus.clock import Clock status = Status() status.register(Clock()) status.run()
def main(): from i3pystatus.clock import Clock status = Status(standalone=True) status.register(Clock()) status.run()
def main(): status = Status() status.register(Clock, format="%b/%d/%Y %H:%M:%S") #status.register(Load) status.register( BatteryChecker, format= "{status}{consumption:.2f}W {percentage:.0f}% {remaining:%E%hh:%Mm}", alert=True, alert_percentage=10, status={ "DIS": "↓", "CHR": "↑", "FULL": "=", }, ) status.register(Network, interface="eth0", format_up="{interface}[{v4cidr}] {network_graph}{kbs}KB/s", format_down="", dynamic_color=True, upper_limit=800.0) status.register(Network, interface="wlan0", format_up="{essid}[{v4cidr}] {network_graph}{kbs}KB/s", format_down="", dynamic_color=True, upper_limit=800.0) #status.register(ExtIp) status.register(OpenVPN, vpn_name="0xdeffbeef") status.register(CpuUsage, format="CPU: {usage}%") status.register(Mem, format="Mem: {percent_used_mem}%") #status.register(Disk, path="/home/", format="{avail}/{total}GiB") status.register(PulseAudio) status.register(Backlight, backlight="intel_backlight", format=u"\u263c {percentage}%") status.register("spotify") status.run()
#! /bin/python3 # -*- coding: utf-8 -*- from i3pystatus.core import Status status = Status(standalone=True, reversed_register=False) # i3 focus status.register('i3focus') # i3 shift status.register('i3shift') # Ping status.register('ping') # CPU use status.register("cpu_usage") # Shows your CPU temperature, if you have a Intel CPU status.register("temp", format="{temp:.0f}°C",) # Mem use status.register("mem", format='{used_mem:4.0f}Mo{percent_used_mem:3.0f}%', color="#ffffff") # Ethernet
def main(): from i3pystatus.clock import Clock status = Status() status.register(Clock()) status.run()