예제 #1
0
     "http://18733.live.streamtheworld.com:3690/RADIO_ACTIVAAAC_SC",
     "123VALLENATO": "http://radiolatina.info:7087/;",
 }, ),
 # widget.TextBox("default config", name="default"),
 # widget.TextBox("Press <M-r> to spawn", foreground="#d75f5f"),
 widget.Sep(),
 widget.CPUGraph(background='161616',
                 graph_color='118ab2',
                 fill_color='118ab2.8',
                 border_color='118ab2',
                 border_width=0,
                 line_width=1,
                 type='box'),
 widget.NetGraph(background='161616',
                 graph_color='06d6a0',
                 fill_color='06d6a0.8',
                 border_color='06d6a0',
                 border_width=0,
                 line_width=1),
 widget.MemoryGraph(background='161616',
                    graph_color='ffd166',
                    fill_color='ffd166.8',
                    border_color='ffd166',
                    border_width=0,
                    line_width=1),
 widget.Sep(),
 widget.Systray(),
 widget.Sep(),
 widget.Image(filename=f'{HOME}/.config/qtile/volume.png',
              margin_x=5,
              margin_y=5,
              margin=0),
예제 #2
0
 widget.TextBox('',
                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),
예제 #3
0
        widget.Battery(**Theme.battery_text),
        widget.Pacman(execute=Commands.pacman, **Theme.pacman),
        widget.GmailChecker(fmt=u"✉ %s",
                            username='******',
                            password='******',
                            status_only_unseen=True,
                            **Theme.battery_text),
        widget.KeyboardLayout(configured_keyboards=['us', 'lt'],
                              **Theme.widget),
        widget.Volume(emoji=True,
                      mute_command=['amixer', '-q', 'set', 'Master', 'toggle'],
                      **Theme.widget),
        widget.Clock(fmt='⏰ %Y-%m-%d %H:%M', **Theme.widget),
        widget.CPUGraph(graph_color="#FF0000", border_color="#FF0000"),
        widget.NetGraph(graph_color="#086FA1",
                        border_color="#086FA1",
                        interface="wlp4s0",
                        bandwidth_type="down"),
    ],
                       **Theme.bar), ),
]

##-> Floating windows
floating_layout = layout.floating.Floating(float_rules=[{
    'wmclass': x
} for x in (
    'Download',
    'dropbox',
    'file_progress',
    "notification",
    "toolbar",
    "splash",
예제 #4
0
파일: config.py 프로젝트: fmaruki/config
                # 	line_width=2,
                # 	border_width=1,
                # 	samples=60,
                # 	),
                # widget.MemoryGraph(
                # 	graph_color=color_graph,
                # 	fill_color='{}.5'.format(color_graph),
                # 	border_color=color_frame,
                # 	line_width=2,
                # 	border_width=1,
                # 	samples=60,
                # 	),
                widget.NetGraph(
                    graph_color=color_graph,
                    fill_color='{}.5'.format(color_graph),
                    border_color=color_frame,
                    line_width=2,
                    border_width=1,
                    samples=60,
                ),
                widget.Clock(format='%Y-%m-%d %H:%M %p', ),
            ],
            25,
        ), ),
]


