Example #1
0
def init_widgets_list():
    widgets_list = [
              widget.Sep(
                       linewidth = 0,
                       padding = 6,
                       foreground = colors[2],
                       background = colors[0]
                       ),
              widget.Image(
                       foreground = colors[2],
                       background = colors[0],
                       filename = "~/dotfiles/qtile/icons/python-logo.png",
                       scale = "False",
                       mouse_callbacks = {'Button1': lambda: qtile.cmd_spawn(myTerm)}
                       ),
             widget.Sep(
                       linewidth = 0,
                       padding = 6,
                       foreground = colors[2],
                       background = colors[0]
                       ),
              widget.GroupBox(
                       font = "Fira Sans, Fira Sans Book",
                       fontsize = 9,
                       margin_y = 3,
                       margin_x = 0,
                       padding_y = 5,
                       padding_x = 3,
                       borderwidth = 3,
                       active = colors[2],
                       inactive = colors[7],
                       rounded = False,
                       highlight_color = colors[1],
                       highlight_method = "line",
                       this_current_screen_border = colors[6],
                       this_screen_border = colors [4],
                       other_current_screen_border = colors[6],
                       other_screen_border = colors[4],
                       foreground = colors[2],
                       background = colors[0]
                       ),
              widget.Prompt(
                       prompt = prompt,
                       font = "Ubuntu Mono",
                       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.Systray(
                       background = colors[0],
                       padding = 5
                       ),
              widget.Sep(
                       linewidth = 0,
                       padding = 6,
                       foreground = colors[0],
                       background = colors[0]
                       ),
              widget.TextBox(
                       text = '',
                       background = colors[0],
                       foreground = colors[4],
                       padding = 0,
                       fontsize = 37
                       ),
             widget.Net(
                       interface = "enp3s0",
                       format = '{down} ↓↑ {up}',
                       foreground = colors[2],
                       background = colors[4],
                       padding = 5
                       ),
              widget.TextBox(
                       text = '',
                       background = colors[4],
                       foreground = colors[5],
                       padding = 0,
                       fontsize = 37
                       ),
              widget.KeyboardLayout(
                       background = colors[5],
                       foreground = colors[2],
                       configured_keyboards = ['us', 'cz'],
                  mouse_callbacks = {'Button1': lambda: lazy.widget["keyboardlayout"].next_keyboard()},
              ),
              widget.CapsNumLockIndicator(
                       background = colors[5],
                       foreground = colors[2],
              ),
              widget.TextBox(
                       text='',
                       background = colors[5],
                       foreground = colors[4],
                       padding = 0,
                       fontsize = 37
                       ),
              widget.TextBox(
                       text = " ⟳",
                       padding = 2,
                       foreground = colors[2],
                       background = colors[4],
                       fontsize = 14
                       ),
              widget.CheckUpdates(
                       update_interval = 1800,
                       distro = "Arch_checkupdates",
                       display_format = "{updates} Updates",
                       foreground = colors[2],
                       mouse_callbacks = {'Button1': lambda: 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.cmd_spawn(myTerm + ' -e htop')},
                       padding = 5
                       ),
              widget.TextBox(
                       text='',
                       background = colors[5],
                       foreground = colors[4],
                       padding = 0,
                       fontsize = 37
                       ),
              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.CurrentLayout(
                       foreground = colors[2],
                       background = colors[4],
                       padding = 5
                       ),
              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 "
                       ),
              ]
    return widgets_list
