示例#1
0
def setup_screens(qtile):
    global screens
    if len(qtile.conn.pseudoscreens) > 1:
        screens.append(
            Screen(bottom=bar.Bar(
                [
                    widget.GroupBox(),
                    widget.WindowName(),
                    widget.Clock(format='%H:%M'),
                ],
                30,
            ), ), )

    screens.append(
        Screen(bottom=bar.Bar(
            [
                widget.GroupBox(),
                widget.Prompt(),
                widget.WindowName(),
                widget.Clipboard(),
                widget.Battery(hide_threshold=99),
                widget.CPUGraph(graph_color='F8FF33', fill_color='FCFFAD.3'),
                widget.MemoryGraph(graph_color='31F500',
                                   fill_color='9DFF85.3'),
                widget.NetGraph(),
                widget.Volume(),
                widget.Systray(),
                widget.Notify(),
                widget.Clock(format='%Y-%m-%d %a %H:%M'),
            ],
            30,
        ), ), )
示例#2
0
文件: config.py 项目: zgagnon/config
def bottombar():
    return bar.Bar([
        widget.CPU(),
        widget.CPUGraph(),
    ],
                   24,
                   opacity=0.4,
                   margin=[10, 0, 0, 0])
示例#3
0
def get_widgets():
    return [
        widget.CurrentLayoutIcon(
            custom_icon_paths=[os.path.expanduser("~/.config/qtile/icons")],
            scale=0.8,
        ),
        widget.GroupBox(),
        widget.WindowName(),
        widget.TextBox(" | ", name="separator"),
        widget.Clipboard(max_width=50, timeout=None),
        widget.TextBox(" | ", name="separator"),
        widget.TextBox("CPU", name="cpu_label"),
        widget.CPUGraph(**graph_args),
        widget.TextBox("Mem", name="memory_label"),
        ColoredMemoryGraph(**graph_args),
        widget.TextBox("Net", name="net_label"),
        widget.NetGraph(**graph_args),
        widget.TextBox(" | ", name="separator"),
        widget.DF(
            mouse_callbacks={'Button1': lambda: qtile.cmd_spawn('qdirstat')},
            format='{uf}/{s}{m} free on {p}',
            visible_on_warn=False),
        # TODO figure out why this doesn't work
        # widget.HDDBusyGraph(**graph_args),
        widget.TextBox(" | ", name="separator"),
        widget.Image(filename='~/.config/qtile/icons/volume-icon.png',
                     margin_y=4),
        widget.Volume(fmt='{}'),
        widget.TextBox(" | ", name="separator"),
        widget.Image(filename='~/.config/qtile/icons/battery-icon.png'),
        widget.Battery(
            format='{percent:2.0%} {char}{watt:.1f}W',
            charge_char='+',
            discharge_char='-',
            update_interval=15,  # seconds
        ),
        widget.TextBox(" | ", name="separator"),
        widget.Image(filename='~/.config/qtile/icons/brightness-icon.png',
                     margin_x=1,
                     margin_y=4.5),
        widget.Backlight(format='{percent: 2.0%}',
                         backlight_name='intel_backlight'),
        widget.TextBox(" | ", name="separator"),
        # Requires
        # sudo apt install libiw-dev
        # pip install iwlib
        widget.Wlan(interface='wlp2s0',
                    format=' {essid} {quality}%',
                    mouse_callbacks={
                        'Button1':
                        lambda: qtile.cmd_spawn('cinnamon-settings network')
                    }),
        widget.TextBox(" | ", name="separator"),
        widget.Systray(),
        widget.Clock(format='%Y-%m-%d %a %I:%M %p'),
    ]
示例#4
0
def create_bar(main=False):
    widgets = [
        w.CurrentLayoutIcon(scale=0.8, foreground=colors["foreground"]),
        w.GroupBox(
            active=colors["foreground"],
            inactive=colors["color8"],
            other_current_screen_border=colors["color8"],
            other_screen_border=colors["color8"],
            this_current_screen_border=colors["color4"],
            this_screen_border=colors["color12"],
            urgent_border=colors["color1"],
            urgent_text=colors["color1"],
            disable_drag=True,
        ),
        w.TextBox("", fontsize=22),
        w.Spacer(),
        w.TextBox("", fontsize=22),
        *[
            w.DF(
                foreground=colors["color1"],
                format=" <span weight='bold'>{p} ({uf}{m}|{r:.0f}%)</span>",
                partition=path,
                warn_space=5,
            )
            for path in ["/", "/home/"]
        ],
        w.PulseVolume(emoji=False, fmt="墳 <span weight='bold'>{}</span>"),
        w.Battery(
            battery="BAT0",
            unknown_char="",
            charge_char="",
            discharge_char="",
            empty_char="",
            format="{char} <span weight='bold'>{percent:2.0%}</span>",
        ),
        w.Clock(fmt=" <span weight='bold'>{}</span>"),
    ]
    if main:
        widgets.append(w.Systray())
    else:
        widgets.append(
            w.CPUGraph(
                border_width=2,
                border_color=colors["color7"],
                graph_color=colors["color7"],
                fill_color=colors["color7"],
            )
        )
    return Bar(
        widgets,
        bar_height,
        background=colors["background"],
        opacity=0.8,
    )
示例#5
0
class Bars(object):
    def __groupbox():
        """GroupBox widget to be used on all bars."""
        return widget.GroupBox(highlight_method="block",
                               this_current_screen_border=theme.colors["blue"],
                               this_screen_border=theme.colors["base6"],
                               inactive=theme.colors["base6"],
                               active=theme.colors["fg"])

    left = bar.Bar(
        widgets=[
            __groupbox(),
            widget.CurrentLayout(),
            widget.Prompt(),
            widget.WindowTabs(),
            widget.TextBox("cpu: ", name="cpu"),
            widget.CPUGraph(),
            widget.TextBox(" mem:", name="mem"),
            widget.Memory(),
            widget.Systray(),
            widget.Clock(format="%Y-%m-%d %a %I:%M %p"),
        ],
        size=24,
        background=[theme.colors["base0"]],
    )

    mid = bar.Bar(
        widgets=[
            __groupbox(),
            widget.Prompt(),
            widget.WindowTabs(),
            widget.CurrentLayout(),
            widget.Clock(format="%I:%M %p"),
        ],
        size=24,
        background=[theme.colors["base0"]],
    )

    right = bar.Bar(
        widgets=[
            __groupbox(),
            widget.Prompt(),
            widget.WindowTabs(),
            widget.CurrentLayout(),
            widget.Clock(format="%I:%M %p"),
        ],
        size=24,
        background=[theme.colors["base0"]],
    )
示例#6
0
def makebar():
    return bar.Bar(
        [
            widget.GroupBox(),
            widget.Prompt(),
            widget.TaskList(),
            widget.Systray(),
            widget.CPUGraph(),
            widget.BatteryIcon(
            ),  # theme_path="/usr/share/icons/ubuntu-mono-dark/status/24/"),
            #                widget.Volume(),
            widget.Clock(format='%Y-%m-%d %a %H:%M'),
        ],
        30,
    )