def detect_screens(qtile):
    while len(screens) < len(qtile.conn.pseudoscreens):
        screens.append(
            Screen(top=bar.Bar(
                [
예제 #5
0
                        urgent_color=colors['magenta'],
                        urgent_border=colors['magenta'],
                        borderwidth=1),
        widget.CurrentLayoutIcon(),
        widget.Prompt(),
        widget.TaskList(border=colors['blue'], borderwidth=1),
        widget.Mpd(),
        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.Clock(format='%Y-%m-%d %a %I:%M %p'),
    ],
    24,
    background=colors['background'],
)

secondary = bar.Bar(
    [
        widget.GroupBox(active=colors['green'],
                        this_current_screen_border=colors['yellow'],
                        urgent_color=colors['magenta'],
                        urgent_border=colors['magenta'],
                        borderwidth=1),
예제 #6
0
파일: config.py 프로젝트: voreille/dotfiles
def init_widgets_list():
    prompt = "{0}@{1}: ".format(os.environ["USER"], socket.gethostname())
    widgets_list = [
        widget.GroupBox(
            font="UbuntuNerd",
            fontsize=18,
            margin_y=4,
            margin_x=0,
            padding_y=6,
            padding_x=5,
            borderwidth=2,
            disable_drag=True,
            active=colors["purple"],
            inactive=colors["grey"],
            urgent_border=colors["red"],
            rounded=False,
            highlight_method="line",
            highlight_color=colors["background"],
            this_current_screen_border=colors["pink"],
        ),
        get_line_sep(),
        widget.CurrentLayout(font="UbuntuNerd Bold"),
        get_line_sep(),
        widget.Prompt(),
        widget.TaskList(
            border=colors["grey"],
            borderwidth=0,
            highlight_method="block",
            padding=2,
            txt_floating=nf.icons["fa_window_restore"],
            txt_minimized=nf.icons["fa_window_minimize"],
            txt_maximized=nf.icons["fa_window_maximize"],
            max_title_width=250,
            title_width_method="uniform",
        ),
        widget.TextBox(
            # text="",
            text=nf.icons["fa_arrow_down"] + nf.icons["fa_arrow_up"],
            foreground=colors["green"],
            fontsize=11),
        widget.NetGraph(
            graph_color=colors["green"],
            fill_color=colors["grey"],
            border_color=colors["grey"],
            margin_y=4,
        ),
        get_line_sep(),
        widget.TextBox(
            # text="  ",
            text=nf.icons["fa_tachometer"],
            foreground=colors["orange"],
            fontsize=16),
        widget.CPUGraph(
            graph_color=colors["orange"],
            fill_color=colors["grey"],
            border_color=colors["grey"],
            margin_y=4,
        ),
        get_line_sep(),
        widget.TextBox(font="FontAwesome",
                       text="  ",
                       foreground=colors["purple"],
                       fontsize=16),
        widget.Memory(
            format='{MemUsed:.0f}M/{MemTotal:.0f}M',
            update_interval=1,
        ),
        get_line_sep(),
        widget.TextBox(font="FontAwesome",
                       text="  ",
                       foreground=colors["pink"],
                       fontsize=16),
        widget.Clock(foreground=colors_old[2],
                     background=colors_old[0],
                     format="%Y-%m-%d %H:%M"),
        get_line_sep(),
        widget.Systray(background=colors_old[0], icon_size=20, padding=4),
    ]
    return widgets_list
예제 #7
0
파일: config.py 프로젝트: pen0xf/dotfiles
    "borderwidth": 4,
    "rounded": False,
    "max_title_width": 200,
    "urgent_border": colorscheme["red"],
}

widgets = [
    widget.GroupBox(**group_box_config),
    widget.Prompt(),
    widget.TaskList(**task_list_config),
    # widget.TextBox("default config", name="default"),
    widget.Sep(**sep_config),
    widget.Systray(),
    widget.Sep(**sep_config),
    widget.Net(interface=get_interface(), update_interval=2),
    widget.NetGraph(bandwidth_type="down", interface=get_interface(), **graph_config),
    widget.Sep(**sep_config),
    widget.TextBox("CPU:"),
    widget.CPUGraph(core='all', **graph_config),
    widget.Sep(**sep_config),
    widget.TextBox("🔊"),
    widget.Volume(update_interval=1),
]

if os.path.exists("/sys/class/power_supply/BAT0/present"):
    widgets.extend([
        widget.Sep(**sep_config),
        widget.Battery(low_foreground=colorscheme["red"],
                       discharge_char="🗲",
                       charge_char="🔌")
    ])
예제 #8
0
          ["#74438f", "#74438f"], # border line color for 'other tabs' and color for 'odd widgets'
          ["#4f76c7", "#4f76c7"], # color for the 'even widgets'
          ["#e1acff", "#e1acff"]] # window name


screens = [
    Screen(
        top=bar.Bar(
            [
                widget.CurrentLayout(),
                widget.GroupBox(disable_drag = True),
                widget.Prompt(),
                widget.WindowName(),
                widget.Clock(format='%Y-%m-%d %a %H:%M:%S'),
                widget.Net(background="111155", frequency=2),
                widget.NetGraph(background="111155", frequency=2),
            ],
            size=24,
        ),
    ),
    Screen(
        top=bar.Bar(
            [
                widget.CurrentLayout(),
                widget.GroupBox(disable_drag = True),
                widget.Prompt(),
                widget.WindowName(),
                widget.Systray(),
                widget.Clock(format='%Y-%m-%d %a %H:%M:%S'),
                widget.Clock(format='Z:%H', timezone="UTC"),
                widget.CPUGraph(
예제 #9
0
     bottom=bar.Bar(
         [
             widget.GroupBox(invert_mouse_wheel=True),
             widget.Prompt(),
             widget.TaskList(),
             widget.CurrentLayout(),
             widget.Systray(),
             widget.Sep(),
             widget.TextBox(text="龍", padding=1),
             widget.CPUGraph(
                 width=graph_width, samples=graph_width * 2, padding=0),
             widget.TextBox(text="", padding=1),
             widget.MemoryGraph(
                 width=graph_width, samples=graph_width * 2, padding=0),
             widget.TextBox(text="", padding=1),
             widget.NetGraph(
                 width=graph_width, samples=graph_width * 6, padding=0),
             widget.Sep(),
             widget.Clock(format='%a %d/%m %H:%M'),
             #                widget.YahooWeather(
             #                    coordinates=dict(latitude=52.2668, longitude=4.74894),
             #                    format='☔{current_observation_atmosphere_humidity} ⚟{current_observation_wind_speed} {forecasts_0_text} {current_observation_condition_symbol} {forecasts_0_low}/{forecasts_0_high}° ⇒ {forecasts_1_low}/{forecasts_1_high}°{units_temperature}',
             #                    ),
             #                widget.PulseVolume(),
         ],
         24,
     ), ),
 Screen(
     bottom=bar.Bar(
         [
             widget.CurrentLayout(),
             widget.GroupBox(),
예제 #10
0
파일: config.py 프로젝트: mkemorgn/.config
 widget.Spacer(length=5),
 widget.MemoryGraph(
     border_color=COLS["blue_2"],
     graph_color=COLS["blue_2"],
     border_width=1,
     line_width=1,
     type="line",
     width=50,
     **FONT_PARAMS,
 ),
 widget.Spacer(length=5),
 widget.NetGraph(
     border_color=COLS["green_1"],
     graph_color=COLS["green_1"],
     border_width=1,
     line_width=1,
     type="line",
     width=50,
     **FONT_PARAMS,
 ),
 widget.Spacer(length=5),
 widget.Wlan(
     disconnected_message='Wifi Off',
     format='{essid} | Strength:{percent:2.0%}',
     interface='wlan0',
     update_interval=10,
     mouse_callbacks={'Button1': wifi_list},
     **FONT_PARAMS,
 ),
 #battery widget
 ShellScript(
예제 #11
0
            widget.GroupBox(fontsize=10),
            widget.WindowName(),
            widget.Sep(),
            widget.CPUGraph(samples=50,
                            line_width=1,
                            width=50,
                            graph_color='FF2020',
                            fill_color='C01010'),
            widget.MemoryGraph(samples=50,
                               line_width=1,
                               width=50,
                               graph_color='0066FF',
                               fill_color='001188'),
            widget.NetGraph(samples=50,
                            line_width=1,
                            width=50,
                            interface="eth0",
                            graph_color='22FF44',
                            fill_color='11AA11'),
            widget.Systray(),
            widget.Prompt(),
            widget.Clock('%Y-%m-%d %a %I:%M %p', fontsize=12),
        ],
        25,
    ), ),
]


@hook.subscribe.startup
def dvorak():
    os.system("setxkbmap -layout es -variant dvorak")
예제 #12
0
     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']),
 ],
                24,
                background=colors['00']),
 top=bar.Bar([
     widget.WindowName(font=_top['fontname'],
                       foreground=_top['foreground']),
     widget.Systray(icon_size=24),
예제 #13
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=COLS["deus_1"])

    blocks = [
        # Marker for the start of the groups to give a nice bg: ◢■■■■■■■◤
        widget.TextBox(
            font="Arial",
            foreground=COLS["dark_4"],
            # font="Arial", foreground=COLS["deus_3"],
            text="◢",
            fontsize=50,
            padding=-1),
        widget.GroupBox(
            other_current_screen_border=COLS["orange_0"],
            this_current_screen_border=COLS["blue_0"],
            # this_current_screen_border=COLS["deus_2"],
            other_screen_border=COLS["orange_0"],
            this_screen_border=COLS["blue_0"],
            # this_screen_border=COLS["deus_2"],
            highlight_color=COLS["blue_0"],
            # highlight_color=COLS["deus_2"],
            urgent_border=COLS["red_1"],
            background=COLS["dark_4"],
            # background=COLS["deus_3"],
            highlight_method="line",
            inactive=COLS["dark_2"],
            active=COLS["light_2"],
            disable_drag=True,
            borderwidth=2,
            **FONT_PARAMS,
        ),
        # Marker for the end of the groups to give a nice bg: ◢■■■■■■■◤
        widget.TextBox(
            font="Arial",
            foreground=COLS["dark_4"],
            # font="Arial", foreground=COLS["deus_3"],
            text="◤ ",
            fontsize=50,
            padding=-5),
        # Show the title for the focused window
        widget.WindowName(**FONT_PARAMS),
        # Allow for quick command execution
        widget.Prompt(
            cursor_color=COLS["light_3"],
            # ignore_dups_history=True,
            bell_style="visual",
            prompt="λ : ",
            **FONT_PARAMS),
        _separator(),
        # Resource usage graphs
        widget.CPUGraph(border_color=COLS["yellow_1"],
                        graph_color=COLS["yellow_1"],
                        border_width=1,
                        line_width=1,
                        type="line",
                        width=50,
                        **FONT_PARAMS),
        widget.MemoryGraph(border_color=COLS["blue_2"],
                           graph_color=COLS["blue_2"],
                           border_width=1,
                           line_width=1,
                           type="line",
                           width=50,
                           **FONT_PARAMS),
        widget.NetGraph(border_color=COLS["green_1"],
                        graph_color=COLS["green_1"],
                        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
        ShellScript(fname="battery.sh",
                    update_interval=60,
                    markup=True,
                    padding=1,
                    **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),
        _separator(),
        # Current time
        widget.Clock(format="%Y-%m-%d %a %I:%M %p", **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),
    ]

    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=COLS["dark_2"]))
예제 #14
0
             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='wls3',
                 **Widget.graph),
 # widget.HDDBusyGraph(device='sda', **Widget.graph),
 #  widget.HDDBusyGraph(device='sdb', **Widget.graph),
             widget.ThermalSensor(metric=True, threshold=79),
             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='Beijing, CN', **Widget.weather),
 #widget.Wlan(interface='wls3'),
예제 #15
0
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)]

