Ejemplo n.º 1
0
def bottom_bar():
    return bar.Bar([
        widget.HDDBusyGraph(device='nvme0n1p1'),
        widget.CPU(format='CPU {load_percent}%'),
        # memory_widget.Memory(),
        widget.Net(format='{down} ↓↑ {up}'),
        # widget.CheckUpdates(custom_command="checkupdates"),
        widget.KeyboardLayout(configured_keyboards=['us','hu']),
        widget.Spacer(),
        widget.GroupBox(inactive=colors['very-soft-red']),
        widget.Prompt(),
    ],
                   size=BAR_HEIGHT,
                    background=colors['deep-blue'],
                   )
Ejemplo n.º 2
0
     '🔆',
     font='JoyPixels',
     foreground='#C795AE',
 ),
 widget.Backlight(backlight_name='intel_backlight', ),
 widget.Spacer(width=bar.STRETCH),
 widget.Net(
     interface='wlp4s0',
     foreground='#95AEC7',
 ),
 widget.TextBox(
     'Harddisk:',
     foreground='#C7AE95',
 ),
 widget.HDDBusyGraph(
     graph_color='#AEC795',
     border_color='#F3F4F5',
 ),
 widget.TextBox(
     'Net traffic:',
     foreground='#95C7AE',
 ),
 widget.NetGraph(
     graph_color='#AEC795',
     border_color='#F3F4F5',
 ),
 widget.TextBox(
     'Swap:',
     foreground='#AE95C7',
 ),
 widget.SwapGraph(
     graph_color='#AEC795',
Ejemplo n.º 3
0
         widget.Net(
             background=color['transparent'],
             interface='enp27s0',
         ),
         # widget.NetGraph(background=color['transparent'], interface='enp27s0',),
         # widget.TextBox(
         #     # "",
         #     "",
         #     # "",
         #     fontsize=22,
         #     name="edge",
         #     padding=0,
         #     foreground=color['edge'][0],
         #     background=color['edge'][1],
         #     ),
         widget.HDDBusyGraph(background=color['transparent'], ),
     ],
     text_closed=' ',
     text_open=' ',
     fontsize='26',
     background=color['transparent'],
     foreground=color['click'],
 ),
 widget.CheckUpdates(
     display_format=' :{updates} ',
     background=color['transparent'],
 ),
 widget.Cmus(background=color['transparent'], ),
 widget.Volume(fmt=':{} ',
               background=color['transparent'],
               foreground=color['scroll']),
Ejemplo n.º 4
0
                     distro='Arch',
                     execute=lazy.spawn("tkpacman"),
                     foreground=fg_color),
 widget.Sep(),
 widget.ThermalSensor(tag_sensor="Core 0", foreground=fg_color),
 widget.Sep(),
 widget.GenPollUrl(url="http://ip-api.com/json/",
                   parse=get_ip_location,
                   foreground=fg_color),
 # widget.KeyboardKbdd(configured_keyboards=['us', 'ir']),
 widget.Sep(),
 # widget.Wlan(interface="wlp3s0", format="{essid} {percent:2.0%}", foreground=fg_color),
 # widget.NetGraph(interface="wlp3s0", foreground=fg_color),
 widget.TextBox(text="/dev/sda:", foreground=fg_color),
 widget.HDDBusyGraph(fill_color=cursor_color,
                     graph_color=bold_color,
                     border_color=bg_color,
                     foreground=fg_color),
 widget.Sep(),
 widget.KeyboardLayout(configured_keyboards=['us', 'ir'],
                       foreground=fg_color),
 widget.Sep(),
 widget.Backlight(backlight_name="intel_backlight",
                  format="☼ {percent: 2.0%}",
                  foreground=fg_color),
 widget.Volume(emoji=True, foreground=fg_color),
 # widget.Battery(foreground=fg_color, charge_char=u'▲', discharge_char=u'▼', low_foreground=bold_color),
 # widget.BatteryIcon(),
 widget.Sep(),
 widget.Systray(icon_size=22, padding=7, foreground=fg_color),
 widget.Sep(),
 widget.Clock(format='%Y-%m-%d %a %I:%M %p',
Ejemplo n.º 5
0
                text=(""),
                fontsize=FONT_SIZE,
                padding=0),
 widget.CPUGraph(type="linefill", line_width=1),
 widget.Spacer(length=10),
 widget.TextBox(font="font-awesome",
                text=(""),
                fontsize=FONT_SIZE,
                padding=0),
 widget.MemoryGraph(type="linefill", line_width=1),
 widget.Spacer(length=10),
 widget.TextBox(font="font-awesome",
                text=(""),
                fontsize=FONT_SIZE,
                padding=0),
 widget.HDDBusyGraph(
     device="nvme0n1", type="linefill", line_width=1),
 widget.Spacer(length=100),
 widget.CheckUpdates(
     fontsize=FONT_SIZE,
     display_format=" {updates}",
     font="font-logos",
     colour_have_updates=ALERT_COLOR,
     #padding=15
 ),
 widget.Spacer(length=10),
 widget.Sep(),
 widget.Spacer(length=10),
 widget.TextBox(font="font-awesome",
                text=(""),
                fontsize=FONT_SIZE,
                padding=0),