示例#7
0
def init_widgets():
    return [
        widget.GroupBox(
            font='Hack Bold',
            highlight_method='block',
            active=colors[2],
            inactive=colors[11],
            padding=0,
        ),
        widget.Prompt(),
        #widget.WindowName(),
        widget.Spacer(),
        widget.Systray(icon_size=20, padding=2),
        widget.Sep(),
        widget.CurrentScreen(),
        widget.Sep(),
        widget.Volume(foreground=colors[2]),
        widget.Sep(background=colors[0], padding=2),
        widget.CPUGraph(width=30,
                        border_width=1,
                        border_color="#000000",
                        frequency=5,
                        line_width=1,
                        samples=50),
        widget.MemoryGraph(
            width=30,
            border_width=1,
            border_color="#000000",
            frequency=5,
            line_width=1,
        ),
        widget.NetGraph(
            width=30,
            border_width=1,
            border_color="#000000",
            frequency=5,
            line_width=1,
        ),
        widget.Sep(background=colors[0], padding=2),
        widget.Memory(foreground=colors[2]),
        widget.Sep(background=colors[0], padding=2),
        widget.Clock(foreground=colors[2], format='%a %d %b %I:%M %p'),
        widget.CurrentLayoutIcon(foreground=colors[2]),
    ]
示例#8
0
def init_screens():
    widgetSets=[]
    screens=[]

    for i in range(0, numScreen ):
        widgetSets.append( [ 
                    widget.CurrentScreen(),
                    widget.GroupBox(highlight_method="block",urgent_alert_method='text'),
                    widget.CurrentLayout(),
                    widget.Notify(audiofile= "/usr/share/skype/sounds/ChatOutgoing.wav",
                                foreground_urgent="EE0000", 
                                foreground_low="dddddd",
                                default_timeout=60,
                                foreground="FF0000", 
                                fontsize=18, 
                                font="Ubuntu"),
                    widget.Clock(format='%Y-%m-%d %a %H:%M %p', foreground='00FF7F'),
                    widget.TextBox(text="Dim:"),
                    widget.Backlight(brightness_file='/sys/class/backlight/intel_backlight/brightness',  max_brightness_file='/sys/class/backlight/intel_backlight/max_brightness',  ),
                    widget.TextBox(text="Bat:"),
                    widget.Battery(),
                    widget.BatteryIcon(),
                    widget.TextBox(text="Vol:"),
                    widget.Volume(),
                    widget.TextBox(text="C"),
                    widget.CPUGraph(samples=100, width=200),
                    widget.TextBox(text="D"),
                    widget.NetGraph(samples=100, width=200, interface=network),
                    widget.TextBox(text="U"),
                    widget.NetGraph(samples=100, width=200, interface=network, bandwidth_type="up"),
                    widget.TextBox(text="M"),
                    widget.MemoryGraph(samples=100, width=200),
                ])

    # truncate the last widget, and add on the systray, if we 
    #widgetSets[ numScreen - 1 ] = widgetSets[ numScreen - 1 ][0:3]
    widgetSets[ numScreen - 1 ].insert( 0, widget.Systray() )

    for i in range(0, numScreen ):
        screens.append( Screen(top = bar.Bar( widgetSets[ i ] , 30)) )
    

    return(screens)
示例#9
0
文件: config.py 项目: cocuh/.dotfiles
def gen_bar():
    return bar.Bar(
        [
            widget.CPUGraph(),
            widget.NetGraph(),
            GroupBoxWidget(inactive='606060',
                           highlight_method='block',
                           other_screen_border='214458'),
            widget.Prompt(),
            widget.WindowName(),
            widget.CurrentLayout(),
            widget.Sep(padding=5, linewidth=0),
            widget.Systray(),
        ] + ([
            BatteryWidget(),
        ] if HOSTNAME == 'saya' else []) + [
            widget.Sep(padding=5, linewidth=0),
            widget.Clock(format='%Y-%m-%d %a %H:%M:%S'),
            #widget.DebugInfo(),
        ],
        BAR_HEIGHT,
    )
示例#10
0
class FakeScreenConfig:
    auto_fullscreen = True
    main = None
    groups = [
        libqtile.config.Group("a"),
        libqtile.config.Group("b"),
        libqtile.config.Group("c"),
        libqtile.config.Group("d")
    ]
    layouts = [
        layout.Max(),
        layout.RatioTile(),
        layout.Tile(),
    ]
    floating_layout = libqtile.layout.floating.Floating()
    keys = []
    mouse = []
    fake_screens = [Screen(
        bottom=bar.Bar(
            [
                widget.GroupBox(this_screen_border=CHAM3,
                                borderwidth=1,
                                fontsize=FONTSIZE,
                                padding=1, margin_x=1, margin_y=1),
                widget.AGroupBox(),
                widget.Prompt(),
                widget.Sep(),
                widget.WindowName(
                    fontsize=FONTSIZE, margin_x=6),
                widget.Sep(),
                widget.CPUGraph(**GRAPH_KW),
                widget.MemoryGraph(**GRAPH_KW),
                widget.SwapGraph(foreground='20C020', **GRAPH_KW),
                widget.Sep(),
                widget.Systray(),
                widget.Sep(),
                widget.Clock(format='%H:%M:%S %d.%m.%Y',
                             fontsize=FONTSIZE, padding=6),
            ],
                    24,
            background="#555555"
        ),
        x=0, y=0, width=600, height=480
    ),
    Screen(
        top=bar.Bar(
            [
                        widget.GroupBox(),
                widget.WindowName(),
                widget.Clock()
            ],
                    30,
        ),
        x=600, y=0, width=300, height=580
    ),
    Screen(
        top=bar.Bar(
            [
                        widget.GroupBox(),
                widget.WindowName(),
                widget.Clock()
            ],
                    30,
        ),
           x=0, y=480, width=500, height=400),
                    Screen(
                        bottom=bar.Bar(
                            [
                        widget.GroupBox(),
                                widget.WindowName(),
                                widget.Clock()
                            ],
                    30,
                        ),
           x=500, y=580, width=400, height=400),
    ]

    screens = fake_screens
