Exemplo n.º 1
0
def clock_example():
    from i3pystatus.clock import Clock

    status = Status()
    status.register(Clock())
    status.run()
Exemplo n.º 2
0
def main():
    from i3pystatus.clock import Clock

    status = Status(standalone=True)
    status.register(Clock())
    status.run()
Exemplo n.º 3
0
def main():
    from i3pystatus.clock import Clock

    status = Status(standalone=True)
    status.register(Clock())
    status.run()
Exemplo n.º 4
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()
Exemplo n.º 5
0
#! /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
Exemplo n.º 6
0
def clock_example():
    from i3pystatus.clock import Clock

    status = Status()
    status.register(Clock())
    status.run()
Exemplo n.º 7
0
def main():
    from i3pystatus.clock import Clock

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