Ejemplo n.º 6
0
    def init_screens(self):
        """"""
        screens = [

            Screen(

                # left=bar.Bar(

                # widgets=[
                # widget.TextBox(text="WTF", background=self.theme["panel-2nd"]),
                # ],

                # size=self.theme["top-height"],
                # background=self.theme["panel-top"],

                # ),


                top=bar.Bar(
                    widgets=[

                        # Logo
                        widget.TextBox(text=" ", background=self.theme["panel-2nd"]),
                        widget.Image(filename=ARCHLOGO, scale=True),

                        # Commands
                        widget.Prompt(fontsize=self.theme["size-md"], cursor_color=self.theme["panel-top"], foreground=self.theme["panel-top"], prompt="$ ", background=self.theme["active"]),
                        #widget.TextBox(text=" ", background=self.theme["active"]),
                        # widget.Sep(foreground=self.theme["separator"]),
                        widget.TextBox(text=" ", background=self.theme["panel-2nd"]),

                        widget.Sep(foreground=self.theme["panel-bottom"], padding=self.theme["separator-padding"] // 2),

                        # widget.AGroupBox(),
                        # widget.Backlight(),

                        # Groups
                        widget.GroupBox(fontsize=self.theme["size-md"], padding=5, borderwidth=self.theme['border-width-active'],
                                        rounded=self.theme["rounded"], this_current_screen_border=self.theme["primary"],
                                        highlight_method=self.theme["group-highlight"], active=self.theme["active"],
                                        inactive=self.theme["inactive"],
                                        highlight_color=self.theme['primary-2nd'],
                                        urgent_text=self.theme['alert'],
                                        urgent_border=self.theme['alert'],
                                        urgent_alert_method=self.theme['group-highlight'],

                                        ),

                        # Spacer
                        widget.Spacer(bar.STRETCH),


                        # Mpris2
                        widget.Mpris2(display_metadata=['xesam:title', 'xesam:album', 'xesam:artist'], fontsize=self.theme["size-md"] * 0.8, objname='org.mpris.MediaPlayer2.spotify', name='Spotify', scroll_chars=128, scroll_interv=0.5, scroll_wait_intervals=8, foreground=self.theme["foreground"]),
                        widget.TextBox(text="   "),


                        # Current Layout
                        # widget.TextBox(text=" ", background=self.theme["panel-2nd"]),
                        # widget.CurrentLayout(background=self.theme["panel-2nd"], foreground=self.theme["foreground-2nd"], fontsize=self.theme["size-md"]*0.8),
                        widget.CurrentLayoutIcon(scale=0.7, background=self.theme["panel-2nd"], foreground=self.theme["foreground-2nd"]),

                    ],

                    size=self.theme["top-height"],
                    background=self.theme["panel-top"],

                ),


                bottom=bar.Bar(
                    widgets=[

                        # Tasklist
                        #widget.TaskList(highlight_method="block", border=self.theme["primary"], fontsize=self.theme["size-lg"], foreground=self.theme["active"], rounded=self.theme["rounded"]),

                        # Window name
                        # widget.WindowName(foreground=self.theme["foreground"]),
                        # widget.CurrentScreen(),


                        # Cmus
                        # widget.Cmus(),

                        # Graphs
                        widget.TextBox(text="net:", fontsize=self.theme["size-xsm"], padding=0, foreground=self.theme["foreground"]),
                        widget.NetGraph(width=40, border_color=self.theme["border-graph"], graph_color=self.theme["graph-color"], fill_color=self.theme["graph-color"], border_width=1, line_width=1, margin_x=0, margin_y=0, samples=50, frequency=1, type="linefill"),

                        widget.TextBox(text=" mem:", fontsize=self.theme["size-xsm"], padding=0, foreground=self.theme["foreground"]),
                        widget.MemoryGraph(width=40, border_color=self.theme["border-graph"], graph_color=self.theme["graph-color"], fill_color=self.theme["graph-color"], border_width=1, line_width=1, margin_x=0, margin_y=0, samples=50, frequency=5, type="linefill"),

                        widget.TextBox(text=" hdd:", fontsize=self.theme["size-xsm"], padding=0, foreground=self.theme["foreground"]),
                        widget.HDDBusyGraph(width=40, border_color=self.theme["border-graph"], graph_color=self.theme["graph-color"], fill_color=self.theme["graph-color"], border_width=1, line_width=1, margin_x=0, margin_y=0, samples=50, frequency=1, type="linefill"),

                        # widget.TextBox(text=" sdd:", fontsize=self.theme["size-xsm"], padding=0, foreground=self.theme["foreground"]),
                        # widget.HDDGraph(border_color=self.theme["border-graph"], graph_color=self.theme["graph-color"], fill_color=self.theme["graph-color"], border_width=1, line_width=1, margin_x=0, margin_y=0, samples=50, frequency=1, type="linefill", space_type='free'),

                        widget.TextBox(text=" cpu:", fontsize=self.theme["size-xsm"], padding=0, foreground=self.theme["foreground"]),
                        widget.CPUGraph(width=40, border_color=self.theme["border-graph"], graph_color=self.theme["graph-color"], fill_color=self.theme["graph-color"], border_width=1, line_width=1, margin_x=0, margin_y=0, samples=50, frequency=1, type="linefill"),

                        # widget.TextBox(text=" swap:", fontsize=self.theme["size-xsm"], padding=0, foreground=self.theme["foreground"]),
                        # widget.SwapGraph(border_color=self.theme["border-graph"], graph_color=self.theme["graph-color"], fill_color=self.theme["graph-color"], border_width=1, line_width=1, margin_x=0, margin_y=0, samples=50, frequency=1, type="linefill"),

                        # #widget.Sep(foreground=self.theme["separator"], border_width=1),


                        # Mem
                        widget.Sep(foreground=self.theme["separator"]),
                        #widget.Sep(foreground=self.theme["panel-bottom"], padding=self.theme["separator-padding"]//2),
                        widget.Memory(foreground=self.theme["foreground"], update_interval=10),

                        # Wifi status
                        # widget.Wlan(interface="wlp2s0"),
                        #widget.Net(interface="wlp2s0", update_interval=10),
                        # widget.Sep(foreground=self.theme["separator"]),

                        # # Thermal
                        # widget.TextBox(text=" ", foreground=self.theme["foreground"]),
                        # #widget.Sep(foreground=self.theme["separator"], padding=self.theme["separator-padding"]),
                        # widget.ThermalSensor(fontsize=self.theme["size-sm"], foreground=self.theme["foreground"], update_interval=1, fmt='{MemUsed}M/{MemTotal}M'),

                        # Debug window
                        # widget.Moc(),
                        # widget.DF(partition='/home'),
                        # widget.DebugInfo(),
                        # widget.Notify(),
                        # widget.Systray(),
                        widget.Sep(foreground=self.theme["separator"], padding=self.theme["separator-padding"]),

                        # # Battery
                        # # widget.BatteryIcon(),
                        # widget.Battery(energy_now_file='charge_now', foreground=self.theme["foreground"]),
                        # widget.Sep(foreground=self.theme["separator"], padding=self.theme["separator-padding"]),

                        # # Volume
                        # widget.TextBox(text="volume:", foreground=self.theme["foreground"]),
                        # widget.Volume(foreground=self.theme["foreground"]),
                        # widget.Sep(foreground=self.theme["separator"], padding=self.theme["separator-padding"]),

                        # Bitcoin
                        #widget.BitcoinTicker(format="BTC: {sell}"),
                        # widget.Sep(foreground=self.theme["separator"]),

                        # # Pacman updates
                        # widget.TextBox(text="pacman:", foreground=self.theme["foreground"]),
                        # widget.Pacman(foreground=self.theme["alert"], unavailable=self.theme["foreground"]),
                        # widget.Sep(foreground=self.theme["panel-bottom"], padding=self.theme["separator-padding"]//2),

                        widget.Spacer(bar.STRETCH),

                        # Clock
                        widget.TextBox(text=" ", background=self.theme["panel-2nd"]),
                        widget.Clock(format="%I:%M:%S %p", foreground=self.theme["foreground-2nd"], background=self.theme["panel-2nd"]),
                        widget.TextBox(text=" ", background=self.theme["panel-2nd"]),

                    ],

                    size=self.theme["bottom-height"],
                    background=self.theme["panel-bottom"],

                ),
            ),
        ]
        return screens
Ejemplo n.º 7
0
             widget.Sep(),
             widget.DF(partition='/', measure='M'),
             widget.DF(partition='/usr'),
             widget.DF(partition='/var'),
             widget.DF(partition='/opt'),
             widget.DF(partition='/home', visible_on_warn=False),
             widget.DF(partition='/home/shared'),
             widget.Sep(),
             widget.TextBox('eth0:'),
             widget.Net(interface='eth0'),
             widget.Sep(),
             widget.TextBox('wlan0:'),
             widget.Net(interface='wlan0'),
             widget.Sep(),
             widget.TextBox('sda:'),
             widget.HDDBusyGraph(device='sda'),
             widget.TextBox('sdb:'),
             widget.HDDBusyGraph(device='sdb'),
             widget.Sep(),
             widget.MemoryGraph(graph_color='FF0101'),
             widget.Sep(),
             widget.ThermalSensor(),
             widget.CPUGraph(),
         ],
         25,
     ),
 ),
 Screen(
     top=bar.Bar(
         [
             widget.GroupBox(),
Ejemplo n.º 8
0
            energy_full_file='charge_full',
            power_now_file='current_now',
            **widget_defaults,
        ),
    ],
}.get(hostname, [])