示例#11
0
def init_widgets_list():
    prompt = "{0}@{1}: ".format(os.environ["USER"], socket.gethostname())
    widgets_list = [
        widget.TextBox(font="Arial",
                       foreground=colors[2],
                       text="◢",
                       fontsize=73,
                       padding=-7),
        widget.GroupBox(font="FontAwesome",
                        fontsize=16,
                        margin_y=-1,
                        margin_x=0,
                        padding_y=6,
                        padding_x=5,
                        borderwidth=0,
                        active=colors[7],
                        inactive=colors[1],
                        rounded=False,
                        highlight_method="text",
                        this_current_screen_border=colors[4],
                        foreground=colors[1],
                        background=colors[2]),
        widget.TextBox(font="Arial",
                       foreground=colors[2],
                       text="◤",
                       fontsize=73,
                       padding=-7),
        widget.CurrentLayout(
            font="TerminessTTF Nerd Font Medium",
            fontsize=15,
            #foreground = colors[5],
            #background = colors[1]
        ),
        widget.CurrentLayoutIcon(font="TerminessTTF Nerd Font Medium",
                                 fontsize=13,
                                 scale=.70),
        widget.Sep(linewidth=1,
                   padding=10,
                   foreground=colors[2],
                   background=colors[1]),
        widget.WindowName(
            font="TerminessTTF Nerd Font Medium",
            fontsize=15,
            #foreground = colors[5],
            #background = colors[1],
        ),
        # widget.Net(
        #          font="Noto Sans",
        #          fontsize=12,
        #          interface="enp0s31f6",
        #          foreground=colors[2],
        #          background=colors[1],
        #          padding = 0,
        #          ),
        # widget.Sep(
        #          linewidth = 1,
        #          padding = 10,
        #          foreground = colors[2],
        #          background = colors[1]
        #          ),
        # widget.NetGraph(
        #          font="Noto Sans",
        #          fontsize=12,
        #          bandwidth="down",
        #          interface="auto",
        #          fill_color = colors[8],
        #          foreground=colors[2],
        #          background=colors[1],
        #          graph_color = colors[8],
        #          border_color = colors[2],
        #          padding = 0,
        #          border_width = 1,
        #          line_width = 1,
        #          ),
        # widget.Sep(
        #          linewidth = 1,
        #          padding = 10,
        #          foreground = colors[2],
        #          background = colors[1]
        #          ),
        widget.TextBox(font="Arial",
                       foreground=colors[2],
                       text="◢",
                       fontsize=73,
                       padding=-7),
        widget.TextBox(font="TerminessTTF Nerd Font Medium",
                       fontsize=13,
                       text="  ",
                       foreground=colors[1],
                       background=colors[2],
                       padding=0),
        widget.Pacman(font="TerminessTTF Nerd Font Medium",
                      fontsize=13,
                      execute='pamac-manager --updates',
                      markup=True,
                      unavailable=colors[1],
                      update_interval=60,
                      foreground=colors[7],
                      background=colors[2],
                      padding=0),
        widget.Sep(linewidth=1,
                   padding=10,
                   foreground=colors[1],
                   background=colors[2]),
        widget.TextBox(font="TerminessTTF Nerd Font Medium",
                       fontsize=13,
                       text=" CPU ",
                       foreground=colors[1],
                       background=colors[2],
                       padding=0),
        widget.CPUGraph(
            foreground=colors[7],
            background=colors[2],
            border_color=colors[7],
            #fill_color = colors[1],
            graph_color=colors[7],
            border_width=1,
            line_width=1,
            core="all",
            type="linefill",
            width=60),
        # do not activate in Virtualbox - will break qtile
        #              widget.ThermalSensor(
        #                        foreground = colors[5],
        #                        foreground_alert = colors[6],
        #                        background = colors[1],
        #                        metric = True,
        #                        padding = 3,
        #                        threshold = 80
        #                        ),
        widget.Sep(linewidth=1,
                   padding=10,
                   foreground=colors[1],
                   background=colors[2]),
        widget.TextBox(font="TerminessTTF Nerd Font Medium",
                       fontsize=13,
                       text=" MEM ",
                       foreground=colors[1],
                       background=colors[2],
                       padding=0),
        widget.MemoryGraph(background=colors[2],
                           border_color=colors[7],
                           foreground=colors[7],
                           graph_color=colors[7],
                           border_width=1,
                           frequency=1,
                           samples=100,
                           line_width=3,
                           type='linefill',
                           width=60),
        widget.Sep(linewidth=1,
                   padding=10,
                   foreground=colors[1],
                   background=colors[2]),
        widget.TextBox(font="TerminessTTF Nerd Font Medium",
                       fontsize=13,
                       text=" NET ",
                       foreground=colors[1],
                       background=colors[2],
                       padding=0),
        widget.NetGraph(background=colors[2],
                        border_color=colors[7],
                        foreground=colors[7],
                        graph_color=colors[7],
                        border_width=1,
                        frequency=1,
                        samples=100,
                        line_width=3,
                        type='linefill',
                        fill_color=colors[7],
                        interface='enp0s3',
                        start_pos='bottom',
                        width=60),
        widget.Sep(linewidth=1,
                   padding=10,
                   foreground=colors[1],
                   background=colors[2]),
        widget.TextBox(font="FontAwesome",
                       text="  ",
                       foreground=colors[7],
                       background=colors[2],
                       padding=0,
                       fontsize=16),
        widget.Clock(
            foreground=colors[7],
            background=colors[2],
            #format="%Y-%m-%d %H:%M",
            format="%Y-%m-%d %a %I:%M %p",
            font="TerminessTTF Nerd Font Medium",
            fontsize=13,
        ),
        widget.TextBox(font="Arial",
                       foreground=colors[2],
                       text="◤",
                       fontsize=73,
                       padding=-7),
        widget.Systray(background=colors[1],
                       foreground=colors[1],
                       icon_size=20,
                       padding=5),
    ]
    return widgets_list
示例#12
0
primary = bar.Bar(
    [
        widget.GroupBox(active=colors['green'],
                        this_current_screen_border=colors['yellow'],
                        urgent_color=colors['magenta'],
                        urgent_border=colors['magenta'],
                        borderwidth=1),
        widget.CurrentLayoutIcon(),
        widget.Prompt(),
        widget.TaskList(border=colors['blue'], borderwidth=1),
        widget.Volume(update_interval=2),
        widget.TextBox('|'),
        widget.Systray(),
        widget.TextBox('|'),
        widget.CPUGraph(graph_color=colors['green'],
                        border_color=colors['black']),
        widget.MemoryGraph(graph_color=colors['blue'],
                           border_color=colors['black']),
        widget.NetGraph(graph_color=colors['yellow'],
                        border_color=colors['black']),
        # widget.Wlan(interface="wlp2s0"),
        widget.TextBox('|'),
        widget.ThermalSensor(),
        widget.TextBox('|'),
        widget.Battery(),
        widget.TextBox('|'),
        widget.Clock(format='%Y-%m-%d %a %I:%M %p'),
    ],
    24,
    background=colors['background'],
)
示例#13
0
def init_widgets_list():
    prompt = "{0}@{1}: ".format(os.environ["USER"], socket.gethostname())
    widgets_list = [
        widget.GroupBox(font="Terminus",
                        fontsize=12,
                        margin_y=3,
                        margin_x=10,
                        padding_y=6,
                        padding_x=7,
                        borderwidth=3,
                        disable_drag=True,
                        active=colors[5],
                        inactive=colors[5],
                        rounded=False,
                        highlight_method="line",
                        highlight_color=colors[1],
                        this_current_screen_border=colors[10],
                        foreground=colors[1],
                        background=colors[1]),
        widget.Sep(linewidth=1,
                   padding=20,
                   foreground=colors[2],
                   background=colors[1]),
        widget.CurrentLayout(font="Terminus",
                             foreground=colors[5],
                             background=colors[1]),
        widget.Sep(linewidth=1,
                   padding=20,
                   foreground=colors[2],
                   background=colors[1]),
        widget.WindowName(
            font="Terminus",
            fontsize=12,
            foreground=colors[5],
            background=colors[1],
        ),
        # widget.Net(
        #          font="Hack",
        #          fontsize=12,
        #          interface="enp0s31f6",
        #          foreground=colors[2],
        #          background=colors[1],
        #          padding = 0,
        #          ),
        # widget.Sep(
        #          linewidth = 1,
        #          padding = 30,
        #          foreground = colors[2],
        #          background = colors[1]
        #          ),
        # widget.NetGraph(
        #          font="Terminus",
        #          fontsize=12,
        #          bandwidth="down",
        #          interface="auto",
        #          fill_color = colors[8],
        #          foreground=colors[2],
        #          background=colors[1],
        #          graph_color = colors[8],
        #          border_color = colors[2],
        #          padding = 0,
        #          border_width = 1,
        #          line_width = 1,
        #          ),
        # widget.Sep(
        #          linewidth = 1,
        #          padding = 30,
        #          foreground = colors[2],
        #          background = colors[1]
        #          ),
        # # do not activate in Virtualbox - will break qtile
        # widget.ThermalSensor(
        #          foreground = colors[5],
        #          foreground_alert = colors[6],
        #          background = colors[1],
        #          metric = True,
        #          padding = 3,
        #          threshold = 80
        #          ),
        # # battery option 1  ArcoLinux Horizontal icons do not forget to import arcobattery at the top
        # widget.Sep(
        #          linewidth = 1,
        #          padding = 10,
        #          foreground = colors[2],
        #          background = colors[1]
        #          ),
        # arcobattery.BatteryIcon(
        #          padding=0,
        #          scale=0.7,
        #          y_poss=2,
        #          theme_path=home + "/.config/qtile/icons/battery_icons_horiz",
        #          update_interval = 5,
        #          background = colors[1]
        #          ),
        # # battery option 2  from Qtile
        # widget.Sep(
        #          linewidth = 1,
        #          padding = 10,
        #          foreground = colors[2],
        #          background = colors[1]
        #          ),
        # widget.Battery(
        #          font="Terminus",
        #          update_interval = 10,
        #          fontsize = 12,
        #          foreground = colors[5],
        #          background = colors[1],
        #          ),
        widget.TextBox(font="FontAwesome",
                       text="  ",
                       foreground=colors[6],
                       background=colors[1],
                       padding=0,
                       fontsize=16),
        widget.CPUGraph(border_color=colors[2],
                        fill_color=colors[8],
                        graph_color=colors[8],
                        background=colors[1],
                        border_width=1,
                        line_width=1,
                        core="all",
                        type="box"),
        widget.Sep(linewidth=1,
                   padding=20,
                   foreground=colors[2],
                   background=colors[1]),
        widget.TextBox(font="FontAwesome",
                       text="  ",
                       foreground=colors[4],
                       background=colors[1],
                       padding=0,
                       fontsize=16),
        widget.Memory(
            font="Terminus",
            format='{MemUsed}M/{MemTotal}M',
            update_interval=1,
            fontsize=12,
            foreground=colors[5],
            background=colors[1],
        ),
        widget.Sep(linewidth=1,
                   padding=20,
                   foreground=colors[2],
                   background=colors[1]),
        widget.TextBox(font="FontAwesome",
                       text="  ",
                       foreground=colors[3],
                       background=colors[1],
                       padding=0,
                       fontsize=16),
        widget.Clock(foreground=colors[5],
                     background=colors[1],
                     fontsize=12,
                     format="%Y-%m-%d %H:%M"),
        widget.Sep(linewidth=1,
                   padding=20,
                   foreground=colors[2],
                   background=colors[1]),
        widget.Systray(background=colors[1],
                       margin_y=1,
                       margin_x=6,
                       icon_size=20,
                       padding=8),
    ]
    return widgets_list