# Drag floating layouts.
mouse = [
    Drag(["mod1"],
         "Button1",
         lazy.window.set_position_floating(),
         start=lazy.window.get_position()),
    Drag(["mod1"],
예제 #16
0
def init_widgets():
    return [
        # widget.TextBox(
        #     text="",
        #     foreground=colors[1],
        #     fontsize=20,
        #     padding=20,
        # ),
        widget.Sep(
            linewidth=0,
            foreground=colors[2],
            padding=20,
            size_percent=40,
        ),
        widget.GroupBox(
            font="Hack Nerd Font",
            **group_box_settings,
            fontsize=12,
        ),
        widget.Sep(
            linewidth=0,
            foreground=colors[2],
            padding=10,
            size_percent=40,
        ),
        widget.CurrentLayoutIcon(
            custom_icon_paths=[os.path.expanduser("~/.config/qtile/icons")],
            foreground=colors[1],
            padding=-2,
            scale=0.45,
        ),
        widget.Sep(
            linewidth=0,
            foreground=colors[2],
            padding=10,
            size_percent=50,
        ),
        widget.Systray(padding=10, ),
        widget.CheckUpdates(
            foreground=colors[3],
            colour_have_updates=colors[3],
            distro="Ubuntu",
            display_format=" {updates}",
            padding=20,
            update_interval=300,
            mouse_callbacks={
                "Button1":
                lambda: qtile.cmd_spawn(
                    terminal + " -e sudo apt update -y && sudo apt upgrade -y")
            },
        ),
        widget.Spacer(),
        widget.Sep(
            linewidth=0,
            padding=25,
            size_percent=50,
        ),
        widget.TextBox(
            text=" ",
            foreground=colors[8],
            font="Font Awesome 5 Free Solid",
            fontsize=icon_size,
        ),
        widget.PulseVolume(
            foreground=colors[1],
            limit_max_volume="True",
            update_interval=0.1,
            mouse_callbacks={"Button3": open_pavu},
            fontsize=text_size,
        ),
        widget.Sep(
            linewidth=0,
            padding=25,
            size_percent=50,
        ),
        widget.TextBox(
            text="",
            font="Font Awesome 5 Free Solid",
            foreground=colors[1],
            fontsize=icon_size,
        ),
        widget.CPU(
            foreground=colors[1],
            update_interval=1,
            format="{load_percent: .0f} %",
            fontsize=text_size,
        ),
        widget.NetGraph(type="line", graph_color=colors[8], interface="wlo1"),
        widget.TextBox(
            text=" ",
            font="Font Awesome 5 Free Solid",
            fontsize=icon_size,
            foreground=colors[8],
        ),
        widget.Clock(
            format="%b %d",
            foreground=colors[1],
            fontsize=text_size,
        ),
        widget.Sep(
            linewidth=0,
            padding=25,
            size_percent=50,
        ),
        widget.TextBox(
            text=" ",
            font="Hack Nerd Font",
            foreground=colors[8],
            fontsize=14,
        ),
        widget.Clock(
            format="%H:%M",
            foreground=colors[1],
            fontsize=text_size,
        ),
        widget.Sep(
            linewidth=0,
            foreground=colors[1],
            padding=25,
            size_percent=50,
        ),
    ]
예제 #17
0
def init_widgets_list():
    prompt = "{0}@{1}: ".format(os.environ["USER"], socket.gethostname())
    widgets_list = [
        widget.GroupBox(font="Font Awesome 5 Free Solid",
                        fontsize=20,
                        margin_y=2,
                        margin_x=0,
                        padding_y=8,
                        padding_x=5,
                        borderwidth=0,
                        disable_drag=True,
                        active=colors[9],
                        inactive=colors[5],
                        rounded=True,
                        highlight_method="text",
                        this_current_screen_border=colors[8],
                        foreground=colors[2],
                        background=colors[1]),
        widget.Sep(linewidth=1,
                   padding=20,
                   foreground=colors[8],
                   background=colors[1]),
        #widget.CurrentLayout(
        #         font = "Noto Sans Bold",
        #         foreground = colors[5],
        #         background = colors[1]
        #         ),
        # widget.Net(
        #          font="Noto Sans",
        #          fontsize=12,
        #          interface="enp0s31f6",
        #          foreground=colors[2],
        #          background=colors[1],
        #          padding = 0,
        #          ),
        widget.NetGraph(
            font="Noto Sans",
            fontsize=12,
            bandwidth="down",
            interface="auto",
            fill_color=colors[2],
            foreground=colors[2],
            background=colors[1],
            graph_color=colors[2],
            border_color=colors[1],
            padding=0,
            border_width=1,
            line_width=1,
        ),
        widget.Sep(linewidth=1,
                   padding=20,
                   foreground=colors[8],
                   background=colors[1]),
        widget.WindowName(
            font="Ubuntu Mono Bold",
            fontsize=16,
            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
        #          ),
        # 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.Memory(
            font="Ubuntu Mono Bold",
            format='{MemUsed: .0f}{mm} /{MemTotal: .0f}{mm}',
            update_interval=1,
            fontsize=15,
            foreground=colors[2],
            background=colors[1],
        ),
        widget.Sep(linewidth=1,
                   padding=20,
                   foreground=colors[8],
                   background=colors[1]),
        widget.Clock(font="Ubuntu Mono Bold",
                     foreground=colors[5],
                     background=colors[1],
                     fontsize=16,
                     format=" %d-%m-%Y %H:%M "),
        widget.Sep(linewidth=1,
                   padding=20,
                   foreground=colors[8],
                   background=colors[1]),
        widget.Systray(background=colors[1], icon_size=20, padding=4),
        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.Battery(
            font="Ubuntu Mono Bold",
            format='{percent:2.0%}',
            update_interval=10,
            fontsize=16,
            foreground=colors[2],
            background=colors[1],
        ),
        widget.Sep(linewidth=1,
                   padding=10,
                   foreground=colors[1],
                   background=colors[1]),
    ]
    return widgets_list
예제 #18
0
            widget.CurrentLayoutIcon(scale=0.70),
            widget.Sep(**sep_defaults),
            widget.Systray(),
            widget.Sep(**sep_defaults),
            widget.TaskList(**tasklist_defaults),
            widget.Sep(**sep_defaults),
            widget.TextBox('', fontsize=18),
            widget.CheckUpdates(distro='Arch_checkupdates',
                                display_format='{updates}',
                                update_interval=180,
                                no_update_string='0'),
            widget.ThermalSensor(fmt='{}'),
            widget.TextBox(''),
            widget.CPUGraph(type='box'),
            widget.TextBox(''),
            widget.NetGraph(mouse_callbacks={'Button1': net_opts}),
        ],
                              23,
                              margin=[2, 5, 3, 5],
                              background=[color2, color1]), ),
    ]