# To save time and machine resources instanciate widgets only one time to share
# values across multiple Bar instances
resources_widgets = [
    # Disk IO Usage
    widget.TextBox('\U0001F5B4'),
    widget.HDDBusyGraph(
        width=30,
        border_width=1,
        border_color="#000000",
        line_width=1,
        frequency=5,
        samples=50,
    ),
    # Network Usage
    widget.TextBox('\U0001F310'),
    widget.NetGraph(
        width=30,
        border_width=1,
        border_color="#000000",
        line_width=1,
        frequency=5,
        samples=50,
        fill_color="EEE8AA",
    ),
Ejemplo n.º 9
0
 ),
 mid_sep,
 # widget.ThermalSensor(
 # font='SpaceMono Nerd Font',
 # background=widget_background,
 # foreground=widget_foreground,
 # foreground_alert=COLORS.URGENT,
 # threshold=59
 # ),
 mid_sep,
 widget.HDDBusyGraph(
     background=widget_background,
     foreground=widget_foreground,
     font='SpaceMono Nerd Font',
     border_color=COLORS.DARK_PRIMARY,
     fill_color=COLORS.DARK_PRIMARY,
     graph_color=COLORS.LIGHT_PRIMARY,
     border_width=1,
     linewidth=0,
     margin_y=1,
 ),
 mid_sep,
 clock,
 mid_sep,
 widget.TextBox('',
                background=widget_background,
                foreground=widget_foreground,
                font='SpaceMono Nerd Font',
                mouse_callbacks={
                    'Button1':
                    lambda: qtile.cmd_spawn("sh -c 'wlogout'")
Ejemplo n.º 10
0
        website_html = website.read()
        matches = re.findall('<a .*?>(.*?)</a>', website_html)
        return u"[%s]" % matches[0]
    except Exception, e:
        return str(e)


bottomBar = bar.Bar(
    [
        widget.GroupBox(borderwidth=2),
        widget.Prompt(),
        widget.WindowName(),
        # widget.GenPollText(update_interval=500, func=qotd),
        widget.CPUGraph(width=30, graph_color='18EBBA', border_width=0),
        widget.MemoryGraph(width=30, graph_color='FAFA9B', border_width=0),
        widget.HDDBusyGraph(width=30, graph_color='EB187A', border_width=0),
        widget.Battery(padding=3, foreground='BABABA'),
        widget.GenPollText(
            update_interval=5, func=temp, padding=3, foreground='EB187A'),
        widget.Volume(padding=3, foreground='FAFA9B'),
        widget.Wlan(
            interface='wlp3s0', padding=3, interval=5, foreground='18BAEB'),
        widget.NetGraph(width=30, border_width=0),
        widget.Clock(format='%d.%m.%Y %a %H:%M', padding=3),
        widget.Systray(),
    ],
    22,
)

screens = [Screen(bottom=bottomBar)]
Ejemplo n.º 11
0
                fontsize=18,
                foreground=colors['highlight'],
                mouse_callbacks={
                    'Button1': lambda qtile: qtile.cmd_spawn(commands.rofi)
                }),
 widget.Sep(**separator_options),
 widget.CurrentLayout(foreground=colors['highlight'], ),
 widget.GroupBox(**groupbox_options),
 widget.Sep(**separator_options),
 widget.Prompt(prompt='☉ ', ),
 widget.Sep(**separator_options),
 widget.WindowName(foreground=colors['highlight']),
 widget.CPUGraph(**graph_monitor_options),
 widget.MemoryGraph(**graph_monitor_options),
 widget.NetGraph(**graph_monitor_options),
 widget.HDDBusyGraph(device='sdb', **graph_monitor_options),
 widget.HDDBusyGraph(device='sda', **graph_monitor_options),
 widget.Spacer(bar.STRETCH),
 widget.Cmus(
     foreground=colors['text_normal'],
     play_color=colors['highlight'],
 ),
 widget.Sep(**separator_options),
 widget.Systray(icon_size=14),
 widget.Sep(**separator_options),
 widget.TextBox('', fontsize=18),
 widget.Volume(),
 widget.Sep(**separator_options),
 widget.Clock(**clock_options),
 widget.Sep(**separator_options),
 #widget.BatteryIcon(),
Ejemplo n.º 12
0
    padding=3,
)