示例#14
0
                 this_current_screen_border=colors['yellow'],
                 urgent_color=colors['magenta'],
                 urgent_border=colors['magenta'],
                 borderwidth=1),
 widget.CurrentLayoutIcon(),
 widget.Prompt(),
 widget.TaskList(border=colors['blue'], borderwidth=1),
 widget.TextBox("", **FONT_PARAMS),
 widget.Volume(**FONT_PARAMS),
 widget.TextBox('|'),
 widget.Systray(),
 widget.TextBox('|'),
 widget.CPUGraph(border_color="#d79921",
                 graph_color="#d79921",
                 border_width=1,
                 line_width=1,
                 type="line",
                 width=50,
                 **FONT_PARAMS),
 MemoryGraph(border_color="#458588",
             graph_color="#076678",
             border_width=1,
             line_width=1,
             type="line",
             width=50,
             **FONT_PARAMS),
 NetGraph(border_color="#98971a",
          graph_color="#98971a",
          border_width=1,
          line_width=1,
          type="line",
示例#15
0
def init_widgets_list():
    prompt = "{0}@{1}: ".format(os.environ["USER"], socket.gethostname())
    widgets_list = [
               widget.GroupBox(font="FontAwesome",
                        fontsize = 12,
                        margin_y = 2,
                        margin_x = 0,
                        padding_y = 6,
                        padding_x = 5,
                        borderwidth = 0,
                        disable_drag = True,
                        active = colors[2],
                        inactive = colors[9],
                        rounded = False,
                        highlight_method = "text",
                        this_current_screen_border = colors[4],
                        foreground = colors[2],
                        background = colors[1]
                        ),
               # widget.Sep(
               #         linewidth = 1,
               #         padding = 10,
               #         foreground = colors[2],
               #         background = colors[1]
               #         ),
               widget.CurrentLayout(
                        font = "Noto Sans Bold",
                        foreground = colors[5],
                        background = colors[1],
                        padding_y = 4
                        ),
               #widget.Sep(
               #         linewidth = 1,
               #         padding = 10,
               #         foreground = colors[2],
               #         background = colors[1]
               #         ),
               widget.WindowName(font="Noto Sans",
                        fontsize = 12,
                        foreground = colors[5],
                        background = colors[1],
                        ),
               # widget.Net(
               #          font="Noto Sans",
               #          fontsize=12,
               #          interface="enp0s31f6",
               #          foreground=colors[2],
               #          background=colors[1],
               #          padding = 0,
               #          ),
               # widget.Sep(
               #          linewidth = 1,
               #          padding = 10,
               #          foreground = colors[2],
               #          background = colors[1]
               #          ),
               # widget.NetGraph(
               #          font="Noto Sans",
               #          fontsize=12,
               #          bandwidth="down",
               #          interface="auto",
               #          fill_color = colors[8],
               #          foreground=colors[2],
               #          background=colors[1],
               #          graph_color = colors[8],
               #          border_color = colors[2],
               #          padding = 0,
               #          border_width = 1,
               #          line_width = 1,
               #          ),
               # widget.Sep(
               #          linewidth = 1,
               #          padding = 10,
               #          foreground = colors[2],
               #          background = colors[1]
               #          ),
               # # do not activate in Virtualbox - will break qtile
               # widget.ThermalSensor(
               #          foreground = colors[5],
               #          foreground_alert = colors[6],
               #          background = colors[1],
               #          metric = True,
               #          padding = 3,
               #          threshold = 80
               #          ),
               # # battery option 1  ArcoLinux Horizontal icons do not forget to import arcobattery at the top
               # widget.Sep(
               #          linewidth = 1,
               #          padding = 10,
               #          foreground = colors[2],
               #          background = colors[1]
               #          ),
               # arcobattery.BatteryIcon(
               #          padding=0,
               #          scale=0.7,
               #          y_poss=2,
               #          theme_path=home + "/.config/qtile/icons/battery_icons_horiz",
               #          update_interval = 5,
               #          background = colors[1]
               #          ),
               # # battery option 2  from Qtile
               # widget.Sep(
               #          linewidth = 1,
               #          padding = 10,
               #          foreground = colors[2],
               #          background = colors[1]
               #          ),
               widget.TextBox(
                        font="Noto Sans",
                        text="",
                        foreground= "#3c4354",
                        background=colors[1],
                        padding = 0,
                        fontsize=40
                        ),
               widget.Systray(
                        background= "#3c4354",
                        icon_size=20,
                        padding = 4
                        ),
              # widget.Battery(
               #          font="Noto Sans",
               #          update_interval = 10,
               #          fontsize = 12,
               #          foreground = colors[5],
               #          background = "#3c4354",
	       #              ),
               widget.TextBox(
                        font="Noto Sans",
                        text="",
                        foreground= "#4c4d48",
                        background= "#3c4354",
                        padding = 0,
                        fontsize=40
                        ),
               widget.CPUGraph(
                        border_color = colors[4],
                        fill_color = colors[6],
                        graph_color = colors[2],
                        background= "#4c4d48",
                        border_width = 1,
                        line_width = 1,
                        core = "all",
                        type = "box"
                        ),
               widget.TextBox(
                        font="Noto Sans",
                        text="",
                        foreground= "#868774",
                        background= "#4c4d48",
                        padding = 0,
                        fontsize=40
                        ),
               
               # widget.Sep(
               #         linewidth = 1,
               #         padding = 10,
               #         foreground = colors[2],
               #         background = colors[1]
               #         ),
               widget.TextBox(
                        font="FontAwesome",
                        text="  ",
                        foreground=colors[4],
                        background= "#868774",
                        padding = 0,
                        fontsize=16
                        ),
               widget.Memory(
                        font="Noto Sans",
                        format = '{MemUsed}M/{MemTotal}M',
                        update_interval = 1,
                        fontsize = 12,
                        foreground = colors[4],
                        background = "#868774",
                       ),
               #widget.Sep(
               #         linewidth = 1,
               #         padding = 10,
               #         foreground = colors[2],
               #         background = colors[1]
               #         ),
              widget.TextBox(
                        font="Noto Sans",
                        text="",
                        foreground= "#ced48c",
                        background= "#868774",
                        padding = 0,
                        fontsize=40
                        ),
              widget.TextBox(
                        font="FontAwesome",
                        text="  ",
                        foreground= "#44475a",
                        background= "#ced48c",
                        padding = 0,
                        fontsize=16
                        ),
               widget.Clock(
                        foreground = "#44475a",
                        background = "#ced48c",
                        fontsize = 12,
                        format="%Y-%m-%d %H:%M"
                        ),
              #widget.Sep(
              #          linewidth = 1,
              #          padding = 10,
              #          foreground = colors[2],
              #          background = colors[1]
              #          ),
              widget.TextBox(
                        font="Noto Sans",
                        text="",
                        foreground=colors[6],
                        background= "#ced48c",
                        padding = 0,
                        fontsize=40
                        ),
             widget.Battery(
                       charge_char = '',
                       discharge_char = '',
                       empty_char = '',
                       full_char = '',
                       font = 'mononoki NF Bold',
                       low_percentage = 0.15,
                       low_foreground = '#ea1717',
                       format = "{char} {percent:2.0%}",
                       #update_interval = '0',
                       foreground = "#44475a",
                       background = colors [4],
                       ),
               
                             ]
    return widgets_list
示例#16
0
class FakeScreenConfig(Config):
    auto_fullscreen = True
    groups = [
        libqtile.config.Group("a"),
        libqtile.config.Group("b"),
        libqtile.config.Group("c"),
        libqtile.config.Group("d")
    ]
    layouts = [
        layout.Max(),
        layout.RatioTile(),
        layout.Tile(),
    ]
    floating_layout = libqtile.resources.default_config.floating_layout
    keys = []
    mouse = []
    fake_screens = [
        Screen(bottom=bar.Bar([
            widget.GroupBox(this_screen_border=CHAM3,
                            borderwidth=1,
                            fontsize=FONTSIZE,
                            padding=1,
                            margin_x=1,
                            margin_y=1),
            widget.AGroupBox(),
            widget.Prompt(),
            widget.Sep(),
            widget.WindowName(fontsize=FONTSIZE, margin_x=6),
            widget.Sep(),
            widget.CPUGraph(**GRAPH_KW),
            widget.MemoryGraph(**GRAPH_KW),
            widget.SwapGraph(foreground='20C020', **GRAPH_KW),
            widget.Sep(),
            widget.Clock(format='%H:%M:%S %d.%manager.%Y',
                         fontsize=FONTSIZE,
                         padding=6),
        ],
                              24,
                              background="#555555"),
               left=bar.Gap(16),
               right=bar.Gap(20),
               x=0,
               y=0,
               width=500,
               height=340),
        Screen(top=bar.Bar(
            [widget.GroupBox(),
             widget.WindowName(),
             widget.Clock()],
            30,
        ),
               bottom=bar.Gap(24),
               left=bar.Gap(12),
               x=500,
               y=0,
               width=300,
               height=380),
        Screen(top=bar.Bar(
            [widget.GroupBox(),
             widget.WindowName(),
             widget.Clock()],
            30,
        ),
               bottom=bar.Gap(16),
               right=bar.Gap(40),
               x=0,
               y=340,
               width=450,
               height=220),
        Screen(top=bar.Bar(
            [widget.GroupBox(),
             widget.WindowName(),
             widget.Clock()],
            30,
        ),
               left=bar.Gap(20),
               right=bar.Gap(24),
               x=450,
               y=380,
               width=350,
               height=220),
    ]
    screens = []
示例#17
0
                widget.CurrentLayout(foreground='88bfff', fontsize=16),
                widget.TextBox("]", fontsize=15, foreground='88bfff'),
                #widget.TextBox("🚦",fontsize=15,foreground='88bfff'),
                #widget.TextBox("💻",foreground='88bfff'),
                #widget.TextBox(text='♏',fontsize=15,foreground='bf2a2a'),
                widget.WindowTabs(selected=('[😃', ']'),
                                  separator='🚦',
                                  fontsize=15,
                                  foreground='88bfff'),
                #widget.TextBox("default config", name="default"),
                #widget.Moc(),
                widget.TextBox("🚅", fontsize=16, foreground='eee9e9'),
                widget.Net(interface='enp0s3', foreground='88bfff'),
                widget.TextBox("🐻", fontsize=15, foreground='88bfff'),
                widget.CPUGraph(graph_color='88bfff',
                                border_color='88bfff',
                                border_width=1),
                #widget.MemoryGraph(graph_color='34e2e2',border_color='34e2e2',border_width=1),
                widget.TextBox("📅", fontsize=15, foreground='23e2e2'),
                widget.Clock(format='%Y-%m-%d[%a]', foreground='88bfff'),
                widget.TextBox("⏰", fontsize=15, foreground='fce94f'),
                widget.Clock(format='%I:%M:%S[%p]', foreground='88bfff'),
                widget.TextBox("💬", fontsize=15, foreground='23e2e2'),
                widget.Systray(),
            ],
            20,
        ), ),
]

