Example #1
0
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()
Example #2
0
def main():
    from i3pystatus.clock import Clock

    status = Status(standalone=True)
    status.register(Clock())
    status.run()
Example #3
0
def clock_example():
    from i3pystatus.clock import Clock

    status = Status()
    status.register(Clock())
    status.run()
Example #4
0
def main():
    from i3pystatus.clock import Clock

    status = Status(standalone=True)
    status.register(Clock())
    status.run()
Example #5
0
# Mem use
status.register("mem",
        format='{used_mem:4.0f}Mo{percent_used_mem:3.0f}%',
        color="#ffffff")


# Ethernet
status.register("network",
    interface="enp3s0",
    format_up="{v4cidr}",
    color_up="#ffffff")

# Wifi
status.register("wireless",
    interface="wlp2s0",
    format_up="{essid} {quality:3.0f}% [{v4}]",
    color_up="#ffffff")

# Root disk usage
status.register("disk",
    path="/",
    format="{used}/{total}Go",)


# Date and time 
status.register("clock",
    format="%a %-d %b %X Week%V",)

status.run()
Example #6
0
def clock_example():
    from i3pystatus.clock import Clock

    status = Status()
    status.register(Clock())
    status.run()
Example #7
0
def main():
    from i3pystatus.clock import Clock

    status = Status()
    status.register(Clock())
    status.run()