screens = [
    Screen(top=bar.Bar([
        widget.GroupBox(),
        widget.Prompt(),
        widget.WindowName(),
        CPU(),
        widget.CPUGraph(
            graph_color='FF3300', fill_color='#FF5500.3', line_width=1),
        Memory(),
        widget.MemoryGraph(line_width=1),
        widget.NetGraph(
            graph_color='8CFF8C', fill_color='#8CFFC6.3', line_width=1),
        widget.HDDBusyGraph(
            graph_color='FF00FF', fill_color='#FF00FF.3', line_width=1),
        widget.BatteryIcon(),
        widget.Battery(format='{percent:2.0%}'),
        LockHint(),
        widget.Systray(),
        widget.Clock(format='%b %d %a %I:%M:%S %p')
    ],
                       30,
                       background=['#333333', '#000000']),
           bottom=bar.Bar([
               widget.WindowTabs(),
               widget.Notify(default_timeout=10, background="#8B0000"),
               widget.CurrentLayout()
           ],
                          30,
                          background=['#000000', '#333333'])),
Ejemplo n.º 13
0
                     inactive=colors['08'],
                     this_current_screen_border=colors['02'],
                     this_screen_border=colors['02'],
                     urgent_border=colors['01']),
     widget.Prompt(foreground=colors['07']),
     widget.Spacer(),
     widget.TextBox('', foreground=colors['07'], fontsize=18),
     widget.CPUGraph(border_color=colors['07'],
                     border_width=1,
                     graph_color=colors['02'],
                     line_width=1,
                     type='line'),
     widget.TextBox('', foreground=colors['07'], fontsize=18),
     widget.HDDBusyGraph(border_color=colors['07'],
                         border_width=1,
                         device='sda',
                         graph_color=colors['03'],
                         line_width=1,
                         type='line'),
     widget.TextBox('', foreground=colors['07'], fontsize=18),
     widget.NetGraph(border_color=colors['07'],
                     border_width=1,
                     graph_color=colors['01'],
                     line_width=1,
                     type='line'),
     widget.TextBox('﬘', foreground=colors['07'], fontsize=18),
     widget.Memory(foreground=colors['07']),
     widget.Battery(charge_char='',
                    discharge_char='',
                    foreground=colors['07'],
                    low_foreground=colors['01']),
 ],