# Drag floating layouts.
mouse = [
示例#18
0
     max_title_width=800,
     urgent_border=color_alert,
 ),
 widget.Systray(),
 Backlight(),
 Battery(
     charge_char=u'▲',
     discharge_char=u'▼',
     low_foreground=color_alert,
 ),
 ThermalSensor(),
 Volume(),
 widget.CPUGraph(
     graph_color=color_alert,
     fill_color='{}.5'.format(color_alert),
     border_color=color_frame,
     line_width=2,
     border_width=1,
     samples=60,
 ),
 widget.MemoryGraph(
     graph_color=color_alert,
     fill_color='{}.5'.format(color_alert),
     border_color=color_frame,
     line_width=2,
     border_width=1,
     samples=60,
 ),
 widget.NetGraph(
     graph_color=color_alert,
     fill_color='{}.5'.format(color_alert),
     border_color=color_frame,
示例#19
0
def init_bar(color=init_colors()):
    return bar.Bar(
        [
            widget.TextBox(text="",
                           font="fontello",
                           foreground=color[14],
                           fontsize=23,
                           padding=5,
                           mouse_callbacks={'Button1': jgmenu_qtile}),
            widget.GroupBox(active=color[12],
                            inactive=color[14],
                            this_current_screen_border=color[10],
                            highlight_method="line",
                            font="fontello",
                            highlight_color=[color[15]],
                            center_aligned=True,
                            disable_drag=True,
                            fontsize=14),
            widget.Spacer(580),
            widget.TextBox(
                text='',
                font="icomoon",
            ),
            widget.Clock(
                format='%Y-%m-%d',
                foreground=color[14],
                fontsize=11,
                font='Cantarell Bold',
            ),
            widget.TextBox(
                text=' ',
                font="icomoon",
            ),
            widget.Clock(
                format='%H:%M',
                foreground=color[14],
                fontsize=11,
                font='Cantarell Bold',
            ),
            widget.Spacer(bar.STRETCH),
            widget.TextBox(
                text="",
                font="icomoon",
            ),
            widget.CheckUpdates(display_format='{updates}',
                                font='Cantarell Bold',
                                execute='pamac-manager',
                                distro='Arch',
                                update_interval=1),
            widget.TextBox(text="|", ),
            widget.CheckUpdates(
                display_format='{updates}',
                font='Cantarell Bold',
                distro='Arch',
                custom_command='yay -Qum 2>/dev/null',
                update_interval=1,
                execute='pamac-manager',
            ),
            widget.Spacer(10),
            widget.Net(),
            widget.Spacer(10),
            widget.TextBox(
                #text=' ',
                text='MEM:', ),
            widget.MemoryGraph(),
            widget.Spacer(10),
            widget.TextBox(
                #text=" ",
                text='CPU:', ),
            widget.CPUGraph(),
            widget.Spacer(10),
            widget.CurrentLayoutIcon(scale=0.5, ),
        ],
        26,
        background=color[15],
        font='Cantarell Bold',
        fontsize=11)
示例#20
0
def make_screen(systray=False):
    """Defined as a function so that I can duplicate this on other monitors"""
    def _separator():
        # return widget.Sep(linewidth=2, foreground=COLS["dark_3"])
        return widget.Sep(linewidth=2,
                          foreground=WAL_COLS['special']['foreground'])

    blocks = [
        # Marker for the start of the groups to give a nice bg: ◢■■■■■■■◤
        widget.TextBox(font="Arial",
                       foreground=WAL_COLS['special']['foreground'],
                       text="◢",
                       fontsize=66,
                       padding=-20),
        widget.GroupBox(
            other_current_screen_border=WAL_COLS['colors']['color5'],
            this_current_screen_border=WAL_COLS['colors']
            ['color4'],  #COLS["blue_0"],
            # this_current_screen_border=COLS["deus_2"],
            other_screen_border=WAL_COLS['colors']
            ['color5'],  #COLS["orange_0"],
            this_screen_border=WAL_COLS['colors']['color4'],  #COLS["blue_0"],
            # this_screen_border=COLS["deus_2"],
            highlight_color=WAL_COLS['colors']['color4'],  #COLS["blue_0"],
            # highlight_color=COLS["deus_2"],
            urgent_border=WAL_COLS['colors']['color3'],  #COLS["red_1"],
            background=WAL_COLS['special']['foreground'],  #COLS["dark_4"],
            # background=COLS["deus_3"],
            highlight_method="line",
            inactive=WAL_COLS['colors']['color2'],  #,COLS["dark_2"],
            active=WAL_COLS['colors']['color1'],  #COLS["light_2"],
            disable_drag=True,
            borderwidth=2,
            font=FONT_PARAMS['font'],
            fontsize=FONT_PARAMS['fontsize'] + 10,
            foreground=FONT_PARAMS['foreground']),
        # Marker for the end of the groups to give a nice bg: ◢■■■■■■■◤
        widget.TextBox(
            font="Arial",
            foreground=WAL_COLS['special']['foreground'],
            # font="Arial", foreground=COLS["deus_3"],
            text="◤ ",
            fontsize=66,
            padding=-20),
        # Show the title for the focused window
        widget.WindowName(**FONT_PARAMS),
        # Allow for quick command execution
        widget.Prompt(
            cursor_color=WAL_COLS['special']['cursor'],
            # ignore_dups_history=True,
            bell_style="visual",
            prompt="λ : ",
            **FONT_PARAMS),
        widget.Mpris2(name='spotify',
                      objname="org.mpris.MediaPlayer2.spotify",
                      display_metadata=['xesam:title', 'xesam:artist'],
                      scroll_chars=None,
                      stop_pause_text='',
                      **FONT_PARAMS),
        _separator(),
        # Resource usage graphs
        widget.Wallpaper(
            directory=os.path.expanduser('~/.config/qtile/wallpaper/'),
            label=' ',
            wallpaper_command=['wal', '-i'],
            **FONT_PARAMS),
        widget.CPUGraph(border_color=WAL_COLS['colors']['color1'],
                        graph_color=WAL_COLS['colors']['color1'],
                        border_width=1,
                        line_width=1,
                        type="line",
                        width=50,
                        **FONT_PARAMS),
        widget.MemoryGraph(border_color=WAL_COLS['colors']['color2'],
                           graph_color=WAL_COLS['colors']['color2'],
                           border_width=1,
                           line_width=1,
                           type="line",
                           width=50,
                           **FONT_PARAMS),
        widget.NetGraph(border_color=WAL_COLS['colors']['color3'],
                        graph_color=WAL_COLS['colors']['color3'],
                        border_width=1,
                        line_width=1,
                        type="line",
                        width=50,
                        **FONT_PARAMS),
        # IP information
        # ShellScript(
        #     fname="ipadr.sh",
        #     update_interval=10,
        #     markup=True,
        #     padding=1,
        #     **FONT_PARAMS
        # ),
        # # Available apt upgrades
        # ShellScript(
        #     fname="aptupgrades.sh",
        #     update_interval=600,
        #     markup=True,
        #     padding=1,
        #     **FONT_PARAMS
        # ),
        # Current battery level
        widget.TextBox("", **FONT_PARAMS),
        widget.CheckUpdates(
            distro="Arch_checkupdates",
            display_format="{updates}",
            colour_no_updates=WAL_COLS['special']['foreground'],
            colour_have_updates=WAL_COLS['colors']['color4'],
            **FONT_PARAMS),
        # Wifi strength
        # ShellScript(
        #     fname="wifi-signal.sh",
        #     update_interval=60,
        #     markup=True,
        #     padding=1,
        #     **FONT_PARAMS
        # ),
        # Volume % : scroll mouse wheel to change volume
        widget.TextBox("蓼", **FONT_PARAMS),
        widget.Volume(**FONT_PARAMS),
        widget.TextBox("", **FONT_PARAMS),
        widget.Backlight(
            format="{percent:2.0%}",
            backlight_name="intel_backlight",
            brightness_file='/sys/class/backlight/intel_backlight/brightness',
            max_brightness_file=
            "/sys/class/backlight/intel_backlight/max_brightness",
            change_command="brightnessctl -set {0}%",
            **FONT_PARAMS),
        widget.TextBox("直", **FONT_PARAMS),
        widget.Wlan(interface='wlp2s0',
                    update_interval='10',
                    format="{percent:2.0%}",
                    **FONT_PARAMS),
        # widget.TextBox("", **FONT_PARAMS),
        widget.Battery(charge_char="",
                       full_char="",
                       empty_char="",
                       unkown_char="",
                       discharge_char="",
                       format="{char}",
                       show_short_text=False,
                       **FONT_PARAMS),
        widget.Battery(charge_char="",
                       full_char="",
                       empty_char="",
                       unkown_char="",
                       discharge_char="",
                       format="{percent:2.0%}",
                       show_short_text=False,
                       **FONT_PARAMS),
        _separator(),
        # Current time
        widget.Clock(format="%m/%d/%Y %I:%M %p %a", **FONT_PARAMS),
        # # Keyboard layout
        # widget.KeyboardLayout(
        #     configured_keyboards=['us', 'gb'],
        #     **FONT_PARAMS
        # ),
        # Visual indicator of the current layout for this workspace.
        widget.CurrentLayoutIcon(
            custom_icon_paths=[os.path.expanduser("~/.config/qtile/icons")],
            **FONT_PARAMS),
    ]
    # Section "Device"
    # Identifier  "0x72"
    # Driver      "intel"
    # Option      "Backlight"  "intel_backlight"
    # EndSection
    # 1e2
    if systray:
        # Add in the systray and additional separator
        blocks.insert(-1, widget.Systray())
        blocks.insert(-1, _separator())

    # return Screen(top=bar.Bar(blocks, 25, background=COLS["deus_1"]))
    return Screen(top=bar.Bar(
        blocks, 25, background=WAL_COLS['special']['background'], opacity=.8))
示例#21
0
 _separator(GRAY, PRIMARY),
 widget.CurrentLayout(background=PRIMARY),
 _separator(PRIMARY, BLACK),
 widget.TaskList(background=BLACK,
                 highlight_method="block",
                 border=GRAY,
                 title_width_method='uniform',
                 urgent_border=SECONDARY,
                 unfocused_border=GRAY,
                 max_title_width=300),
 widget.Sep(foreground=BLACK, background=BLACK),
 _separator(GRAY, BLACK, "left"),
 widget.CPUGraph(background=GRAY,
                 type="line",
                 line_width=1,
                 border_width=2,
                 border_color=PRIMARY,
                 graph_color=PRIMARY,
                 width=50),
 widget.MemoryGraph(background=GRAY,
                    type="line",
                    line_width=1,
                    border_width=2,
                    border_color=TERTIARY,
                    graph_color=TERTIARY,
                    width=50),
 widget.NetGraph(background=GRAY,
                 type="line",
                 line_width=1,
                 border_width=2,
                 border_color=SECONDARY,
示例#22
0
    padding=3,
)
extension_defaults = widget_defaults.copy()

_bar = lambda light: bar.Bar(
    [
        widget.CurrentLayoutIcon(scale=0.8),
        widget.GroupBox(highlight_method="block"),
        widget.Prompt(),
        widget.TaskList(max_title_width=128),
    ] + ([
        Spotify(update_interval=5),
        widget.TextBox(text="🌐"),
        widget.NetGraph(),
        widget.TextBox(text="🏽"),
        widget.CPUGraph(),
        widget.TextBox(text="🔋"),
        widget.Battery(),
        widget.TextBox(text="🔉"),
        widget.PulseVolume(),
    ] if not light else []) + [
        widget.TextBox("🕐"),
        widget.Clock(format="%Y-%m-%d %a %H:%M"),
    ],
    24,
    # border_width=[1, 0, 0, 0],  # Draw top and bottom borders
    # border_color=["ffffff", "000000", "000000", "000000"],  # Borders are magenta
)
screens = [
    Screen(top=_bar(x != 0),
           wallpaper="~/.config/qtile/wall.png",
示例#23
0
文件: config.py 项目: flebel/dotfiles
if hostname == 'tambora':
    screens = [
        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('  /\  '),
                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.TextBox('CPU:'),
                widget.CPUGraph(**widget_graph_defaults),

                widget.Spacer(width=2),
                widget.TextBox('Mem:'),
                widget.MemoryGraph(**widget_graph_defaults),

                widget.Spacer(width=2),
                widget.TextBox('Swap:'),
                widget.SwapGraph(**widget_graph_defaults),

                widget.Spacer(width=2),
                widget.TextBox('HDD:'),
                widget.HDDGraph(space_type='used', **widget_graph_defaults),

                widget.Spacer(width=2),
                widget.TextBox('Net:'),
示例#24
0
 widget.TextBox(font="font-awesome",
                text=(""),
                padding=0,
                foreground="FFCD00"),
 widget.Net(interface="enp4s0", ),
 widget.Spacer(length=10),
 widget.TextBox(
     font="font-awesome",
     text=(""),
     #text=(""),
     padding=0,
     foreground="FFCD00"),
 widget.CPUGraph(
     type="linefill",
     line_width=1,
     graph_color="FFCD00",
     fill_color="FFCD00.3",
     border_color="0F0F0F",
 ),
 widget.Spacer(length=10),
 widget.TextBox(font="font-awesome",
                text=(""),
                padding=0,
                foreground="FFCD00"),
 widget.Memory(
     fmt="{MemUsed}M",
     update_interval=10,
 ),
 #widget.MemoryGraph(
 #    type="linefill",
 #    line_width=1,
示例#25
0
def init_widgets_list():
    prompt = "{0}@{1}: ".format(os.environ["USER"], socket.gethostname())
    widgets_list = [
        widget.GroupBox(font="FontAwesome",
                        fontsize=16,
                        margin_y=-1,
                        margin_x=0,
                        padding_y=6,
                        padding_x=5,
                        borderwidth=0,
                        disable_drag=True,
                        active=colors[9],
                        inactive=colors[5],
                        rounded=False,
                        highlight_method="text",
                        this_current_screen_border=colors[8],
                        foreground=colors[2],
                        background=colors[1]),
        widget.Sep(linewidth=1,
                   padding=10,
                   foreground=colors[2],
                   background=colors[1]),
        widget.CurrentLayout(font="Noto Sans Bold",
                             foreground=colors[5],
                             background=colors[1]),
        widget.Sep(linewidth=1,
                   padding=10,
                   foreground=colors[2],
                   background=colors[1]),
        widget.WindowName(
            font="Noto Sans",
            fontsize=12,
            foreground=colors[5],
            background=colors[1],
        ),
        # widget.Net(
        #          font="Noto Sans",
        #          fontsize=12,
        #          interface="enp0s31f6",
        #          foreground=colors[2],
        #          background=colors[1],
        #          padding = 0,
        #          ),
        # widget.Sep(
        #          linewidth = 1,
        #          padding = 10,
        #          foreground = colors[2],
        #          background = colors[1]
        #          ),
        # widget.NetGraph(
        #          font="Noto Sans",
        #          fontsize=12,
        #          bandwidth="down",
        #          interface="auto",
        #          fill_color = colors[8],
        #          foreground=colors[2],
        #          background=colors[1],
        #          graph_color = colors[8],
        #          border_color = colors[2],
        #          padding = 0,
        #          border_width = 1,
        #          line_width = 1,
        #          ),
        # widget.Sep(
        #          linewidth = 1,
        #          padding = 10,
        #          foreground = colors[2],
        #          background = colors[1]
        #          ),
        widget.TextBox(font="FontAwesome",
                       text="  ",
                       foreground=colors[6],
                       background=colors[1],
                       padding=0,
                       fontsize=16),
        widget.CPUGraph(border_color=colors[2],
                        fill_color=colors[8],
                        graph_color=colors[8],
                        background=colors[1],
                        border_width=1,
                        line_width=1,
                        core="all",
                        type="box"),
        # do not activate in Virtualbox - will break qtile
        #              widget.ThermalSensor(
        #                        foreground = colors[5],
        #                        foreground_alert = colors[6],
        #                        background = colors[1],
        #                        metric = True,
        #                        padding = 3,
        #                        threshold = 80
        #                        ),
        widget.Sep(linewidth=1,
                   padding=10,
                   foreground=colors[2],
                   background=colors[1]),
        widget.TextBox(font="FontAwesome",
                       text="  ",
                       foreground=colors[4],
                       background=colors[1],
                       padding=0,
                       fontsize=16),
        arcomemory.Memory(fmt='{MemUsed} MB  {Memsza}%',
                          execute='urxvt -e htop',
                          padding=5,
                          margin=10,
                          font="Noto Sans",
                          fontsize=12,
                          update_interval=1,
                          foreground=colors[5],
                          background=colors[1]),
        # This is the standard Qtile memory widget
        # widget.Sep(
        #          linewidth = 1,
        #          padding = 10,
        #          foreground = colors[2],
        #          background = colors[1]
        #          ),
        # widget.TextBox(
        #          font="FontAwesome",
        #          text="  ",
        #          foreground=colors[4],
        #          background=colors[1],
        #          padding = 0,
        #          fontsize=16
        #          ),
        # widget.Memory(
        #          font="Noto Sans",
        #          fmt = '{MemUsed}/{MemTotal}M',
        #          update_interval = 5,
        #          fontsize = 12,
        #          foreground = colors[5],
        #          background = colors[1],
        #          ),
        # # battery option 1  or ArcoLinux Horizontal icons by default
        # # Other options have been moved to the backup folder
        # # 3 extra possibilities for your battery usage
        # widget.Sep(
        #          linewidth = 1,
        #          padding = 10,
        #          foreground = colors[2],
        #          background = colors[1]
        #          ),
        # arcobattery.BatteryIcon(
        #          padding=0,
        #          scale=0.7,
        #          y_poss=2,
        #          theme_path=home + "/.config/qtile/icons/battery_icons_horiz",
        #          update_interval = 5,
        #          background = colors[1]
        #          ),
        widget.Sep(linewidth=1,
                   padding=10,
                   foreground=colors[2],
                   background=colors[1]),
        widget.TextBox(font="FontAwesome",
                       text="  ",
                       foreground=colors[3],
                       background=colors[1],
                       padding=0,
                       fontsize=16),
        widget.Clock(foreground=colors[5],
                     background=colors[1],
                     fontsize=12,
                     format="%Y-%m-%d %H:%M"),
        widget.Sep(linewidth=1,
                   padding=10,
                   foreground=colors[2],
                   background=colors[1]),
        widget.Systray(background=colors[1], icon_size=20, padding=4),
    ]
    return widgets_list
示例#26
0
         lazy.window.set_size_floating(),
         start=lazy.window.get_size()),
)

bring_front_click = True

# Screens
screens = [
    Screen(
        # bottom=bar.Bar(widgets=[Powerline()], **bar_defaults),
        top=bar.Bar(
            widgets=[
                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),
示例#27
0
                widget.Prompt(),
                widget.WindowName(padding=0),

                # widget.TextBox("default config", name="default"),
                widget.TextBox(font="Arial",
                               foreground="#CACACA",
                               text="◢",
                               fontsize=(FONT_SIZE * 5.25),
                               padding=-1),
                widget.NetGraph(bandwidth_type="up",
                                type="linefill",
                                background="#CACACA",
                                line_width=1),
                widget.CPUGraph(type="box",
                                graph_color=theme.bg_active,
                                border_color=theme.bg_active,
                                background="#CACACA",
                                border_width=2,
                                line_width=1),
                widget.MemoryGraph(type="box",
                                   graph_color=theme.bg_active,
                                   border_color=theme.bg_active,
                                   background="#CACACA",
                                   border_width=2,
                                   line_width=1),
                widget.TextBox(font="Arial",
                               foreground="#CACACA",
                               text="◤ ",
                               fontsize=(FONT_SIZE * 5.25),
                               padding=-1),
                widget.Systray(),
                widget.Clock(format='%d.%m.%Y %H:%M'),
示例#28
0
secondary_widgets = [
    *workspaces(),
]

status_widgets = lambda: [
    # widget.Spacer(background=colors["background"]),
    # separate(),
    widget.TextBox(text="",
                   foreground=colors["yellow"],
                   background=colors["background"],
                   font="Font Awesome 5 Free Solid"),
    widget.CPUGraph(border_color=colors["yellow"],
                    graph_color=colors["yellow"],
                    background=colors["background"],
                    border_width=1,
                    line_width=1,
                    type="line",
                    width=100),
    separate(),
    widget.TextBox(text="",
                   foreground=colors["green"],
                   background=colors["background"],
                   font="Font Awesome 5 Free Solid"),
    widget.MemoryGraph(border_color=colors["green"],
                       graph_color=colors["green"],
                       background=colors["background"],
                       border_width=1,
                       line_width=1,
                       type="line",
                       width=100),
示例#29
0
        widget.Pomodoro(
            color_inactive=YELLOW,
            color_break=GREEN,
            color_active=RED),

        widget.GenPollText(
            func=commands.get_watson_status,
            update_interval=1,
            foreground=BLUE),

        widget.Spacer(length=bar.STRETCH),
        widget.CPUGraph(
            line_width=1,
            border_width=0,
            width=66,
            type='box',
            graph_color=RED,
            fill_color=RED
            ),
        widget.NetGraph(
            line_width=1,
            border_width=0,
            width=66,
            type='box',
            graph_color=BLUE,
            fill_color=BLUE,
            interface="auto"),
        widget.MemoryGraph(
            line_width=1,
            border_width=0,
            width=16,
示例#30
0
                 border_width=0,
                 highlight_color=[Onedark[4], Onedark[4]],
                 highlight_method='line',
                 inactive=Onedark[8],
     ),
 #  widget.Prompt(),
 widget.CurrentLayoutIcon(background=Onedark[0], fontsize=10, scale=0.7),
 widget.TextBox(" │ ", foreground=Onedark[8], background=Onedark[0]),
 widget.WindowName(fontsize=10,background=Onedark[0]),
 #  widget.Net(background=Onedark[0],interface="enp2s0", format="{down}↓↑{up}", foreground=Onedark[6]),
 widget.TextBox(" │ ", foreground=Onedark[8], background=Onedark[0]),
 widget.TextBox("CPU ", fontsize=10, foreground=Onedark[5], background=Onedark[0]),
 widget.CPUGraph(background=Onedark[0],
                 border_width=1,
                 border_color=Onedark[5],
                 graph_color=Onedark[3],
                 frequency = 1,
                 core = 0,
                 type = 'line'),
 widget.CPU(foreground=Onedark[5], background=Onedark[0]),
 widget.TextBox(" │ ", foreground=Onedark[8], background=Onedark[0]),
 widget.TextBox("RAM ", fontsize=10, foreground=Onedark[3], background=Onedark[0]),
 widget.Memory(fontsize=10, foreground=Onedark[3], background=Onedark[0]),
 widget.MemoryGraph( background=Onedark[0],
                     border_width=1,
                     border_color=Onedark[3],
                     graph_color=Onedark[3]),
 widget.TextBox(" │ ", foreground=Onedark[8], background=Onedark[0]),
 widget.Volume(fmt=" {}", background=Onedark[0], foreground=Onedark[2]),
 widget.TextBox(" │ ", foreground=Onedark[8], background=Onedark[0]),
 widget.Systray(background=Onedark[0], padding=10),