else:
    screens = [
        Screen(
            top=bar.Bar([
                widget.CurrentLayoutIcon(scale=0.70),
                widget.GroupBox(**groupbox_defaults),
                widget.Prompt(prompt=' '),
                widget.Sep(**sep_defaults),
                widget.TaskList(**tasklist_defaults),
                widget.Chord(
예제 #19
0
                                other_current_screen_border=colors[0],
                                other_screen_border=colors[0],
                                foreground=colors[2]),
                widget.Prompt(),
                widget.WindowName(),
                widget.Chord(
                    chords_colors={
                        'launch': ("#2ABB9C", "#ffffff"),
                    },
                    name_transform=lambda name: name.upper(),
                ),
                #widget.TextBox("My Config", name="default"),
                #widget.TextBox("Press &lt;M-r&gt; to spawn", foreground="#d75f5f"),
                widget.Systray(),
                widget.NetGraph(fill_color=colors[3],
                                border_color=colors[3],
                                graph_color=colors[3]),
                widget.CapsNumLockIndicator(),
                widget.Sep(),
                widget.Clock(format='%d-%m-%Y'),
                widget.Sep(),
                widget.Clock(format="%a"),
                widget.Sep(),
                widget.Clock(format="%I:%M %p"),
                widget.Volume(emoji=True),
                widget.QuickExit(),
            ],
            24,
        ), ),
]
예제 #20
0
)