Ejemplo n.º 14
0
                fontsize=18),
 widget.CPUGraph(border_color=colors['purple_dark'],
                 fill_color='f50042.3',
                 graph_color=colors['red'],
                 line_width=1,
                 samples=40,
                 frequency=0.1,
                 border_width=1),
 widget.TextBox(text='',
                width=bar.CALCULATED,
                foreground=colors['red'],
                fontsize=18),
 widget.HDDBusyGraph(border_color=colors['purple_dark'],
                     fill_color='f50042.3',
                     graph_color=colors['red'],
                     line_width=1,
                     samples=40,
                     frequency=0.1,
                     border_width=1),
 widget.Image(filename='~/.config/qtile/icons/red_headphones.png'),
 widget.Volume(foreground=colors['red']),
 widget.Sep(height_percent=None,
            foreground=colors['purple_light'],
            size_percent=60),
 widget.Sep(height_percent=None,
            foreground=colors['purple_light'],
            size_percent=80),
 widget.Image(filename='~/.config/qtile/icons/red_pacman.png'),
 widget.CheckUpdates(display_format='{updates}',
                     colour_have_updates=colors['red_light'],
                     colour_no_updates=colors['red']),
Ejemplo n.º 15
0
             widget.GroupBox(**Widget.groupbox),
             widget.WindowName(),
             widget.CPUGraph(graph_color='#18BAEB',
                             fill_color='#1667EB.3',
                             **Widget.graph),
             widget.MemoryGraph(graph_color='#00FE81',
                                fill_color='#00B25B.3',
                                **Widget.graph),
             widget.SwapGraph(graph_color='#5E0101',
                              fill_color='#FF5656',
                              **Widget.graph),
             widget.NetGraph(graph_color='#ffff00',
                             fill_color='#4d4d00',
                             interface='wlan0',
                             **Widget.graph),
             widget.HDDBusyGraph(device='sda', **Widget.graph),
             widget.HDDBusyGraph(device='sdb', **Widget.graph),
             widget.ThermalSensor(metric=False, threshold=158),
             widget.Sep(**Widget.sep),
             widget.CurrentLayout(),
             widget.Systray(**Widget.systray),
             widget.BatteryIcon(**Widget.battery),
             # widget.Battery(**Widget.battery_text),
             widget.Volume(
                 theme_path='/usr/share/icons/Humanity/status/22/',
                 cardid=1),
             widget.YahooWeather(location='Fresno, CA', **Widget.weather),
             widget.Clock(fmt='%a %d %b %I:%M %p'),
         ],
         **bar_defaults), ),
 Screen(top=bar.Bar(widgets=[
Ejemplo n.º 16
0
                                       foreground='#ffffff'),
                widget.TextBox("HD1:", foreground='#ffffff'),
                widget.HDThermalSensor(drive_name='/dev/sdc',
                                       background='#470000',
                                       foreground='#ffffff'),

                widget.TextBox("CPU USAGE:", foreground='#ffffff'),
                widget.CPUGraph(background='#000000', foreground='#000000',
                                core='all', border_color="#470000",
                                fill_color="#470000"),
                widget.TextBox("MEM USAGE:", foreground='#ffffff'),
                widget.MemoryGraph(background='#000000', foreground='#000000',
                                   type='box', border_color="#470000",
                                   fill_color="#470000"),
                widget.TextBox("HD IO:", foreground='#ffffff'),
                widget.HDDBusyGraph(background='#000000', foreground='#000000',
                                    fill_color="#470000"),
                widget.TextBox("NET USAGE:", foreground='#ffffff'),
                widget.NetGraph(background='#000000', foreground='#000000',
                                fill_color="#470000"),
            ],
            24,
        ),
    ),
]