Example #2
0
screens = [
    Screen(
        top=bar.Bar(
            [

       #-------------------- left --------------------#     

                widget.TextBox(" "),
                widget.GroupBox(
                    font = "PragmataPro Bold",
                    fontsize = 12,
                    padding_x = 5,
                    margin_x = 0,
                    active = WHITE,
                    inactive = GREY,
                    borderwidth = 3,
                    highlight_method = "line",
                    disable_drag = True,
                    this_current_screen_border = YELLOW,
                    highlight_color = [BLACK],
                ),
                widget.TextBox("  ᛝ  ",
                    font = "PragmataPro Bold",
                               ),
                widget.CPU(
                    format = '{load_percent}',
                    font = "PragmataPro Bold",
                    fontsize = 11,
                ),
                widget.TextBox(""),
Example #3
0
    padding=3,
)
extension_defaults = widget_defaults.copy()

screens = []

wallpaper_images = glob(os.path.expanduser("~/wallpapers/") + "*")
wallpaper_image = random.choice(wallpaper_images)

for screen_id in range(num_monitors):
    screen = Screen(
        wallpaper=wallpaper_image,
        wallpaper_mode="fill",
        bottom=bar.Bar(
            [
                widget.GroupBox(
                    visible_groups=[a + str(screen_id) for a in "1234567890"]),
                widget.Spacer(length=50),
                widget.WindowName(),
                widget.Spacer(),
                widget.Volume(),
                widget.Spacer(length=50),
                widget.Net(format="{down} ↓↑ {up}"),
                widget.Spacer(length=50),
                widget.TextBox(text="CPU: "),
                widget.ThermalSensor(tag_sensor="Tdie"),
                widget.CPU(format=" {load_percent}%"),
                widget.Spacer(length=50),
                widget.Memory(format="RAM: {MemPercent}%"),
                widget.Spacer(length=50),
                NvidiaSensors(format="GPU: {temp}°C {util}"),
                widget.Spacer(length=50),
Example #4
0
    layout.Stack(num_stacks=2, border_focus=MAIN_THEME_COLOR),
    layout.Max(border_focus=MAIN_THEME_COLOR),
]

widget_defaults = dict(
    font='sans',
    fontsize=12,
    padding=3,
)
extension_defaults = widget_defaults.copy()

screens = [
    Screen(
        bottom=bar.Bar(
            [
                widget.GroupBox(this_current_screen_border=MAIN_THEME_COLOR, hide_unused=True, use_mouse_wheel=False),
                widget.Spacer(bar.STRETCH),

                widget.Systray(),
                widget.Clock(format='%d-%m-%Y  %H:%M %p'),
            ],
            24,
	    background="#1d1d1d",
        ),
        top=bar.Bar([
            widget.Prompt(),
            widget.WindowName(font="adobe-source-code-pro", fontsize=11),

            widget.CurrentLayout(font="adobe-source-code-pro", fontsize=10)
        ],
            15)
Example #5
0
widget_defaults = dict(
    font='Overpass Mono',
    fontsize=12,
    padding=8,
)
extension_defaults = widget_defaults.copy()

screens = [
    Screen(bottom=bar.Bar([
        widget.CurrentLayout(foreground=my_nord_theme['nord4'], ),
        widget.GroupBox(
            visible_groups=[group.name for group in groups],
            active=my_nord_theme['nord14'],
            inactive=my_nord_theme['nord3'],
            block_highlight_text_color=my_nord_theme['nord1'],
            rounded=False,
            highlight_method="block",
            this_current_screen_border=my_nord_theme['nord7'],
        ),
        widget.Spacer(length=bar.STRETCH, ),
        widget.Systray(margin=8),
        widget.Spacer(length=12, padding=4),
        widget.Pacman(foreground=my_nord_theme['nord1'],
                      background=my_nord_theme['nord13'],
                      unavailable=my_foreground),
        widget.Clock(
            format='%Y-%m-%d %a %I:%M %p',
            foreground=my_foreground,
            background=my_nord_theme['nord1'],
        ),
Example #6
0
widget_defaults = dict(
    font='Hack Nerd Font Mono',
    fontsize=14,
    padding=3,
)
extension_defaults = widget_defaults.copy()

screens = [
    Screen(
        top=bar.Bar(
            [
                widget.Spacer(length = 10),
                widget.CurrentLayoutIcon(scale = 0.7),
                widget.CurrentLayout(**widget_defaults),
                widget.GroupBox(borderwidth=2, inactive='969696', this_current_screen_border='eee8d5', this_screen_border='eee8d5', **widget_defaults),
                widget.Prompt(**widget_defaults),
                widget.Spacer(),
                widget.CheckUpdates(
                       **widget_defaults,
                       update_interval = 1800,
                       distro = 'Arch_yay',
                       custom_command = 'checkupdates+aur',
                       display_format = ' {updates}',
                       colour_have_updates=GREEN,
                       execute = 'kitty -e yay -Syu',
                       ),
                widget.Mpris2(
                    name='spotify',
                    objname="org.mpris.MediaPlayer2.spotify",
                    display_metadata=['xesam:title', 'xesam:artist'],
Example #7
0
]

widget_defaults = dict(
    font='Ubuntu Mono',
    fontsize=16,
    padding=3,
)

screens = [
    Screen(
        top=bar.Bar(
            [
                widget.GroupBox(
                    font="Ubuntu Bold",
                    this_screen_border='#e1acff',  #Purple
                    this_current_screen_border='#09E397',  #Hot Green
                    other_current_screen_border='#09E397',  #Hot Green
                    other_screen_border='#e1acff'  #Purple
                ),
                widget.Prompt(),
                widget.WindowName(),
                #widget.TextBox("default config", name="default"),
                widget.Systray(),
                widget.Clock(format='%Y-%m-%d %a %I:%M %p'),
            ],
            30,
        ), ),
]

# Drag floating layouts.
mouse = [
Example #8
0
)


extension_defaults = widget_defaults.copy()

# =================================
# Screen Settings
screens = [
    Screen(
        bottom = bar.Bar(
            [
                widget.Image(
                    filename="~/0ROOT/glider.png",
                    mouse_callbacks={'Button1': func_to_open_menu}
                ),
                widget.GroupBox(**widget_defaults),
				widget.Prompt(**widget_defaults),
				widget.Systray(**widget_defaults),
				widget.Clock(**widget_defaults, format='%Y/%m/%d %A %I:%M %p'),
                widget.Battery(**widget_defaults, battery=0),
                widget.Memory(**widget_defaults),
                widget.Net(
                    **widget_defaults,
                    interface='wlp3s0',
                    format='{down} ud {up}',
                ),
            ],
            24,
        ),
        wallpaper="~/0ROOT/RoadToShambala.jpg",
		wallpaper_mode="fill",
Example #9
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,
        ),
    ]
Example #10
0
screens = [
    Screen(
        top=bar.Bar(
            [
                widget.TextBox(
                    "",
                    fontsize=38,
                    foreground=gruvbox_colors["bg"],
                    background=gruvbox_colors["orange"]
                ),
                widget.GroupBox(
                    urgent_border=gruvbox_colors["red"],
                    active=gruvbox_colors["bg_blue"],
                    foreground=gruvbox_colors["bg"],
                    this_current_screen_border=gruvbox_colors["blue"],
                    background=gruvbox_colors["yellow"],
                    other_screen_border=gruvbox_colors["purple"],
                    this_screen_border=gruvbox_colors["purple"],
                    other_current_screen_border=gruvbox_colors["blue"],
                    fontsize=hidpi_monitor_settngs["fontsize"]),
                widget.TextBox(
                    "",
                    fontsize=38,
                    foreground=gruvbox_colors["orange"],
                ),
                widget.WindowName(
                    foreground=gruvbox_colors["fg"],
                    fontsize=hidpi_monitor_settngs["fontsize"]),
                widget.TextBox(
                    "",
                    fontsize=38,
Example #11
0
    #layout.VerticalTile(**layout_theme),
    #layout.Zoomy(**layout_theme),
]

widget_defaults = dict(font='JetBrainsMono Nerd Font', fontsize=12, padding=10)

extension_defaults = widget_defaults.copy()
sep_padding = 4

screens = [
    Screen(top=bar.Bar(
        [
            widget.CurrentLayoutIcon(**widget_defaults),
            widget.GroupBox(highlight_color=colors[12],
                            this_current_screen_border=colors[6],
                            highlight_method="line",
                            margin_x=0,
                            **widget_defaults),
            widget.WindowName(**widget_defaults),
            widget.KeyboardLayout(
                fmt=' {}', layout_groups=['us', 'es'], **widget_defaults),
            widget.Sep(padding=sep_padding),
            widget.CheckUpdates(fmt=' {}',
                                display_format='{updates}',
                                colour_have_updates=colors[7],
                                colour_no_updates=colors[1],
                                distro='Arch',
                                **widget_defaults),
            widget.Sep(padding=sep_padding),
            widget.Mpd2(foreground=colors[5], **widget_defaults),
            widget.Sep(padding=sep_padding),
Example #12
0
    # layout.Zoomy(),
]

widget_defaults = dict(
    font='Cantarell',
    fontsize=15,
    padding=3,
)
extension_defaults = widget_defaults.copy()

screens = [
    Screen(top=bar.Bar(
        [
            widget.CurrentLayout(foreground="#dde7c7"),
            widget.GroupBox(active="#80b918",
                            block_highlight_text_color="#eeef20",
                            borderwidth=0,
                            disable_drag=True),
            widget.Prompt(),
            widget.Spacer(),
            widget.Chord(
                chords_colors={
                    'launch': ("#ff0000", "#ffffff"),
                },
                name_transform=lambda name: name.upper(),
            ),
            widget.CPU(format=(" {freq_current}GHz {load_percent}%"),
                       foreground="#00b2ca"),
            widget.Sep(),
            widget.Memory(foreground="#da2c38",
                          format=" {MemUsed}M  {SwapUsed}M"),
            widget.Sep(),
Example #13
0
has_battery = False

if len(os.listdir('/sys/class/power_supply')) > 0:
    has_battery = True

base_widgets = [
    widget.CurrentLayoutIcon(
        scale=0.6,
        padding=8,
    ),
    widget.GroupBox(
        hide_unused=True,
        disable_drag=True,
        active=colors["bar-widget-group-active"],
        inactive=colors["bar-widget-group-inactive"],
        this_current_screen_border=colors["bar-accent"],
        highlight_color=[colors["bar-bg"], colors["bar-bg"]],
        highlight_method="line",
    )
]

widgets = base_widgets + [
    widget.Prompt(),
    widget.Spacer(),
    widget.Chord(
        chords_colors={
            'launch': ("#ff0000", "#ffffff"),
        },
        name_transform=lambda name: name.upper(),
    ),
Example #14
0

myGroupBoxProps = dict(
    borderwidth=2,
    this_current_screen_border='#31e710',
    this_screen_border='#bababa',
    other_screen_border='#bababa'
)

# Bar setup
myBarsPrimary = [
    widget.Volume(device='pulse'),
    widget.Sep(),
    widget.CurrentLayout(),
    widget.Sep(),
    widget.GroupBox(**myGroupBoxProps),
    widget.Sep(),
    widget.WindowCount(fmt='# {}'),
    widget.Sep(),
    widget.TaskList(title_width_method='uniform', padding=1),
    widget.Systray(),
    widget.StatusNotifier(),
    widget.Chord(
        chords_colors={
            'launch': ("#ff0000", "#ffffff"),
        },
        name_transform=lambda name: name.upper(),
    ),
    widget.Sep(),
    widget.Clock(format='%Y-%m-%d %a %I:%M %p'),
    widget.Sep(),
Example #15
0
def init_widgets_list():
    widgets_list = [
        widget.Sep(linewidth=0,
                   padding=6,
                   foreground=colors[2],
                   background=colors[0]),
        widget.Image(filename="~/.config/qtile/icons/python.png",
                     mouse_callbacks={
                         'Button1': lambda qtile: qtile.cmd_spawn('dmenu_run')
                     }),
        widget.GroupBox(font="Ubuntu Bold",
                        fontsize=11,
                        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="Ubuntu Mono",
                      padding=10,
                      foreground=colors[3],
                      background=colors[1]),
        widget.CurrentLayoutIcon(
            custom_icon_paths=[os.path.expanduser("~/.config/qtile/icons")],
            foreground=colors[0],
            background=colors[8],
            padding=0,
            scale=0.7),
        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[4],
        #        padding = 0,
        #        fontsize = 37
        #        ),
        ##widget.TextBox(
        ##        text = " ₿",
        ##        padding = 0,
        ##        foreground = colors[2],
        ##        background = colors[4],
        ##        fontsize = 12
        ##        ),
        #widget.BitcoinTicker(
        #        foreground = colors[2],
        #        background = colors[4],
        #        padding = 4
        #        ),
        ##widget.TextBox(
        ##        text = '',
        ##        background = colors[4],
        ##        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 = 65,
        #        padding = 5,
        #        tag_sensor = 'Package id 0',
        #        foreground_alert = colors[7]
        #        ),
        #widget.TextBox(
        #        text='',
        #        background = colors[5],
        #        foreground = colors[4],
        #        padding = 0,
        #        fontsize = 37
        #        ),
        #widget.TextBox(
        #        text = " ⟳",
        #        padding = 2,
        #        foreground = colors[2],
        #        background = colors[4],
        #        fontsize = 14
        #        ),
        #widget.Pacman(
        #        update_interval = 1800,
        #        foreground = colors[2],
        #        mouse_callbacks = {'Button1': lambda qtile: qtile.cmd_spawn(myTerm + ' -e sudo pacman -Syu')},
        #        background = colors[4]
        #        ),
        #widget.TextBox(
        #        text = "Updates",
        #        padding = 5,
        #        mouse_callbacks = {'Button1': lambda qtile: qtile.cmd_spawn(myTerm + ' -e sudo pacman -Syu')},
        #        foreground = colors[2],
        #        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 = "enp6s0",
        #        format = '{down} ↓↑ {up}',
        #        foreground = colors[2],
        #        background = colors[4],
        #        padding = 5
        #        ),
        #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.CurrentLayout(
        #        foreground = colors[2],
        #        background = colors[4],
        #        padding = 5
        #        ),
        #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.BatteryIcon(),
        #widget.Battery(
        #    background = colors[4],
        #    update_interval = 5,
        #    notify_below = 25,
        #    font = "Font Awesome 5 Solid",
        #    discharge_char = '',
        #    charge_char = ''
        #),
        #widget.Sep(
        #        linewidth = 0,
        #        padding = 10,
        #        foreground = colors[0],
        #        background = colors[5]
        #        ),
        #widget.Systray(
        #        background = colors[0],
        #        padding = 5
        #        ),
        widget.Image(background=colors[0],
                     filename='~/.config/qtile/icons/round_left.png'),
        widget.TextBox(text='',
                       padding=0,
                       font='Font Awesome 5 Solid',
                       background=colors[9],
                       fontsize=36,
                       foreground=colors[10]),
        widget.BitcoinTicker(background=colors[9],
                             padding=0,
                             format='{} ',
                             foreground='#f29c13'),
        widget.Image(background=colors[0],
                     filename='~/.config/qtile/icons/round_right.png'),
        widget.TextBox(text="  ", fontsize=20, background=colors[0]),
        widget.Image(background=colors[0],
                     filename='~/.config/qtile/icons/round_left.png'),
        widget.TextBox(text='',
                       font='Font Awesome 5 Solid',
                       fontsize=15,
                       background=colors[9],
                       foreground=colors[15]),
        widget.Wlan(background=colors[9],
                    disconnected_message='Off',
                    update_interval=5,
                    interface='wlp2s0',
                    foreground=colors[15],
                    format='{quality}/\/70'),
        widget.Image(background=colors[0],
                     filename='~/.config/qtile/icons/round_right.png'),
        widget.TextBox(text="  ", fontsize=20, background=colors[0]),
        widget.Image(background=colors[0],
                     filename='~/.config/qtile/icons/round_left.png'),
        widget.TextBox(text='',
                       font='Font Awesome 5 Solid',
                       fontsize=15,
                       background=colors[9],
                       foreground=colors[17]),
        widget.PulseVolume(background=colors[9],
                           foreground=colors[17],
                           limit_max_volume='True'),
        widget.Image(background=colors[0],
                     filename='~/.config/qtile/icons/round_right.png'),
        widget.TextBox(text="  ", fontsize=20, background=colors[0]),
        widget.Image(background=colors[0],
                     filename='~/.config/qtile/icons/round_left.png'),
        widget.TextBox(font='Font Awesome 5 Solid',
                       text='',
                       background=colors[9],
                       foreground=colors[12]),
        widget.CPU(background=colors[9],
                   padding=5,
                   foreground=colors[12],
                   format='F:{freq_current}GHz__U:{load_percent}%'),
        widget.TextBox(font='Font Awesome 5 Solid',
                       text='',
                       background=colors[9],
                       foreground=colors[12]),
        widget.ThermalSensor(background=colors[9],
                             tag_sensor='Package id 0',
                             threshold=65,
                             foreground_alert=colors[7],
                             foreground=colors[12]),
        widget.Image(background=colors[0],
                     filename='~/.config/qtile/icons/round_right.png'),
        widget.TextBox(text="  ", fontsize=20, background=colors[0]),
        widget.Image(background=colors[0],
                     filename='~/.config/qtile/icons/round_left.png'),
        widget.TextBox(text='',
                       font='Font Awesome 5 Solid',
                       fontsize=15,
                       background=colors[9],
                       foreground=colors[15]),
        widget.Memory(background=colors[9],
                      foreground=colors[15],
                      format='{MemUsed}M',
                      update_interval=5),
        widget.Image(background=colors[0],
                     filename='~/.config/qtile/icons/round_right.png'),
        widget.TextBox(text="  ", fontsize=20, background=colors[0]),
        widget.Image(background=colors[0],
                     filename='~/.config/qtile/icons/round_left.png'),
        widget.BatteryIcon(background=colors[9]),
        widget.Battery(background=colors[9],
                       font='Font Awesome 5 Solid',
                       notify_below=30,
                       charge_char='',
                       discharge_char='',
                       full_char='',
                       show_short_text=False,
                       update_interval=5,
                       foreground=colors[13]),
        widget.Image(background=colors[0],
                     filename='~/.config/qtile/icons/round_right.png'),
        widget.TextBox(text="   ", fontsize=20, background=colors[0]),
        widget.Image(background=colors[0],
                     filename='~/.config/qtile/icons/round_left.png'),
        widget.Clock(  # calendar
            background=colors[9],
            format="%A, %d %B",
            foreground=colors[14]),
        widget.Image(background=colors[0],
                     filename='~/.config/qtile/icons/round_right.png'),
        widget.TextBox(text="", fontsize=20, background=colors[0]),
        widget.Image(background=colors[0],
                     filename='~/.config/qtile/icons/round_left.png'),
        widget.Clock(  # simple clock
            background=colors[9], foreground=colors[14]),
        widget.Image(background=colors[0],
                     filename='~/.config/qtile/icons/round_right.png'),
        widget.TextBox(text="  ", fontsize=20, background=colors[0]),
        widget.Image(background=colors[0],
                     filename='~/.config/qtile/icons/round_left.png'),
        widget.Systray(background=colors[9], padding=5),
        widget.Image(background=colors[0],
                     filename='~/.config/qtile/icons/round_right.png'),
    ]
    return widgets_list
Example #16
0
def init_widgets_list():
    widgets_list = [
        widget.Sep(linewidth=0,
                   padding=6,
                   foreground=colors[2],
                   background=colors[0]),
        widget.Image(
            filename="~/.config/qtile/icons/haskell.png",
            mouse_callbacks={
                'Button1':
                lambda qtile: qtile.cmd_spawn(
                    'rofi -modi run,drun -show drun -location 7 -xoffset 5 -yoffset -450 -line-padding 4 -columns 1 -width 20 -lines 10 -padding 25 -hide-scrollbar -show-icons -drun-icon-theme'
                )
            }),
        widget.Sep(linewidth=0,
                   padding=10,
                   foreground=colors[2],
                   background=colors[0]),
        widget.GroupBox(font="JetBrainsMono Nerd Font Mono",
                        fontsize=16,
                        margin_y=2,
                        margin_x=0,
                        padding_y=5,
                        padding_x=5,
                        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="JetBrainsMono Nerd Font Mono",
                      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=" BL:",
                       foreground=colors[2],
                       background=colors[4],
                       padding=0,
                       fontsize=14),
        widget.Backlight(foreground=colors[2],
                         background=colors[4],
                         padding=5,
                         backlight_name="intel_backlight",
                         brightness_file="brightness"),
        widget.TextBox(text=" BAT:",
                       foreground=colors[2],
                       background=colors[5],
                       padding=0),
        widget.Battery(foreground=colors[2], background=colors[5], padding=5),
        widget.TextBox(text=" MEM:",
                       foreground=colors[2],
                       background=colors[4],
                       padding=0,
                       fontsize=14),
        widget.Memory(foreground=colors[2],
                      background=colors[4],
                      mouse_callbacks={
                          'Button1':
                          lambda qtile: qtile.cmd_spawn(myTerm + ' -e ytop')
                      },
                      padding=5),
        widget.TextBox(text=" VOL:",
                       foreground=colors[2],
                       background=colors[5],
                       padding=0),
        widget.PulseVolume(foreground=colors[2],
                           background=colors[5],
                           padding=5),
        widget.CurrentLayoutIcon(
            custom_icon_paths=[os.path.expanduser("~/.config/qtile/icons")],
            foreground=colors[0],
            background=colors[4],
            padding=0,
            scale=0.7),
        widget.CurrentLayout(foreground=colors[2],
                             background=colors[4],
                             padding=5),
        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.Systray(background=colors[0], padding=5),
Example #17
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(
            format='{down} ↓↑ {up}',
            font="Noto Sans",
            fontsize=12,
            interface="enp5s0",
            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.Battery(
        #          font="Noto Sans",
        #          update_interval = 10,
        #          fontsize = 12,
        #          foreground = colors[5],
        #          background = colors[1],
        #          ),
        widget.TextBox(font="FontAwesome",
                       text="  ",
                       foreground=colors[4],
                       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 = 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",
        #          format = '{MemUsed}M/{MemTotal}M',
        #          update_interval = 1,
        #          fontsize = 12,
        #          foreground = colors[5],
        #          background = colors[1],
        #         ),
        # 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.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
Example #18
0
    # layout.Zoomy(),
]

widget_defaults = dict(font='sans',
                       fontsize=12,
                       padding=5,
                       background=backgroundColor,
                       foreground=foregroundColor)
extension_defaults = widget_defaults.copy()

screens = [
    Screen(top=bar.Bar(
        [
            widget.GroupBox(inactive=foregroundColor,
                            this_current_screen_border=magenta,
                            this_screen_border=magenta,
                            other_current_screen_border=yellow,
                            other_screen_border=yellow),
            widget.WindowName(),
            widget.CPU(format=' {load_percent}%',
                       background=yellow,
                       foreground=backgroundColor),
            widget.Memory(format='{MemUsed}M',
                          background=green,
                          foreground=backgroundColor),
            widget.Clock(format='%a %d/%m/%Y | %I:%M %p',
                         background=blue,
                         foreground=backgroundColor),
            widget.Systray(background=magenta, foreground=backgroundColor),
            widget.TextBox(text=" ", background=magenta, width=3),
            widget.Battery(show_short_text=False,
Example #19
0
widget_defaults = dict(
    font='sans',
    fontsize=12,
    padding=3,
)
extension_defaults = widget_defaults.copy()

screens = [
    Screen(
        top=bar.Bar(
            [   widget.Spacer(4),
                widget.GroupBox(inactive='#FFFFFF' ,
                                foreground='#03FF00',
                                active='#A28943',
                                highlight_method='block' ,
                                this_current_screen_border='#5317AC',
                                block_highlight_text_color='#344FAC'
                               ),

                widget.Prompt(),
                widget.WindowName(),
                widget.Chord(
                    chords_colors={
                        'launch': ("#ff0000", "#ffffff") },
                    name_transform=lambda name: name.upper()
                            ),
                #widget.CurrentLayoutIcon(scale=0.7),
                #widget.Systray(),
                #widget.Memory()
                widget.Clock(format='%I:%M:%S %p',
Example #20
0

def next(qtile):
    sh.playerctl('next')


def previous(qtile):
    sh.playerctl('previous')


# SCREENS
if num_monitors() >= 2:
    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(
                chords_colors={
                    'launch': ("#ff0000", "#ffffff"),
                },
                name_transform=lambda name: name.upper(),
            ),
            widget.Sep(**sep_defaults),
            widget.KhalCalendar(longdateformat='%d/%m/%Y', remindertime=60),
            widget.Sep(**sep_defaults),
            widget.Volume(emoji=True, fontshadow=None, fontsize=22),
            widget.GenPollText(func=playerctl,
                               update_interval=1,
Example #21
0
                       background=colors[0])
extension_defaults = widget_defaults.copy()

screens = [
    Screen(
        top=bar.Bar(
            [
                #widget.Sep(
                #    linewidth = 0,
                #    padding = 9,
                #    ),
                widget.GroupBox(
                    rounded=False,
                    active=colors[7],  # Color of text of active group
                    inactive=colors[6],
                    highlight_method='block',
                    highlight_color=[colors[3], colors[4]],
                    # current_screen_border = colors[1],
                    this_current_screen_border=colors[1],
                ),
                widget.Sep(
                    linewidth=0,
                    padding=20,
                ),
                widget.Spacer(),
                widget.Net(
                    background=colors[4],
                    foreground=fgcolor,
                    format='{down}  {up} ',
                    disconnected_message='N/A',
                ),
Example #22
0
def init_widgets_list():
    widgets_list = [
              widget.Sep(
                       linewidth = 0,
                       padding = 6,
                       foreground = colors[2],
                       background = colors[0]
                       ),
              widget.GroupBox(
                       font = "Ubuntu Bold",
                       fontsize = 18,
                       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 = "Ubuntu Mono",
              #         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[4],
                       padding = 0,
                       fontsize = 32
                       ),
             widget.Battery(
                       foreground = colors[2],
                       background = colors[4],
                       padding = 5,
                       format = '{char} {percent:2.0%} {hour:d}:{min:02d}'
                       ),
              widget.TextBox(
                       text = '',
                       background = colors[4],
                       foreground = colors[5],
                       padding = 0,
                       fontsize = 32
                       ),
              widget.BitcoinTicker(
                       foreground = colors[2],
                       background = colors[5],
                       padding = 5
                       ),
              widget.TextBox(
                       text = '',
                       background = colors[5],
                       foreground = colors[4],
                       padding = 0,
                       fontsize = 37
                       ),
              widget.TextBox(
                       text = " 🌡",
                       padding = 2,
                       foreground = colors[2],
                       background = colors[4],
                       fontsize = 11
                       ),
              widget.ThermalSensor(
                       foreground = colors[2],
                       background = colors[4],
                       threshold = 90,
                       padding = 5
                       ),
              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 = "wlp3s0",
                       format = '{down} ↓↑ {up}',
                       foreground = colors[2],
                       background = colors[4],
                       padding = 5
                       ),
              widget.TextBox(
                       text = '',
                       background = colors[4],
                       foreground = colors[5],
                       padding = 0,
                       fontsize = 37
                       ),
              widget.CurrentLayoutIcon(
                       custom_icon_paths = [os.path.expanduser("~/.config/qtile/icons")],
                       foreground = colors[0],
                       background = colors[5],
                       padding = 0,
                       scale = 0.7
                       ),
              widget.CurrentLayout(
                       foreground = colors[2],
                       background = colors[5],
                       padding = 5
                       ),
              widget.TextBox(
                       text = '',
                       background = colors[5],
                       foreground = colors[4],
                       padding = 0,
                       fontsize = 37
                       ),
              widget.Clock(
                       foreground = colors[2],
                       background = colors[4],
                       format = "%A, %B %d  [ %H:%M ]"
                       ),
              widget.Sep(
                       linewidth = 0,
                       padding = 10,
                       foreground = colors[0],
                       background = colors[4]
                       ),
              widget.Systray(
                       background = colors[4],
                       padding = 5
                       ),
              ]
    return widgets_list
Example #23
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[7],
                        foreground=colors[6],
                        background=colors[0]),
        widget.Spacer(length=bar.STRETCH, ),
        widget.TextBox(font="FontAwesome",
                       text="  ",
                       foreground=colors[3],
                       background=colors[0],
                       padding=0,
                       fontsize=16),
        widget.Clock(foreground=colors[1],
                     background=colors[0],
                     fontsize=12,
                     format="%d-%m-%Y %H:%M:%S"),
        widget.Sep(linewidth=1,
                   padding=10,
                   foreground=colors[1],
                   background=colors[0]),
        widget.TextBox(font="FontAwesome",
                       text="  ",
                       foreground=colors[3],
                       background=colors[0],
                       padding=0,
                       fontsize=16),
        widget.Net(font="Noto Sans",
                   fontsize=12,
                   interface="wlp3s0",
                   foreground=colors[1],
                   background=colors[0],
                   padding=0,
                   format='{down} ↓↑ {up}'),
        widget.Sep(linewidth=1,
                   padding=10,
                   foreground=colors[1],
                   background=colors[0]),
        widget.TextBox(font="FontAwesome",
                       text="  ",
                       foreground=colors[3],
                       background=colors[0],
                       padding=0,
                       fontsize=16),
        widget.CPU(
            foreground=colors[1],
            background=colors[0],
            padding=0,
        ),
        widget.Sep(linewidth=1,
                   padding=10,
                   foreground=colors[3],
                   background=colors[0]),
        widget.TextBox(font="FontAwesome",
                       text="  ",
                       foreground=colors[3],
                       background=colors[0],
                       padding=0,
                       fontsize=16),
        widget.Memory(
            font="Noto Sans",
            format='{MemUsed}M {MemPercent}%',
            update_interval=1,
            fontsize=12,
            foreground=colors[1],
            background=colors[0],
        ),
        widget.Sep(linewidth=1,
                   padding=10,
                   foreground=colors[3],
                   background=colors[0]),
        arcobattery.BatteryIcon(padding=0,
                                scale=0.7,
                                y_poss=2,
                                theme_path=home +
                                "/.config/qtile/icons/battery_icons_horiz",
                                update_interval=1,
                                background=colors[0]),
        widget.Battery(
            font="Noto Sans",
            update_interval=1,
            fontsize=12,
            foreground=colors[1],
            background=colors[0],
            discharge_char='',
            format='{char} {percent:2.0%}',
        ),
        widget.Sep(linewidth=1,
                   padding=10,
                   foreground=colors[3],
                   background=colors[0]),
        widget.Systray(background=colors[9], icon_size=20, padding=4),
        widget.Sep(linewidth=1,
                   padding=10,
                   foreground=colors[1],
                   background=colors[0]),
        widget.CurrentLayoutIcon(font="Noto Sans Bold",
                                 foreground=colors[4],
                                 background=colors[0]),
    ]
    return widgets_list
Example #24
0
from libqtile import bar, widget
from customWidgets import Script
from colors import colors

bar = bar.Bar([
    widget.GroupBox(
       active = colors['color0'],
       borderwidth = 2,
       fontsize = 20,
       foreground = colors['color0'],
       highlight_color = [colors['color1'], colors['color1']],
       highlight_method = "line",
       inactive = colors['color7'],
       padding = 0,
       margin_x = 0,
       margin_y = 2,
       this_current_screen_border = colors['color0']
    ),
    widget.Spacer(length = 5),
    widget.Sep( foreground = colors['color7'], size_percent = 70),
    widget.CurrentLayout(
        font = "monospace",
        fontsize = 15,
        foreground = colors['color0'],
        padding = 3,
        margin_x = 0,
        margin_y = 0
    ),
    widget.Sep( foreground = colors['color7'], size_percent = 70),
    widget.WindowName(
        font = "monospace",
Example #25
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"),
               left=bar.Gap(16),
               right=bar.Gap(20),
               x=0,
               y=0,
               width=600,
               height=480),
        Screen(top=bar.Bar(
            [widget.GroupBox(),
             widget.WindowName(),
             widget.Clock()],
            30,
        ),
               bottom=bar.Gap(24),
               left=bar.Gap(12),
               x=600,
               y=0,
               width=300,
               height=580),
        Screen(top=bar.Bar(
            [widget.GroupBox(),
             widget.WindowName(),
             widget.Clock()],
            30,
        ),
               bottom=bar.Gap(16),
               right=bar.Gap(40),
               x=0,
               y=480,
               width=500,
               height=400),
        Screen(top=bar.Bar(
            [widget.GroupBox(),
             widget.WindowName(),
             widget.Clock()],
            30,
        ),
               left=bar.Gap(20),
               right=bar.Gap(24),
               x=500,
               y=580,
               width=400,
               height=400),
    ]
    screens = []
Example #26
0
def init_widgets_list():
    widgets_list = [
        widget.Sep(linewidth=0,
                   padding=6,
                   foreground=colors[2],
                   background=colors[0]),
        widget.Image(
            filename="~/.config/qtile/icons/python-white.png",
            scale="False",
            mouse_callbacks={'Button1': lambda: qtile.cmd_spawn(myTerm)}),
        widget.Sep(linewidth=0,
                   padding=6,
                   foreground=colors[2],
                   background=colors[0]),
        widget.GroupBox(font="Ubuntu Bold",
                        fontsize=9,
                        margin_y=3,
                        margin_x=0,
                        padding_y=5,
                        padding_x=3,
                        borderwidth=3,
                        active=colors[2],
                        inactive=colors[7],
                        rounded=False,
                        highlight_color=colors[1],
                        highlight_method="line",
                        this_current_screen_border=colors[6],
                        this_screen_border=colors[4],
                        other_current_screen_border=colors[6],
                        other_screen_border=colors[4],
                        foreground=colors[2],
                        background=colors[0]),
        widget.Prompt(prompt=prompt,
                      font="Ubuntu Mono",
                      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.Systray(background=colors[0], padding=5),
        widget.Sep(linewidth=0,
                   padding=6,
                   foreground=colors[0],
                   background=colors[0]),
        widget.TextBox(text='',
                       background=colors[0],
                       foreground=colors[4],
                       padding=0,
                       fontsize=37),
        widget.Net(interface="enp6s0",
                   format='{down} ↓↑ {up}',
                   foreground=colors[2],
                   background=colors[4],
                   padding=5),
        widget.TextBox(text='',
                       background=colors[4],
                       foreground=colors[5],
                       padding=0,
                       fontsize=37),
        widget.TextBox(text=" 🌡 TEMP NOT SHOWN ",
                       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.TextBox(text=" ⟳",
                       padding=2,
                       foreground=colors[2],
                       background=colors[4],
                       fontsize=14),
        widget.CheckUpdates(
            update_interval=1800,
            distro="Arch_checkupdates",
            display_format="{updates} Updates",
            foreground=colors[2],
            mouse_callbacks={
                'Button1':
                lambda: 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.cmd_spawn(myTerm + ' -e htop')
                      },
                      padding=5),
        widget.TextBox(text='',
                       background=colors[5],
                       foreground=colors[4],
                       padding=0,
                       fontsize=37),
        widget.TextBox(text=" â‚¿",
                       padding=0,
                       foreground=colors[2],
                       background=colors[4],
                       fontsize=12),
        widget.BitcoinTicker(foreground=colors[2],
                             background=colors[4],
                             padding=5),
        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.CurrentLayout(foreground=colors[2],
                             background=colors[4],
                             padding=5),
        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 "),
    ]
    return widgets_list
Example #27
0
def init_widgets_list():
    # prompt = "{0}@{1}: ".format(os.environ["USER"], socket.gethostname())
    widgets_list = [

        widget.GroupBox(
            font="Inconsolata",
            fontsize=18,
            borderwidth=0,
            active="#3CBC3C",
            inactive="#FF8C00",
            rounded=False,
            highlight_method="block",
            this_current_screen_border=colors[7],
            this_screen_border=colors[3],
            other_current_screen_border=colors[0],
            other_screen_border=colors[0],
            foreground=colors[8],
            background=colors[1]
        ),

        # widget.Prompt(
        #     prompt=prompt,
        #     font="Ubuntu Mono",
        #     padding=12,
        #     foreground=colors[8],
        #     background=colors[1]
        # ),

        # widget.Sep(
        #     linewidth=0,
        #     padding=12,
        #     foreground=colors[2],
        #     background=colors[1]
        # ),


        widget.WindowName(
            **widget_defaults
        ),

        widget.Sep(
            **widget_sep
        ),

        # widget.Cmus(),

        mpdwidget.Mpd(
            fmt_playing='%f [%v%%] %s',
            fmt_stopped='⏹️',
            reconnect=True,
            reconnect_interval=1,
            foreground_progress="#ff8c00",
            **widget_defaults
        ),

        # widget.Sep(
        #     linewidth=1,
        #     padding=0,
        #     foreground=colors[8],
        #     background=colors[1]
        # ),

        # arcobattery2.BatteryIcon(
        #     battery_name='BAT1',
        #     scale=0.6,
        #     y_poss=4,
        #     padding=0,
        #     theme_path=home + "/.config/qtile/battery_icons/"
        # ),

        widget.Sep(
            **widget_sep
        ),

        widget.CurrentLayoutIcon(
            scale=0.5,
            **widget_defaults
        ),

        widget.Sep(
            **widget_sep
        ),

        # widget.CheckUpdates(
        #     display_format="a: {updates}"),

        # widget.maildir(
        # maildirPath="~/.local/share/mail/krive79",
        # subFolders=[“path”: “INBOX”, “label”: “Home mail”],
        # separator=" ",
        # ),

        wttrweather.WttrWeather(
            location='Fábiánháza',
            format='2',
            units='&m',
            execute=myTerm + ' -e weatc',
            update_interval=600,
            **widget_defaults
        ),

        widget.Sep(
            **widget_sep
        ),

        widget.TextBox(
            text="📦",
            **widget_defaults
        ),

        pacman.Pacman(
            execute=myTerm + ' -e updatepackage',
            update_interval=600,
            **widget_defaults
        ),

        widget.Sep(
            **widget_sep
        ),

        net.Net(
            icon_up="⬆",
            icon_down="⬇",
            interface="enp0s31f6",
            **widget_defaults
        ),

        widget.Sep(
            **widget_sep
        ),

        widget.TextBox(
            text="🚚",
            **widget_defaults
        ),

        memory.Memory(
            fmt='{MemUsed} MB\n{Memsza}%',
            execute='urxvt -e htop',
            update_interval=1,
            **widget_defaults
        ),

        widget.Sep(
            **widget_sep
        ),

        widget.TextBox(
            text="🌡️",
            **widget_defaults
        ),

        widget.ThermalSensor(
            tag_sensor="Package id 0",
            **widget_defaults
        ),

        custom.Cpu(
            **widget_defaults),

        widget.Sep(
            **widget_sep
        ),

        widget.Volume(
            emoji=True,
            **widget_defaults
        ),

        widget.Volume(
            step=5,
            volume_app="qasmixer",
            **widget_defaults
        ),

        # widget.TextBox(
        #          font="Ubuntu Bold",
        #          text=" ☵",
        #          padding = 6,
        #          foreground=colors[6],
        #          background=colors[0],
        #          fontsize=14
        #          ),

        widget.Sep(
            **widget_sep
        ),

        # widget.TextBox(
        #         font="Ubuntu Bold",
        #         text=" 🕒",
        #         foreground=colors[6],
        #         background=colors[1],
        #         padding = 6,
        #         fontsize=14
        #         ),

        widget.TextBox(
            text="⏳",
            **widget_defaults
        ),

        widget.Clock(
            format="%Y-%m-%d\n%H:%M",
            **widget_defaults
        ),

        widget.Sep(
            **widget_sep
        ),

        widget.Systray(
            **widget_defaults
        ),

        widget.Sep(
            linewidth=0,
            padding=10,
            foreground=colors[2],
            background=colors[1]),
    ]
    return widgets_list
Example #28
0
    font='sans',
    fontsize=13,
    padding=3,
)

extension_defaults = widget_defaults.copy()

screens = [
    Screen(
        # outis -> change button for topASA
        top=bar.Bar(
            [
                widget.GroupBox(highlight_method="line",
                                birderwdth=-2,
                                highlight_color="#000000",
                                rounded=False,
                                active="#1234EF",
                                inactive="#707880",
                                center_aligned=True,
                                fontsize=15),
                widget.Prompt(prompt="Run:", ),
                widget.TextBox(text='', foreground="#bf6a6a", fontsize=15),
                widget.Spacer(bar.STRETCH),
                widget.Systray(),
                widget.TextBox(
                    text='',
                    foreground="bf6a6a",
                ),
                widget.Net(
                    foreground="bf6a6a",
                    #interface="wlp3s0",
                    format="↓{down}",
Example #29
0
            layout.Max(),
            layout.Stack(num_stacks=2)
            ]

    widget_defaults = dict(
            font='sans',
            fontsize=12,
            padding=3,
            )
    extension_defaults = widget_defaults.copy()

screens = [
        Screen(
            bottom=bar.Bar(
                [
                    widget.GroupBox(),
                    widget.Prompt(),
                    widget.WindowName(),
                    # widget.TextBox("default config", name="default"),
                    widget.Systray(),
                widget.Clock(format='%Y-%m-%d %a %I:%M %p'),
            ],
            24,
        ),
    ),
]


# Drag floating layouts.
mouse = [
    Drag([mod], "Button1", lazy.window.set_position_floating(),
Example #30
0
from libqtile import bar, widget
from libqtile.config import Screen

widget_defaults = dict(
    font='sans',
    fontsize=12,
    padding=3,
)
extension_defaults = widget_defaults.copy()

screens = [
    Screen(top=bar.Bar([
        widget.CurrentLayout(foreground="#ffffff", background="#505A7A"),
        widget.TextBox(text='||', foreground="#ffffff", background="#0F111A"),
        widget.GroupBox(foreground="#ffffff",
                        background="#505A7A",
                        inactive="#aaaaaa",
                        highlight_method="line"),
        widget.WindowName(foreground="#ffffff"),
        widget.CPU(foreground="#ffffff", background="#505A7A"),
        widget.TextBox(text='||', foreground="#ffffff", background="#0F111A"),
        widget.Memory(foreground="#ffffff", background="#505A7A"),
        widget.TextBox(text='||', foreground="#ffffff", background="#0F111A"),
        widget.Clock(format='%Y-%m-%d|%I:%M %p',
                     foreground="#ffffff",
                     background="#505A7A"),
        widget.TextBox(text='||', foreground="#ffffff", background="#0F111A"),
        widget.Systray(foreground="#ffffff", background="#505A7A"),
        widget.QuickExit(foreground="#ffffff", background="#505A7A"),
    ],
                       24,
                       background='#090A0F'), ),