bolder_font = "DejaVu sans Bold"

extension_defaults = widget_defaults.copy()

screens = [
    Screen(top=bar.Bar(
        [
            widget.GroupBox(),
            widget.Prompt(),
            widget.Spacer(length=dpToPx(10)),
            widget.WindowName(),
            widget.CPUGraph(),
            widget.MemoryGraph(graph_color='85678f'),
            widget.NetGraph(graph_color='de935f'),
            GpuStatus(background=color_magenta),
            VpnStatus(background=color_cyan),
            CpuFreq(background=color_blue),
            widget.KeyboardLayout(background=color_green,
                                  configured_keyboards=['us', 'lt']),
            widget.Battery(background=color_yellow,
                           charge_char=u'↑',
                           discharge_char=u'↓'),
            widget.Backlight(
                background=color_red,
                backlight_name='intel_backlight',
            ),
            widget.ThermalSensor(background=color_magenta),
            widget.Wlan(interface='wlp59s0', background=color_cyan),
            widget.Volume(background=color_blue),
예제 #21
0
def top_bar(main=False):
    b = bar.Bar([
        *([
            w.CPUGraph(**GRAPH_OPTS,
                       _t_factory={
                           'background': 'CPU.bg',
                           'border_color': 'CPU.bg',
                           'graph_color': 'CPU',
                           'fill_color': 'CPU.f'
                       }),
            PwrLine(fontsize=N_BAR_HEIGHT,
                    _t_factory={
                        'left_color': 'CPU.bg',
                        'right_color': 'MEM.bg'
                    }),
            w.MemoryGraph(**GRAPH_OPTS,
                          _t_factory={
                              'background': 'MEM.bg',
                              'border_color': 'MEM.bg',
                              'graph_color': 'MEM',
                              'fill_color': 'MEM.f'
                          }),
            PwrLine(fontsize=N_BAR_HEIGHT,
                    _t_factory={
                        'left_color': 'MEM.bg',
                        'right_color': 'Bar.bg'
                    }),
            w.Wttr(location={'': ''},
                   format='%t %w\n%c%C',
                   fontsize=11,
                   _t_factory={
                       'background': 'Bar.bg',
                       'foreground': 'Text.bold'
                   }),
        ] if main else []),
        PwrLine(fontsize=N_BAR_HEIGHT,
                _t_factory={
                    'left_color': 'Bar.bg',
                    'right_color': 'GroupBox.bg'
                }),
        w.WindowName(fmt=' {}',
                     _t_factory={
                         'foreground': 'Text.bold',
                         'background': 'GroupBox.bg'
                     }),
        PwrLine(rtl=True,
                fontsize=N_BAR_HEIGHT,
                _t_factory={
                    'right_color': 'Bar.bg',
                    'left_color': 'GroupBox.bg'
                }), *([
                    w.Wttr(location={'': ''},
                           format='%m%M\n%z',
                           fontsize=11,
                           _t_factory={
                               'background': 'Bar.bg',
                               'foreground': 'Text.bold'
                           }),
                    PwrLine(rtl=True,
                            fontsize=N_BAR_HEIGHT,
                            _t_factory={
                                'right_color': 'IUP.bg',
                                'left_color': 'Bar.bg'
                            }),
                    w.NetGraph(**GRAPH_OPTS,
                               bandwidth_type='up',
                               _t_factory={
                                   'background': 'IUP.bg',
                                   'border_color': 'IUP.bg',
                                   'graph_color': 'IUP',
                                   'fill_color': 'IUP.f'
                               }),
                    PwrLine(rtl=True,
                            fontsize=N_BAR_HEIGHT,
                            _t_factory={
                                'left_color': 'IUP.bg',
                                'right_color': 'IDOWN.bg'
                            }),
                    w.NetGraph(**GRAPH_OPTS,
                               bandwidth_type='down',
                               _t_factory={
                                   'background': 'IDOWN.bg',
                                   'border_color': 'IDOWN.bg',
                                   'graph_color': 'IDOWN',
                                   'fill_color': 'IDOWN.f'
                               }),
                ] if main else [])
    ],
                N_BAR_HEIGHT,
                _t_factory={'background': 'Bar.bg'})
    return b
예제 #22
0
    font='Iosevka',
    fontsize=16,
    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()
           ],
예제 #23
0
def init_widgets_list():
    widgets_list = [
        widget.Sep(linewidth=0,
                   padding=6,
                   foreground=colors[2],
                   background=colors[0]),
        widget.GroupBox(font="Meslo",
                        fontsize=9,
                        margin_y=3,
                        margin_x=0,
                        padding_y=5,
                        padding_x=3,
                        borderwidth=3,
                        active=colors[2],
                        inactive=colors[2],
                        rounded=False,
                        highlight_color=colors[1],
                        highlight_method="line",
                        this_current_screen_border=colors[3],
                        this_screen_border=colors[4],
                        other_current_screen_border=colors[0],
                        other_screen_border=colors[0],
                        foreground=colors[2],
                        background=colors[0]),
        widget.Prompt(prompt=prompt,
                      font="Meslo",
                      padding=10,
                      foreground=colors[3],
                      background=colors[1]),
        widget.Sep(linewidth=0,
                   padding=40,
                   foreground=colors[2],
                   background=colors[0]),
        widget.WindowName(foreground=colors[6],
                          background=colors[0],
                          padding=0),
        widget.TextBox(text='â—¥',
                       background=colors[0],
                       foreground=colors[5],
                       padding=0,
                       fontsize=37),
        widget.TextBox(text=" 🌡",
                       padding=2,
                       foreground=colors[2],
                       background=colors[5],
                       fontsize=11),
        widget.ThermalSensor(foreground=colors[2],
                             background=colors[5],
                             threshold=90,
                             padding=5),
        widget.TextBox(text='â—¥',
                       background=colors[5],
                       foreground=colors[4],
                       padding=0,
                       fontsize=37),
        widget.CheckUpdates(
            update_interval=1800,
            foreground=colors[2],
            distro="Arch",
            mouse_callbacks={
                'Button1':
                lambda qtile: qtile.cmd_spawn(myTerm + ' -e sudo pacman -Syu')
            },
            background=colors[4]),
        widget.TextBox(text='â—¥',
                       background=colors[4],
                       foreground=colors[5],
                       padding=0,
                       fontsize=37),
        widget.TextBox(text=" 🖬",
                       foreground=colors[2],
                       background=colors[5],
                       padding=0,
                       fontsize=14),
        widget.Memory(foreground=colors[2],
                      background=colors[5],
                      mouse_callbacks={
                          'Button1':
                          lambda qtile: qtile.cmd_spawn(myTerm + ' -e htop')
                      },
                      padding=5),
        widget.TextBox(text='â—¥',
                       background=colors[5],
                       foreground=colors[4],
                       padding=0,
                       fontsize=37),
        #widget.Net(
        #         interface = "wlp2s0",
        #         format = '{down:<9}↓↑{up:<9}',
        #         font = 'Meslo',
        #         foreground = colors[2],
        #         background = colors[4],
        #         padding = 5,
        #         fontsize = 9
        #         ),
        widget.NetGraph(foreground=colors[2],
                        background=colors[4],
                        padding=5,
                        type='line',
                        border_width=0,
                        line_width=2,
                        graph_color=colors[2],
                        samples=100,
                        border_color=colors[4],
                        fill_color=colors[4]),
        widget.TextBox(text='â—¥',
                       background=colors[4],
                       foreground=colors[5],
                       padding=0,
                       fontsize=37),
        widget.TextBox(text=" Vol:",
                       foreground=colors[2],
                       background=colors[5],
                       padding=0),
        widget.Volume(foreground=colors[2], background=colors[5], padding=5),
        widget.TextBox(text='â—¥',
                       background=colors[5],
                       foreground=colors[4],
                       padding=0,
                       fontsize=37),
        widget.CurrentLayoutIcon(
            custom_icon_paths=[os.path.expanduser("~/.config/qtile/icons")],
            foreground=colors[0],
            background=colors[4],
            padding=0,
            scale=0.7),
        widget.TextBox(text=' â—¥',
                       background=colors[4],
                       foreground=colors[5],
                       padding=0,
                       fontsize=37),
        widget.Clock(foreground=colors[2],
                     background=colors[5],
                     format="%a, %b %d  [ %H:%M ]"),
        widget.Sep(linewidth=0,
                   padding=10,
                   foreground=colors[0],
                   background=colors[5]),
        # widget.TextBox(
        #          text = '',
        #          background = colors[5],
        #          foreground = colors[4],
        #          padding = 0,
        #          fontsize = 37
        #          ),
        # widget.Battery(
        #          foreground = colors[2],
        #          background = colors[4],
        #          ),
        #widget.Systray(
        #         background = colors[0],
        #         padding = 5
        #         ),
    ]
    return widgets_list
예제 #24
0
파일: config.py 프로젝트: yantene/config
    font='Arial',
    fontsize=16,
    padding=3,
)

screens = [
    Screen(top=bar.Bar(
        [
            widget.GroupBox(),
            widget.Prompt(),
            widget.WindowName(),
            widget.CPUGraph(line_width=2, width=50, graph_color='f8ff8c'),
            widget.MemoryGraph(line_width=2, width=50, graph_color='8cff8d'),
            widget.NetGraph(interface='wlp1s0',
                            bandwidth_type='down',
                            line_width=2,
                            width=50,
                            graph_color='8cfff8'),
            widget.NetGraph(interface='wlp1s0',
                            bandwidth_type='up',
                            line_width=2,
                            width=50,
                            graph_color='8c9aff'),
            widget.BatteryIcon(
                theme_path='/home/yantene/.config/qtile/battery-icons'),
            widget.Battery(format='{percent:2.0%}'),
            widget.Systray(),
            widget.Clock(format='%Y-%m-%d (%a) %p %I:%M'),
        ],
        30,
    ), ),
예제 #25
0
파일: config.py 프로젝트: howlcipher/qtile
 widget.CurrentLayout(foreground=colors[8]),
 widget.GroupBox(),
 widget.Prompt(),
 widget.WindowName(),
 widget.Chord(
     chords_colors={
         'launch': ("#ff0000", "#ffffff"),
     },
     name_transform=lambda name: name.upper(),
 ),
 # widget.TextBox("default config", name="default"),
 widget.TextBox(text=" Network:",
                foreground=colors[8],
                background=colors[5],
                padding=5),
 widget.NetGraph(forground=colors[1]),
 widget.TextBox(text=" CPU:",
                foreground=colors[8],
                background=colors[5],
                padding=5),
 widget.CPUGraph(),
 widget.TextBox(text=" Memory:",
                foreground=colors[8],
                background=colors[5],
                padding=5),
 widget.MemoryGraph(),
 # widget.TextBox("Press &lt;mod+shift+enter&gt; for menu", foreground=colors[3]),
 widget.Systray(padding=5),
 widget.Clock(foreground=colors[6],
              format='%A, %B %d  [ %H:%M ]'),
 widget.TextBox(text=" Vol:",
예제 #26
0
 Screen(top=bar.Bar(widgets=[
     widget.TextBox('', 'screen 1', **Theme.widget),
     widget.GroupBox(**Theme.groupbox),
     widget.WindowName(**Theme.widget),
     widget.TextBox('', 'cpu', **Theme.widget),
     widget.CPUGraph(
         graph_color='18BAEB', fill_color='1667EB.3', **Theme.graph),
     widget.TextBox('', 'mem', **Theme.widget),
     widget.MemoryGraph(
         graph_color='00FE81', fill_color='00B25B.3', **Theme.graph),
     widget.TextBox('', 'swap', **Theme.widget),
     widget.SwapGraph(
         graph_color='5E0101', fill_color='FF5656', **Theme.graph),
     widget.TextBox('', 'eth0', **Theme.widget),
     widget.NetGraph(graph_color='ffff00',
                     fill_color='4d4d00',
                     interface='eth0',
                     **Theme.graph),
     widget.Sep(**Theme.sep),
     widget.CurrentLayout(**Theme.widget),
     widget.Sep(**Theme.sep),
     widget.Systray(**Theme.systray),
     widget.Clock(fmt='%a %d %b %H:%M:%S', **Theme.widget)
 ],
                    **Theme.bar)),
 Screen(top=bar.Bar(widgets=[
     widget.TextBox('', 'screen 2', **Theme.widget),
     widget.GroupBox(**Theme.groupbox),
     widget.WindowName(**Theme.widget),
     widget.CurrentLayout(**Theme.widget)
 ],
                    **Theme.bar))
예제 #27
0
                widget.GroupBox(),
                widget.Prompt(prompt=prompt,
                              padding=10,
                              foreground=colors[3],
                              background=colors[1]),
                widget.WindowName(),
                widget.Chord(
                    chords_colors={
                        'launch': ("#ff0000", "#ffffff"),
                    },
                    name_transform=lambda name: name.upper(),
                ),
                #widget.CurrentLayout(),
                widget.CurrentLayout(
                    foreground=colors[2], background=colors[4], padding=5),
                widget.NetGraph(interface="auto", padding=5),
                widget.Volume(
                    foreground=colors[2], background=colors[5], padding=5),
                widget.Systray(),
                widget.ThermalSensor(foreground=colors[2],
                                     background=colors[5],
                                     threshold=90,
                                     padding=5),
                widget.Clock(foreground=colors[2],
                             background=colors[5],
                             format='%m-%d %a %I:%M %p'),

                #foreground = colors[2],background = colors[4]),
                widget.QuickExit(),
            ],
            24,
예제 #28
0
 widget.MemoryGraph(border_color=colors["green"],
                    graph_color=colors["green"],
                    background=colors["background"],
                    border_width=1,
                    line_width=1,
                    type="line",
                    width=100),
 separate(),
 widget.TextBox(text="",
                foreground=colors["cyan"],
                background=colors["background"],
                font="Font Awesome 5 Free Solid"),
 widget.NetGraph(border_color=colors["cyan"],
                 graph_color=colors["cyan"],
                 background=colors["background"],
                 border_width=1,
                 line_width=1,
                 type="line",
                 width=100),
 widget.Spacer(background=colors["background"]),
 separate(),
 CustomPomodoro(
     background=colors["background"],
     fontsize=20,
     color_active=colors["red"],
     color_break=colors["cyan"],
     color_inactive=colors["yellow"],
     timer_visible=False,
     prefix_active="",
     prefix_break="",
     prefix_inactive="",
예제 #29
0
        widget.TaskList(border=colors['blue'], borderwidth=1),
        widget.Mpd2(),
        widget.PulseVolume(update_interval=2),
        widget.TextBox('|'),
        widget.Systray(),
        widget.TextBox('|'),
        widget.ThermalSensor(),
        widget.TextBox('|'),
        widget.CPUGraph(graph_color=colors['green'],
                        border_color=colors['black'],
                        samples=30),
        widget.MemoryGraph(graph_color=colors['blue'],
                           border_color=colors['black'],
                           samples=30),
        widget.NetGraph(graph_color=colors['yellow'],
                        border_color=colors['black'],
                        samples=30),
        widget.Wlan(interface="wlp2s0"),
        widget.TextBox('|'),
        widget.Battery(notify_below=15),
        widget.TextBox('|'),
        widget.Clock(format='%Y-%m-%d %a %I:%M %p'),
        widget.Wallpaper(random=True, label='')
    ],
    28,
    background=colors['background'],
)

secondary = bar.Bar(
    [
        widget.GroupBox(active=colors['green'],
예제 #30
0
                font=FA4,
                fontsize=16,
            ),
            widget.CPUGraph(
                line_width=2,
                graph_color=teal,
                border_color=black,
            ),
            widget.TextBox(
                text="\uf176\uf175",
                font=FA4,
                fontsize=16,
            ),
            widget.NetGraph(
                line_width=2,
                graph_color=red,
                border_color=black,
            ),
            widget.Clock(
                format="%A %d %B, %H:%M",
                mouse_callbacks={"Button1": calendar},
            ),
            widget.CurrentLayoutIcon(scale=0.75, ),
        ],
        size=24,
        background=black,
    ))
]

# Other settings
dgroups_key_binder = None