######################################################
#
#            MOUSE DRAG DEFINITIONS
#
######################################################
# Drag floating layouts.
Ejemplo n.º 17
0
 ),
 Screen(bottom=bar.Bar(widgets=[
         widget.GroupBox(urgent_alert_method='text', **widget_groupbox_defaults),
         widget.Spacer(width=10),
         widget.DF(measure='G', update_interval=300, warn_space=25),
         widget.Spacer(width=bar.STRETCH),
         widget.Systray(icon_size=14),
         widget.Spacer(width=10),
         widget.Clock(format='%Y-%m-%d %a %I:%M %p', timezone='UTC', **widget_defaults),
         widget.TextBox('  /\  '),
         widget.Clock(format='%Y-%m-%d %a %I:%M:%S %p', **widget_defaults),
         widget.Spacer(width=5),
     ], size=17, **bar_defaults),
     top=bar.Bar(widgets=[
         widget.WindowName(**widget_defaults),
         widget.HDDBusyGraph(device='sda', **widget_graph_defaults),
         widget.Spacer(width=10),
         widget.YahooWeather(location='95112', metric=False),
         widget.Spacer(width=10),
         widget.YahooWeather(location='94107', metric=False),
         widget.Spacer(width=10),
         widget.YahooWeather(location='Montreal, QC, Canada', metric=False),
         widget.Spacer(width=10),
         widget.BitcoinTicker(currency='USD', format='BTC: {last}')
     ], size=17, **bar_defaults)
 ),
 Screen(bottom=bar.Bar(widgets=[
         widget.GroupBox(urgent_alert_method='text', **widget_groupbox_defaults),
         widget.Spacer(width=bar.STRETCH),
         widget.Clock(format='%Y-%m-%d %a %I:%M %p', timezone='UTC', **widget_defaults),
         widget.TextBox('  /\  '),
Ejemplo n.º 18
0
screens = [
    Screen(top=bar.Bar(
        [
            widget.CurrentLayout(),
            widget.GroupBox(),
            widget.Prompt(),
            widget.WindowName(),
            widget.Chord(
                chords_colors={
                    'launch': ("#ff0000", "#ffffff"),
                },
                name_transform=lambda name: name.upper(),
            ),
            widget.Mpris2(),
            widget.HDDBusyGraph(),
            widget.MemoryGraph(),
            widget.CPUGraph(),
            widget.KeyboardKbdd(configured_keyboards=['us', 'ru', 'he']),
            widget.CheckUpdates(),
            widget.Systray(),
            widget.BatteryIcon(),
            widget.Clock(format='%Y-%m-%d %a %I:%M %p'),
            widget.QuickExit(),
        ],
        24,
    ), ),
]

# Drag floating layouts.
mouse = [