Example #1
0
def wid_top_main_screen():
    return [
        widget.TextBox(text='',
                       fontsize=25,
                       padding=10,
                       mouse_callbacks={'Button1': rofi_show_run}),
        widget.Sep(linewidth=0, padding=5),
        wid_groups(),
        widget.WindowName(),
        widget.Wlan(interface="wlp4s0", format='{essid}'),
        widget.Net(interface="wlp4s0", format='{down} ↓↑ {up}', padding=1),
        custom_sep(),
        widget.CurrentLayoutIcon(scale=0.9),
        custom_sep(),
        widget.KeyboardLayout(configured_keyboards=['us', 'latam'],
                              option="grp:win_space_toggle"),
        custom_sep(),
        widget.Systray(),
        custom_sep(),
        custom_clock(),
        widget.TextBox(text=' ',
                       fontsize=15,
                       padding=3,
                       mouse_callbacks={'Button1': logout_action}),
    ]
Example #2
0
def widget_stack():
    gmail_config = {
        'update_interval': 50,
        'fmt': 'in[%s] unread(%s)',
        **get_gmail_config()
    }
    return [
        widget.CurrentScreen(),
        widget.GroupBox(),
        widget.Prompt(),
        widget.TaskList(),
        widget.GmailChecker(**gmail_config),
        widget.Sep(),
        widget.CheckUpdates(),
        widget.Sep(),
        widget.Wlan(interface=auto_detect_interface()),
        widget.Sep(),
        widget.DF(visible_on_warn=False, format="Disk free {r:.1f}%"),
        widget.Sep(),
        widget.CPUGraph(),
        widget.Memory(),
        widget.Sep(),
        widget.Battery(update_interval=1, format="🔋 {char} {percent:2.0%}"),
        widget.Sep(),
        widget.Systray(),
        widget.Notify(),
        widget.Clock(),
        widget.CurrentLayoutIcon(),
    ]
Example #3
0
def getBar():
    return bar.Bar([
        widget.GroupBox(margin_x=0,
                        margin_y=3,
                        borderwidth=0,
                        padding_x=10,
                        rounded=False,
                        disable_drag=True,
                        highlight_method="block",
                        this_current_screen_border="a1b56c",
                        this_screen_border="505a36",
                        other_screen_border="888888",
                        inactive="d0d0d0",
                        active=foreground,
                        background=background),
        widget.Prompt(),
        widget.WindowName(
            foreground=foreground,
            background=background,
        ),
        widget.Notify(
            foreground=foreground,
            background=background,
        ),
        widget.Battery(background="#a1b56c",
                       low_foreground=white,
                       low_percentage=0.15,
                       update_delay=10,
                       charge_char="+",
                       discharge_char="-",
                       format='{char} {percent:2.0%} {hour:d}:{min:02d}'),
        widget.Net(interface="wlo1",
                   foreground=white,
                   background="#a1b56c",
                   format='{down} ↓↑ {up}'),
        widget.Wlan(
            interface="wlo1",
            background="#a1b56c",
            format='{essid} {percent:2.0%}',
        ),
        widget.Memory(background=yellow, ),
        widget.CPU(background=yellow, format='C: {load_percent}%'),
        widget.TextBox(
            text="V:",
            background=yellow,
        ),
        widget.Volume(background=yellow, ),
        widget.Clock(
            format="%a %d %b %H:%M:%S",
            background=blue,
        ),
        widget.YahooWeather(
            woeid='551801',
            format='{current_observation_condition_temperature}°C',
            background=blue,
        ),
        widget.Systray(background=blue, ),
    ], 20)
Example #4
0
def get_bar():
    return bar.Bar(
        [
            widget.GroupBox(
                active="98c379",
                inactive="abb2bf",
                this_current_screen_border="61afef",
                highlight_method="text",
                highlight_color=["282c34", "282c34"],
                center_aligned=True,
                rounded=False,
                borderwidth=0,
                padding=6,
            ),
            widget.Spacer(bar.STRETCH),
            widget.Systray(),
            widget.TextBox(
                text='',
                foreground="c678dd",
            ),
            widget.KeyboardLayout(),
            widget.TextBox(
                text='',
                foreground="56b6c2",
            ),
            widget.Battery(format='{percent:2.0%}'),
            widget.TextBox(
                text='',
                foreground="e5c07b",
            ),
            widget.Volume(),
            widget.TextBox(
                text='',
                foreground="61afef",
            ),
            widget.Backlight(
                backlight_name="intel_backlight",
                #padding=0,
                #margin=0,
                format='{percent: 2.0%}'),
            widget.TextBox(
                text='',
                foreground="98c379",
            ),
            widget.Clock(format='%B %d (%a) %H:%M', ),
            widget.TextBox(
                text='',
                foreground="e06c75",
            ),
            widget.Wlan(
                interface="wlp5s0",
                format="{essid}",
            ),
        ],
        28,
        margin=0,
        opacity=0)
Example #5
0
def init_widgets_list():
    widgets_list = [
        widget.Sep(linewidth=0, padding=3),
        widget.CurrentScreen(
            active_text="◉",
            active_color=colors[3],
            inactive_text="◉",
            inactive_color=colors[1],
            padding=2,
        ),
        widget.CurrentLayoutIcon(scale=0.57, padding=2),
        widget.GroupBox(
            margin_x=2,
            padding_y=2,
            padding_x=3,
            borderwidth=1,
            disable_drag=True,
            active=colors[5],
            inactive=colors[2],
            rounded=True,
            hide_unused=True,
            highlight_color=colors[1],
            highlight_method="border",
            this_current_screen_border=colors[2],
            this_screen_border=colors[4],
            other_current_screen_border=colors[1],
            other_screen_border=colors[1],
        ),
        widget.Sep(linewidth=0, padding=20),
        widget.WindowTabs(),
        widget.Sep(linewidth=0, padding=20),
        widget.Notify(audiofile=qtile_dir + "/.sounds/notify-sound.mp3"),
        widget.Sep(linewidth=0, padding=20),
        widget.Spacer(length=bar.STRETCH),
        widget.CheckUpdates(),
        widget.Sep(linewidth=0, padding=20),
        widget.Battery(
            discharge_char="-",
            charge_char="+",
            unknown_char="*",
            update_interval=30,
            format="{char}{percent:2.0%}",
        ),
        widget.Sep(linewidth=0),
        widget.Wlan(
            interface="wlp0s20f3",
            disconnected_message="W: N/A",
            format="{essid}",
        ),
        widget.Sep(linewidth=0),
        widget.Volume(),
        widget.Sep(linewidth=0),
        widget.Clock(format="%a, %H:%M (%d/%m)", update_interval=60),
        widget.Sep(linewidth=0),
    ]
    return widgets_list
Example #6
0
def get_widgets():
    return [
        widget.CurrentLayoutIcon(
            custom_icon_paths=[os.path.expanduser("~/.config/qtile/icons")],
            scale=0.8,
        ),
        widget.GroupBox(),
        widget.WindowName(),
        widget.TextBox(" | ", name="separator"),
        widget.Clipboard(max_width=50, timeout=None),
        widget.TextBox(" | ", name="separator"),
        widget.TextBox("CPU", name="cpu_label"),
        widget.CPUGraph(**graph_args),
        widget.TextBox("Mem", name="memory_label"),
        ColoredMemoryGraph(**graph_args),
        widget.TextBox("Net", name="net_label"),
        widget.NetGraph(**graph_args),
        widget.TextBox(" | ", name="separator"),
        widget.DF(
            mouse_callbacks={'Button1': lambda: qtile.cmd_spawn('qdirstat')},
            format='{uf}/{s}{m} free on {p}',
            visible_on_warn=False),
        # TODO figure out why this doesn't work
        # widget.HDDBusyGraph(**graph_args),
        widget.TextBox(" | ", name="separator"),
        widget.Image(filename='~/.config/qtile/icons/volume-icon.png',
                     margin_y=4),
        widget.Volume(fmt='{}'),
        widget.TextBox(" | ", name="separator"),
        widget.Image(filename='~/.config/qtile/icons/battery-icon.png'),
        widget.Battery(
            format='{percent:2.0%} {char}{watt:.1f}W',
            charge_char='+',
            discharge_char='-',
            update_interval=15,  # seconds
        ),
        widget.TextBox(" | ", name="separator"),
        widget.Image(filename='~/.config/qtile/icons/brightness-icon.png',
                     margin_x=1,
                     margin_y=4.5),
        widget.Backlight(format='{percent: 2.0%}',
                         backlight_name='intel_backlight'),
        widget.TextBox(" | ", name="separator"),
        # Requires
        # sudo apt install libiw-dev
        # pip install iwlib
        widget.Wlan(interface='wlp2s0',
                    format=' {essid} {quality}%',
                    mouse_callbacks={
                        'Button1':
                        lambda: qtile.cmd_spawn('cinnamon-settings network')
                    }),
        widget.TextBox(" | ", name="separator"),
        widget.Systray(),
        widget.Clock(format='%Y-%m-%d %a %I:%M %p'),
    ]
Example #7
0
def create_default_bar():
    return bar.Bar(
        [
            widget.CurrentLayout(),
            widget.GroupBox(),
            widget.Prompt(),
            widget.Spacer(),
            widget.Chord(
                chords_colors={
                    "launch": ("#ff0000", "#ffffff"),
                },
                name_transform=lambda name: name.upper(),
            ),
            widget.Sep(),
            widget.Wlan(
                interface="wlp111s0",
                format="{essid} {percent:2.0%}",
            ),
            widget.Sep(),
            widget.TextBox("Battery: "),
            widget.Battery(update_interval=5),
            widget.Sep(),
            widget.GenPollText(func=volume_poll, update_interval=1),
            widget.Sep(),
            widget.TextBox("Brightness: "),
            widget.Backlight(
                brightness_file=
                "/sys/class/backlight/intel_backlight/brightness",
                max_brightness_file=
                "/sys/class/backlight/intel_backlight/max_brightness",
            ),
            widget.Sep(),
            widget.Clock(format="%Y-%m-%d %a %I:%M %p"),
            widget.QuickExit(),
            widget.Systray(),
        ],
        24,
    )
Example #8
0
def init_widgets_list():
    widgets_list = [
        widget.GroupBox(
            active=colors[1],
            inactive=colors[0],
            foreground=colors[1],
            background=colors[0],
        ),
        widget.Prompt(
            padding=10,
            foreground=colors[1],
            background=colors[0],
        ),
        widget.WindowName(
            foreground=colors[1],
            background=colors[0],
        ),
        widget.Volume(
            foreground=colors[1],
            background=colors[0],
        ),
        widget.Wlan(foreground=colors[1],
                    background=colors[0],
                    interface='wlp2s0'),
        widget.Battery(
            format='{percent:2.0%}',
            foreground=colors[1],
            background=colors[0],
        ),  # simple battery percentage
        widget.Clock(
            format='%a %I:%M %p %Y-%m-%d ',
            foreground=colors[1],
            background=colors[0],
        ),
    ]
    return widgets_list
Example #9
0
def get_bar():
    return bar.Bar([
       widget.GroupBox(
           active = "5e81ac",
           inactive = "b48ead",
           this_current_screen_border = "bf616a",
           highlight_method = "line",
           highlight_color=["2e3440", "2e3440"],
           center_aligned=True,
           font="Font Awesome",
       ),
       widget.TextBox(
           text='|',
           foreground="bf6a6a",
           font="Cascadia Code"
       ),
       widget.WindowName(
           foreground="5e81ac"
       ),
       widget.Systray(),
       widget.TextBox(
           text='|',
           foreground="8fbcbb",
       ),
       widget.TextBox(
           text='北',
           foreground="8fbcbb",
           font="Cascadia Code"
       ),
       # Enabling keyboard layout widget makes firefox UNUSABLE after 10-15 minutes. so I disabled it
       # widget.TextBox(
       #     text='',
       #     foreground="8fbcbb",
       # ),
       widget.TextBox(
           text='|',
           foreground="5e81ac",
       ),
       widget.TextBox(
           text='',
           foreground="5e81ac",
       ),
       widget.Battery(
           format = '{percent:2.0%}',
           update_interval = 60.0,
       ),
       widget.TextBox(
           text='|',
           foreground="ebcb8b",
       ),
       widget.TextBox(
           text='',
           foreground="ebcb8b",
           font="Font Awesome"
       ),
       widget.Volume(
           foreground="ebcb8b",
       ),
       widget.TextBox(
           text='|',
           foreground="88c0d0",
       ),
       widget.TextBox(
           text='',
           foreground="88c0d0",
       ),
       widget.Backlight(
           foreground="88c0d0",
           backlight_name="intel_backlight",
       ),
       widget.TextBox(
           text='|',
           foreground="a3be8c",
       ),
       widget.TextBox(
           text='',
           foreground="bf6a6a",
       ),
       widget.Wlan(
           foreground="bf6a6a",
           interface="wlp3s0",
           format="{essid}",
           update_interval = 15,
       ),
       widget.TextBox(
           text='|',
           foreground="a3be8c"
       ),
       widget.TextBox(
           text='',
           foreground="a3be8c",
       ),
       widget.Clock(
           format='%A %d %b %Y %H:%M',
           foreground = "a3be8c",
           update_interval = 60.0,
       ),
    ], 26, background="2e3440"
)
Example #10
0
                    format='%H:%M',
                    foreground=colors[8],
                ),
                widget.TextBox(
                    text = '|',
                    padding = 0,
                    fontsize = 18,
                ),
                widget.TextBox(
                    text='直',
                    fontsize=24,
                    foreground=colors[11],
                ),
                widget.Wlan(
                    interface='wlp3s0',
                    format='{quality}%',
                    disconnected_message='',
                    foreground=colors[11],
                ),
            ],
            24,
            opacity=0.9
        ),
    ),
]

# Drag floating layouts.
mouse = [
    Drag([mod], "Button1", lazy.window.set_position_floating(),
         start=lazy.window.get_position()),
    Drag([mod], "Button3", lazy.window.set_size_floating(),
         start=lazy.window.get_size()),
Example #11
0
            padding=10,
            foregorund=colors[2],
            background=colors[0]),
 widget.WindowName(font="Ubuntu",
                   fontsize=12,
                   padding=5,
                   foreground=colors[5],
                   background=colors[0]),
 widget.Systray(background=colors[0], padding=5),
 widget.Sep(linewidth=0,
            padding=6,
            foreground=colors[2],
            background=colors[0]),
 widget.Wlan(interface='wlp3s0',
             format="[{essid}] {percent:2.0%}",
             disconnected_message="DC",
             foreground=colors[2],
             background=colors[0]),
 widget.TextBox(text=" ↯",
                foreground=colors[2],
                background=colors[0],
                padding=0,
                fontsize=14),
 widget.Net(interface='wlp3s0',
            foreground=colors[2],
            background=colors[0],
            padding=5),
 widget.Sep(linewidth=0,
            padding=6,
            foreground=colors[2],
            background=colors[0]),
Example #12
0
                        background = colors[0],
                        padding = -1,
                        fontsize = 20
                        ),

                widget.TextBox(
                        text = "直",
                        fontsize = 16,
                        padding = 5,
                        foreground = colors[8],
                        background = colors[4]
                        ),
                widget.Wlan(
                        interface = "wlp3s0",
                        format = '{essid}',
                        foreground = colors[4],
                        background = colors[8],
                        padding = 5
                        ),
                widget.TextBox(
                        text = '',
                        foreground = colors[8],
                        background = colors[0],
                        padding = 0,
                        fontsize = 20
                        ),
                # widget.Sep(
                #         linewidth = 0,
                #         padding = 5,
                #         foreground = colors[7],
                #         background = colors[0]
Example #13
0
def my_widgets3():
    return [
        widget.GroupBox(
            active                      = colors_custom[7],
            background                  = colors_standard[5],
            borderwidth                 = 4,
            font                        = 'Sans Mono Bold',
            fontsize                    = 12,
            highlight_color             = colors_standard[6],
            highlight_method            = 'line',
            inactive                    = colors_custom[6],
            margin_x                    = 0,
            margin_y                    = 4,
            other_current_screen_border = colors_standard[1],
            other_screen_border         = colors_standard[1],
            padding_x                   = 3,
            padding_y                   = 5,
            rounded                     = False,
            this_current_screen_border  = colors_custom[6],
            this_screen_border          = colors_standard[6],
            use_mouse_wheel             = False
        ),
        my_sep(b=colors_custom[0]),
        widget.Prompt(
            background                  = colors_custom[0],
            font                        = 'SourceCodePro',
            fontsize                    = 16,
            foreground                  = colors_custom[7],
            prompt                      = ': '
        ),
        widget.Spacer(bar.STRETCH, background=colors_custom[0]),
        widget.Systray(
            background                  = colors_custom[0],
            icon_size                   = 20,
            padding                     = 2
        ),
        my_sep(b=colors_custom[0], p=5),
        my_sep(b=colors_standard[5], p=10),
        widget.TextBox(
            foreground                  = colors_custom[4],
            mouse_callbacks = {
                'Button1': nm_applet,
                'Button3': close_nm_applet,
            },
            padding                     = 0,
            text                        = 'Wifi: '
        ),
        widget.Wlan(
            foreground                  = colors_custom[7],
            format                      = '{essid}',
            interface                   = 'wlp1s0',
            mouse_callbacks = {
                'Button1': nm_applet,
                'Button3': close_nm_applet,
            },
            padding                     = 0
        ),
        widget.TextBox(
            fontsize                    = 16,
            foreground                  = colors_custom[4],
            padding                     = 0,
            text                        = '  Brightness: '
        ),
        widget.Backlight(
            backlight_name              = 'intel_backlight',
            foreground                  = colors_custom[7],
            format                      = '{percent:2.0%}',
            padding                     = 0
        ),
        widget.TextBox(
            fontsize                    = 16,
            foreground                  = colors_custom[4],
            padding                     = 0,
            text                        = '  Volume: '
        ),
        widget.Volume(
            foreground                  = colors_custom[7],
            volume_app                  = 'alsamixer',
            update_interval             = 0.1
        ),
        widget.TextBox(
            fontsize                    = 16,
            foreground                  = colors_custom[4],
            padding                     = 0,
            text                        = '  Battery: '
        ),
        widget.Battery(
            foreground                  = colors_custom[7],
            format                      = '{percent:2.0%}',
            fontsize                    = 16,
            low_percentage              = 0.21,
            padding                     = 0,
            show_short_text             = False,
            update_interval             = 1,
        ),
        my_sep(b=colors_standard[5], p=10),
        my_sep(b=colors_custom[6], p=10),
        widget.Clock(
            background                  = colors_custom[6],
            foreground                  = colors_custom[0],
            format                      = '%a, %b %d (%Y) %H:%M ',
            padding                     = 0
        ),
        widget.CurrentLayoutIcon(
            # custom_icon_paths           = [ os.path.join(qtile_root, 'icons_cyan_outline/') ],
            foreground                  = '#000000',
            padding                     = 0,
            scale                       = 0.5
        ),
    ]
Example #14
0
                    background=color_main,
                    format='{MemUsed: .0f}M/16G',
                    update_interval=2,
                    mouse_callbacks={'Button1': lambda: qtile.cmd_spawn(terminal + " -e bpytop")},
                ),
                widget.TextBox(
                    text = ' ',
                    background = color_main,
                    padding = 0,
                    fontsize = 14,
                    mouse_callbacks={'Button1': lambda: qtile.cmd_spawn("bash /home/necronzero/.config/rofi-network-manager/rofi-network-manager.sh")},
                ),
                widget.Wlan(
                    interface='wlp3s0',
                    update_interval=5,
                    format="{essid} {percent:2.0%}",
                    mouse_callbacks={'Button1': lambda: qtile.cmd_spawn("bash /home/necronzero/.config/rofi-network-manager/rofi-network-manager.sh")},

                ),
                widget.TextBox(
                    text = '',
                    background = color_main,
                    padding = 0,
                    fontsize = 14,
                ),
                battery.BatteryIcon(
                    padding=0,
                    scale=.755555,
                    y_poss=-0.5,
                    theme_path="/home/necronzero/.config/qtile/icons/battery_icons_horiz",
                    update_interval = 10,
 widget.Sep(),
 widget.GroupBox(),
 widget.Prompt(),
 widget.Sep(),
 widget.WindowName(),
 widget.Chord(
     chords_colors={
         'launch': ("#ff0000", "#ffffff"),
     },
     name_transform=lambda name: name.upper(),
 ),
 #widget.TextBox("default config", name="default", foreground="#434758", background="#ffffff"),
 #widget.TextBox("Press <M-r> to spawn", foreground="#d75f5f"),
 #widget.Backlight(),
 widget.Wlan(interface="wlp1s0",
             foreground=colors[2],
             background=colors[5]),
 widget.Backlight(backlight_name="intel_backlight",
                  change_command="brightnessctl set {0}",
                  foreground=colors[2],
                  background=colors[4],
                  fmt="BL{}"),
 #widget.Net(foreground=colors[2], background=colors[4]),
 widget.Battery(
     foreground=colors[2],
     background=colors[5],
     format="{char}{percent:2.0%}~{hour:d}:{min:02d}hrs",
     discharge_char="v"),
 #widget.Net(),
 widget.Volume(
     foreground=colors[2], background=colors[4], fmt="vol:{}"),
Example #16
0
def init_widgets_list():
    widgets_list = [
        widget.Sep(
            linewidth = 0,
            padding = 5,
        ),
        widget.GroupBox(
            font = "Ubuntu Bold",
            fontsize = 12,
            margin_y = 3,
            margin_x = 5,
            disable_drag = True,
            highlight_method = 'block',
            urgent_border = colors[3],
            this_current_screen_border = colors[4],
            this_screen_border = colors [4],
            inactive = colors [8],
            block_highlight_text_color = colors[2]
        ),
        widget.WindowName(
            background = colors[4]
        ),
        widget.Sep(
            linewidth = 0,
            padding = 10,
        ),
        widget.TextBox(
            text = ''
        ),
        widget.CurrentLayout(),
        widget.Sep(
            linewidth = 0,
            padding = 10,
        ),
        widget.TextBox(
            text = ''
        ),
        widget.KeyboardLayout(
            configured_keyboards = ['us', 'es', 'br']
        ),
        widget.Sep(
            linewidth = 0,
            padding = 10,
        ),
        widget.TextBox(
            text = 'CPU'
        ),
        widget.CPU(
            format = '{freq_current}GHz'
        ),
        widget.Sep(
            linewidth = 0,
            padding = 10,
        ),
        widget.TextBox(
            text = ''
        ),
        widget.Volume(
            volume_app = 'pavucontrol'
        ),
        widget.Sep(
            linewidth = 0,
            padding = 10,
        ),
        widget.TextBox(
            text = ''
        ),
        widget.Battery(
            format = '{char}{percent:2.0%}',
            update_interval = 10,
            discharge_char = '-',
            charge_char = '+'
        ),
        widget.Sep(
            linewidth = 0,
            padding = 10,
        ),
        widget.TextBox(
            text = ''
        ),
        widget.Wlan(
            interface = 'wlo1',
            format = '{essid}'
        ),
        widget.Sep(
            linewidth = 0,
            padding = 10,
        ),
        widget.Clock(
            format = '%I:%M %p'
        ),
        widget.Sep(
            linewidth = 0,
            padding = 10,
        ),
        widget.Systray(),
        widget.Sep(
            linewidth = 0,
            padding = 10,
        ),
    ]
    return widgets_list
Example #17
0
             widget.Image(
                 scale=True,
                 filename="/home/sergio/.config/qtile/icons/bar04.png",
                 background=colors_two["green"]),
             widget.PulseVolume(
                 foreground=colors_two["black"],
                 background=colors_two["green"],
             ),
             # widget.QuickExit(),
             # widget.Sep(),
             widget.Image(
                 scale=True,
                 filename="/home/sergio/.config/qtile/icons/bar05.png",
                 background=colors_two["blue"]),
             widget.Wlan(background=colors_two["blue"],
                         foreground=colors_two["black"],
                         interface='wlp3s0'),
         ],
         24,
         #background="#0d0d0d",
     ),
     #wallpaper='/home/sergio/Pictures/wallpapers/anime-girl-01.jpg',
     #wallpaper_mode='fill',
 ),
 Screen(
     top=bar.Bar(
         [
             widget.CurrentLayout(),
             widget.GroupBox(active=colors[2],
                             inactive=colors[2],
                             rounded=False,
Example #18
0
def init_widgets():
    return [
        widget.GroupBox(
            borderwidth=3,
            active=COLORS["white"],
            inactive=COLORS["grey"],
            highlight_color=COLORS["black"],
            highlight_method="line",
            this_current_screen_border=COLORS["blue"],
            padding=5,
        ),
        widget.Spacer(),
        widget.TextBox(),
        widget.Memory(
            background=COLORS["black"],
            foreground=COLORS["white"],
            measure_mem="G",
            padding=5,
            format="Mem: {MemUsed:.0f}{mm}/{MemTotal:.0f}{mm}" 
        ),
        widget.Spacer(length=5),
        widget.Sep(
            background=COLORS["black"],
            foreground=COLORS["blue"],
            linewidth=2,
            padding=15
        ),
        widget.PulseVolume(
            background=COLORS["black"],
            foreground=COLORS["white"],
            padding=5,
            fmt="Vol: {}",
        ),
        widget.Spacer(length=5),
        widget.Sep(
            background=COLORS["black"],
            foreground=COLORS["blue"],
            linewidth=2,
            padding=15
        ),
        widget.Spacer(length=5),
        widget.Wlan(
            background=COLORS["black"],
            foreground=COLORS["white"],
            interface="wlan0",
            format="SSID: {essid}",
            padding=5
        ),
        widget.Sep(
            background=COLORS["black"],
            foreground=COLORS["blue"],
            linewidth=2,
            padding=15
        ),
        widget.Spacer(length=5),
        widget.Clock(
            background=COLORS["black"],
            foreground=COLORS["white"],
            format="%A, %B %d - [%I:%M:%S] ",
            padding=5
        ),
    ]
Example #19
0
        widget.Clock(
            **bar_theme,
            format="%a %d.%m. %H:%M",
        ),
    ]

    right = [
        widget.CPU(**bar_theme, format="cpu {load_percent}%"), pipeSpacer,
        widget.Memory(**bar_theme, format="mem {MemPercent}%")
    ]

    if gethostname() == "carbon":
        right.insert(
            0,
            widget.Wlan(**bar_theme,
                        disconnected_message="No connection",
                        format="{essid}",
                        interface="wlp0s20f3"))
        right.insert(1, pipeSpacer)
        right.extend([
            pipeSpacer,
            widget.Battery(**bar_theme,
                           format="{char}{percent:2.0%} ({hour:d}:{min:02d})",
                           update_interval=60,
                           charge_char="+",
                           discharge_char="-",
                           notify_below=0.11)
        ])

    widgets = [
        *left,
        widget.Spacer(**bar_theme), *middle,
Example #20
0
def init_widgets_list():
    widgets_list = [
        separator(20, 40),
        group_head(),
        #        widget.GroupBox(**group_box_settings),
        widget.GroupBox(visible_groups=[""], **group_box_settings),
        widget.GroupBox(visible_groups=["", "", "", "", ""],
                        **group_box_settings),
        widget.GroupBox(visible_groups=["", ""], **group_box_settings),
        group_tail(),
        separator(10),
        group_head(),
        widget.CurrentLayoutIcon(
            custom_icon_paths=[os.path.expanduser("~/.config/qtile/icons")],
            foreground=colors[2],
            background=colors[14],
            padding=-2,
            scale=0.55),
        group_tail(),
        separator(10),
        widget.CheckUpdates(
            background=colors[0],
            foreground=colors[3],
            fontsize=16,
            update_interval=1800,
            distro="Arch_checkupdates",
            display_format="⟳ {updates} Updates",
            mouse_callbacks={
                "Button1":
                lambda: qtile.cmd_spawn(terminal + " -e sudo pacman -Syu")
            },
            padding=5),
        widget.Spacer(),
        group_head(),
        CustomPomodoro(background=colors[14],
                       fontsize=26,
                       color_active=colors[3],
                       color_break=colors[6],
                       color_inactive=colors[10],
                       timer_visible=False,
                       prefix_active="",
                       prefix_break="",
                       prefix_inactive="",
                       prefix_long_break="",
                       prefix_paused=""),
        group_tail(),
        separator(10),
        group_head(),
        widget.TextBox(text=" ",
                       foreground=colors[8],
                       background=colors[14],
                       font="Font Awesome 5 Free Solid",
                       fontsize=20),
        widget.Volume(background=colors[14],
                      foreground=colors[8],
                      fontsize=16,
                      device="pulse",
                      padding=5),
        group_tail(),
        separator(10),
        group_head(),
        widget.GenPollText(func=bluetooth,
                           background=colors[14],
                           foreground=colors[6],
                           fontsize=16,
                           update_interval=3,
                           mouse_callbacks={
                               "Button1": toggle_bluetooth,
                               "Button3": open_bt_menu
                           }),
        group_tail(),
        separator(10),
        group_head(),
        widget.Wlan(foreground=colors[7],
                    background=colors[14],
                    fontsize=16,
                    format="  {essid}",
                    padding=5,
                    mouse_callbacks={"Button1": open_wifi_menu}),
        group_tail(),
        separator(10),
        group_head(),
        widget.GenPollText(func=nordvpn,
                           background=colors[14],
                           foreground=colors[11],
                           fontsize=16,
                           update_interval=3,
                           mouse_callbacks={"Button1": open_vpn_menu}),
        group_tail(),
        separator(10),
        group_head(),
        widget.Clock(fontsize=16,
                     format="  %a, %b %d",
                     background=colors[14],
                     foreground=colors[5]),
        group_tail(),
        separator(10),
        group_head(),
        widget.Clock(fontsize=16,
                     format="  %I:%M %p",
                     background=colors[14],
                     foreground=colors[4]),
        group_tail(),
        separator(10),
        group_head(),
        widget.Battery(background=colors[14],
                       foreground=colors[8],
                       fontsize=16,
                       low_foreground=colors[3],
                       low_percentage=0.15,
                       charge_char="",
                       discharge_char="",
                       emtpy_char="",
                       format="{char}  {percent:3.0%} ({hour:d}:{min:02d})",
                       padding=5),
        group_tail(),
        separator(20),
        widget.TextBox(text="⏻",
                       foreground=colors[13],
                       background=colors[0],
                       font="Font Awesome 5 Free Solid",
                       fontsize=30,
                       mouse_callbacks={"Button1": open_powermenu}),
        separator(20)
    ]
    return widgets_list
Example #21
0
def init_screens():
    return [
        Screen(top=bar.Bar(
            [
                widget.Sep(
                    linewidth=0,
                    padding=10,
                ),
                widget.TextBox(
                    font="SFMono Nerd Font",
                    text="",
                    fontsize=15,
                    markup=True,
                ),
                widget.Sep(
                    linewidth=0,
                    padding=10,
                ),
                widget.GroupBox(
                    # active = colors[2],
                    # inactive = colors[0],
                    font='SFMono Nerd Font',
                    # markup = False,
                    disable_drag=False,
                    fontsize=11,
                    # hide_unused = True,
                    rounded=False,
                    # highlight_method="text",
                    padding=0,
                    margin_y=3,
                    margin_x=0,
                    padding_y=5,
                    padding_x=5,
                    borderwidth=3,
                    inactive=colors[7],
                    highlight_color=colors[0],
                    highlight_method="line",
                    active=colors[2],
                    this_current_screen_border=colors[2],
                    this_screen_border=colors[4],
                    other_current_screen_border=colors[0],
                    other_screen_border=colors[0],
                    foreground=colors[2],
                    # background = colors[0]
                ),
                # widget.Sep(linewidth = 0,padding = 10,),
                widget.WindowName(fontsize=11, ),
                # widget.TextBox("default config", name="default"),
                widget.Sep(
                    linewidth=0,
                    padding=2,
                ),
                widget.Systray(),
                widget.Spacer(width=12),
                # widget.CurrentLayoutIcon(
                #                         custom_icon_paths=HOME+"/.config/qtile/icons",
                #                         foreground = colors[0],
                #                         background = colors[0],
                #                         padding = 0,
                #                         margin=5,
                #                         scale=0.7
                #                         ),
                widget.Wlan(
                    interface="wlp4s0",
                    format="W:{quality}",
                    fontsize=10,
                ),
                # NetworkIcon(theme_path='/HOME/gem/.config/qtile/icons/mojave'),
                widget.Sep(
                    linewidth=0,
                    padding=3,
                ),
                widget.PulseVolume(
                    volume_app="pavucontrol",
                    # emoji=True,
                    # get_volume_command="pamixer --get-volume",
                    # theme_path=HOME+'/.config/qtile/icons/mojave',
                ),
                widget.Sep(
                    linewidth=0,
                    padding=3,
                ),
                widget.BatteryIcon(
                    theme_path=HOME + '/.config/qtile/icons/mojave',
                    padding=0,
                ),
                # widget.Battery(
                #     format='B: {percent:2.0%}',
                #     fontsize=12,
                #     update_interval=30
                #     ),
                widget.Sep(
                    linewidth=0,
                    padding=3,
                ),
                widget.Clock(format='%a %I:%M %p [%u]'),
                widget.Sep(
                    linewidth=0,
                    padding=3,
                ),
                widget.TextBox(font="SFMono Nerd Font",
                               text="",
                               fontsize=12,
                               markup=True,
                               mouse_callbacks={'Button1': ''}),
                widget.Sep(
                    linewidth=0,
                    padding=10,
                ),
            ],
            opacity=0.8,
            size=24))
    ]
Example #22
0
def init_widgets_list():
	prompt = "{0}@{1}: ".format(os.environ["USER"], socket.gethostname())
	widgets_list = [widget.Sep(linewidth=0, 
								padding=6, 
								foreground=colors[1], 
								background=colors[0]),
					widget.GroupBox(font='ShureTechMono Nerd Font',
								fontsize=12,
								margin_y=0,
								margin_x=0,
								padding_y=5,
								padding_x=10,
								borderwitdh=1,
								active=colors[1],
								inactive=colors[1],
								rounded=False,
								highlight_method='block',
								this_current_screen_border=colors[3],
								this_screen_border=colors[3],
								other_current_screen_border=colors[0],
								other_screen_border=colors[0],
								background=colors[0]),
					widget.Sep(linewidth=0,
								padding=6,
								foreground=colors[1],
								background=colors[0]),
					widget.Prompt(prompt=prompt,
								background=colors[4],
								foreground=colors[15]),
					widget.WindowName(foreground=colors[7]),
					widget.Systray(padding=9,
								icon_size=20),
					widget.Sep(linewidth=0,
								padding=20,
								foreground=colors[1],
								background=colors[0]),
				#	widget.CPUGraph(graph_color=colors[5],
				#					border_color=colors[1],
				#					fill_color=colors[5],
				#					border_width=1),
				#	widget.MemoryGraph(graph_color=colors[3],
				#					border_color=colors[1],
				#					fill_color=colors[3],
				#					border_width=1),
				#	widget.Sep(linewidth=0,
				#				padding=20,
				#				foreground=colors[1],
				#				background=colors[0]),
					widget.CurrentLayout(font="ShureTechMono Nerd Font"),
					widget.Sep(linewidth=0,
								padding=20,
								foreground=colors[1],
								background=colors[0]),
					widget.Image(filename=HOMEDIR+"/Pictures/icons/whitepng/wifi.png", 
							background=colors[0]),
					widget.Sep(linewidth=0,
								padding=5,
								foreground=colors[1],
								background=colors[0]),
					widget.Wlan(interface='wlp58s0',
							font="ShureTechMono Nerd Font",
							format="{quality}/70"),
					widget.Sep(linewidth=0,
								padding=20,
								foreground=colors[1],
								background=colors[0]),
					widget.Volume(theme_path=HOMEDIR+"/Pictures/icons/whitepng/volume",
								volume_app="amixer",
								mute_command="Master toggle",
								volume_down_command="set Master 1%-",
								volume_up_command="set Master 1%+"),
					widget.Sep(linewidth=0,
								padding=20,
								foreground=colors[1],
								background=colors[0]),
					widget.BatteryIcon(theme_path=HOMEDIR+'/Pictures/icons/battery/',
									background=colors[0]),
					widget.Sep(linewidth=0,
								padding=20,
								foreground=colors[1],
								background=colors[0]),
					widget.KeyboardLayout(configured_keyboards=['us', 'us alt-intl']),
					widget.Sep(linewidth=0,
								padding=20,
								foreground=colors[1],
								background=colors[0]),
					widget.Image(filename=HOMEDIR+"/Pictures/icons/whitepng/clock.png", 
								background=colors[0]),
					widget.Clock(format='%d-%b %a %H:%M'),
					widget.Sep(linewidth=0,
								padding=10,
								foreground=colors[1],
								background=colors[0]),]
	return widgets_list
Example #23
0
def init_widget_list():
    widget_list = [
        widget.CurrentLayoutIcon(padding=10),
        widget.GroupBox(
            this_current_screen_border=palette["blue"],
            urgent_border=palette["red"],
        ),
        widget.Prompt(padding=10,
                      font='mono',
                      prompt='run: ',
                      foreground='ffdf29',
                      fontsize='14'),
        widget.Spacer(bar.STRETCH),
        widget.Systray(),
        widget.TextBox(text='\ue0b2',
                       fontsize=40,
                       foreground=color_widget(),
                       padding=0),
        widget.Volume(
            emoji=True,
            font='FontAwesome',
            fontsize=15,
            background=color_widget(),
        ),
        widget.Volume(
            padding=4,
            background=color_widget(),
        ),
        widget.TextBox(
            text='\ue0b2',
            fontsize=40,
            background=color_widget(),
            foreground=color_widget(switch=True),
        ),
        widget.TextBox(
            # text = fa.icons['music'] + ' ',
            text="♫ ",
            fontsize=20,
            background=color_widget(),
        ),
        widget.GenPollText(
            background=color_widget(),
            func=song,
            update_interval=3,
        ),
        widget.TextBox(
            text='\ue0b2',
            fontsize=40,
            background=color_widget(),
            foreground=color_widget(switch=True),
        ),
        widget.TextBox(
            text=fa.icons['keyboard'] + ' ',
            fontsize=20,
            background=color_widget(),
        ),
        widget.GenPollText(
            background=color_widget(),
            func=kb_layout,
            update_interval=3,
        ),
        widget.TextBox(
            text='\ue0b2',
            fontsize=40,
            background=color_widget(),
            foreground=color_widget(switch=True),
        ),
        widget.TextBox(
            text=fa.icons['sync'],
            background=color_widget(),
            mouse_callbacks={'Button1': update()},
        ),
        widget.CheckUpdates(
            update_interval=60,
            foreground=black,
            colour_have_updates=black,
            background=color_widget(),
            distro='Arch_checkupdates',
            display_format='Updates: {updates}',
            mouse_callbacks={'Button1': update()},
        ),
        widget.TextBox(
            text='\ue0b2',
            fontsize=40,
            background=color_widget(),
            foreground=color_widget(switch=True),
        ),
        widget.TextBox(
            text=fa.icons['wifi'] + ' ',
            background=color_widget(),
        ),
        widget.Wlan(
            interface='wlo1',
            background=color_widget(),
            #format='{essid}',
            format='{essid} {percent:2.0%}',
        ),
        widget.TextBox(
            text='\ue0b2',
            fontsize=40,
            background=color_widget(),
            foreground=color_widget(switch=True),
        ),
        widget.BatteryIcon(
            background=color_widget(),
            theme_path='/usr/share/icons/Adwaita/16x16',
        ),
        widget.Battery(
            format='{percent:2.0%}',
            update_interval=60,
            background=color_widget(),
        ),
        widget.TextBox(
            text='\ue0b2',
            fontsize=40,
            background=color_widget(),
            foreground=color_widget(switch=True),
        ),
        widget.TextBox(
            text=fa.icons['calendar'] + ' ',
            background=color_widget(),
        ),
        widget.GenPollText(
            background=color_widget(),
            func=calendar,
            update_interval=3,
        ),
        widget.TextBox(
            text='\ue0b2',
            fontsize=40,
            background=color_widget(),
            foreground=color_widget(switch=True),
        ),
        widget.TextBox(
            text=fa.icons['clock'] + ' ',
            background=color_widget(),
        ),
        widget.Clock(
            # format ='%B %-d %Y ',
            format='%a %-d/%-m/%Y |',
            background=color_widget(),
        ),
        widget.Clock(
            format='%H:%M ',
            background=color_widget(),
            font='Roboto Mono Bold for Powerline',
            fontsize=13,
        ),
    ]
    return widget_list
Example #24
0
     #foreground = colors[9],
     fmt = '<span face="' + my_fonts[6] + '" foreground="' + colors[10] + '">\uf2db</span> {}',
     format = '{load_percent}%',
     mouse_callbacks = {'Button1': lambda qtile: qtile.cmd_spawn(terminal + ' -t=float -e=htop')},
 ),
 widget.Memory( # MEMORY USAGE
     #background = d_colors[2],
     #foreground = colors[9],
     fmt = '<span face="' + my_fonts[6] + '" foreground="' + colors[1] + '">\uf538</span> {}',
     format = '{MemUsed}MB',
     mouse_callbacks = {'Button1': lambda qtile: qtile.cmd_spawn(terminal + ' -t=float -e=htop')},
 ),
 widget.Wlan( # WLAN
     #background = d_colors[5],
     #foreground = colors[9],
     interface = 'wlp2s0',
     fmt = '<span face="' + my_fonts[6] + '" foreground="' + colors[20] + '">\uf1eb</span> {}',
     format = '{essid}',
     mouse_callbacks = {'Button1': lambda qtile: qtile.cmd_spawn(terminal + ' -t=float -e=nmtui')},
 ),
 widget.PulseVolume( # VOLUME
     fmt = '<span face="' + my_fonts[6] + '" foreground="' + colors[5] + '">\uf028</span> {}',
 ),
 widget.Clock( # DATE
     fmt = '<span face="' + my_fonts[6] + '" foreground="' + colors[10] + '">\uf073</span> {}',
     format = '%a.%d.%m',
 ),
 widget.Clock( # CLOCK
     fmt = '<span face="' + my_fonts[6] + '" foreground="' + colors[2] + '">\uf017</span> {}',
     format = '%H:%M',
 ),
 widget.QuickExit( # EXIT
Example #25
0
def make_screen(systray=False):
    """Defined as a function so that I can duplicate this on other monitors"""
    def _separator():
        # return widget.Sep(linewidth=2, foreground=COLS["dark_3"])
        return widget.Sep(linewidth=2,
                          foreground=WAL_COLS['special']['foreground'])

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

    # return Screen(top=bar.Bar(blocks, 25, background=COLS["deus_1"]))
    return Screen(top=bar.Bar(
        blocks, 25, background=WAL_COLS['special']['background'], opacity=.8))
Example #26
0
def init_widgets_list():
    widgets_list = [
        widget.GroupBox(
            font="Ubuntu Bold",
            fontsize=9,
            margin_y=1,
            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[1],
        ),
        widget.Prompt(prompt=prompt,
                      font="Ubuntu Mono",
                      padding=10,
                      foreground=colors[2],
                      background=colors[1]),
        widget.WindowName(
            foreground=colors[3],
            background=colors[1],
            markup=True,
            # padding=1
        ),
        widget.TextBox(text=" 🌡",
                       padding=2,
                       foreground=colors[2],
                       background=colors[1],
                       fontsize=11),
        widget.ThermalSensor(foreground=colors[2],
                             background=colors[1],
                             padding=5),
        widget.TextBox(text="",
                       padding=2,
                       foreground=colors[2],
                       background=colors[1],
                       fontsize=14),
        widget.Pacman(execute="termite -e 'yay -Syyuu --topdown --cleanafter'",
                      update_interval=1800,
                      foreground=colors[2],
                      background=colors[1]),
        widget.TextBox(text="Updates",
                       padding=5,
                       foreground=colors[2],
                       background=colors[1]),
        widget.TextBox(text=" 🖬",
                       foreground=colors[2],
                       background=colors[1],
                       padding=0,
                       fontsize=14),
        widget.Memory(foreground=colors[2], background=colors[1], padding=5),
        widget.TextBox(text="",
                       foreground=colors[2],
                       background=colors[1],
                       padding=0,
                       fontsize=14),
        widget.Wlan(foreground=colors[2], background=colors[1], padding=5),
        widget.TextBox(text="🔉",
                       foreground=colors[2],
                       background=colors[1],
                       padding=0),
        widget.Volume(
            foreground=colors[2],
            background=colors[1],
            padding=5,
            emoji=False,
        ),
        widget.CurrentLayout(foreground=colors[2],
                             background=colors[1],
                             padding=5),
        widget.TextBox(text=" ",
                       foreground=colors[2],
                       background=colors[1],
                       padding=0),
        widget.Clock(foreground=colors[2],
                     background=colors[1],
                     format="%Y-%M-%d %H:%M"),
        widget.Systray(background=colors[1], icon_size=18, padding=1),
    ]
    return widgets_list
Example #27
0
                             change_command="brightnessctl s {0}",
                             fmt="\uf185 {}")
# TODO write my own simple volume widget
volume = widget.Volume(volume_app="pavucontrol", fmt="\uf028 {}")
battery = MyBattery(charge_char='\uf376',
                    empty_char='\uf244',
                    low_char='\ue0b1',
                    quarter_char='\uf243',
                    half_char='\uf242',
                    three_quarters_char='\uf241',
                    full_char='\uf240')

wifi = widget.Wlan(
    # format="{essid} {percent:2.0%}",
    update_interval=60,
    fmt="\uf1eb {}",
    mouse_callbacks={
        "Button1":
        lambda: qtile.cmd_spawn("{} -t nmtui -e nmtui".format(terminal))
    })

clock = widget.Clock(format='%m/%d/%Y- %a %I:%M %p')

widgets = [
    widget.GroupBox(),
    widget.Prompt(),
    widget.WindowName(),
    widget.Chord(chords_colors={
        'launch': ("#ff0000", "#ffffff"),
    }, ),
    widget.CurrentLayout(), seperator, wifi, seperator, volume, seperator,
    backlight, seperator, battery, seperator,
Example #28
0
def my_widgets():
    return [
        widget.TextBox(
            background                  = colors_standard[1],
            fontsize                    = 16,
            foreground                  = colors_custom[1],
            mouse_callbacks             = {
                'Button1': xmenu,
                'Button3': xmenu
            },
            padding                     = 10,
            text                        = '\U0000F111 '
        ),
        widget.GroupBox(
            active                      = colors_custom[7],
            background                  = colors_standard[1],
            borderwidth                 = 4,
            font                        = 'Sans Mono Bold',
            fontsize                    = 12,
            foreground                  = colors_standard[3],
            highlight_color             = colors_standard[2],
            highlight_method            = 'block',
            inactive                    = colors_custom[8],
            margin_x                    = 0,
            margin_y                    = 3,
            other_current_screen_border = colors_standard[1],
            other_screen_border         = colors_standard[1],
            padding_x                   = 3,
            padding_y                   = 5,
            rounded                     = False,
            this_current_screen_border  = colors_custom[9],
            this_screen_border          = colors_custom[13],
            use_mouse_wheel             = False
        ),
        my_sep(),
        widget.Prompt(
            font                        = 'SourceCodePro',
            fontsize                    = 16,
            foreground                  = colors_custom[7],
            prompt                      = ': '
        ),
        widget.Spacer(bar.STRETCH),
        my_sep(),
        widget.TextBox(
            background                  = colors_standard[1],
            fontsize                    = 35,
            foreground                  = colors_custom[1],
            padding                     = 0,
            text                        = '\U0000E0B2'
        ),
        widget.TextBox(
            background                  = colors_custom[1],
            font                        = 'Icons',
            fontsize                    = 16,
            foreground                  = '#000000',
            padding                     = 0,
            text                        = '\U0000F109  '
        ),
        widget.Memory(
            background                  = colors_custom[1],
            foreground                  = '#000000',
            format                      = 'RAM: {MemPercent}%',
            padding                     = 0,
            update_interval             = 1
        ),
        widget.CPU(
            background                  = colors_custom[1],
            foreground                  = '#000000',
            format                      = ' | CPU: {load_percent}%',
            padding                     = 0,
            update_interval             = 1
        ),
        my_sep(b=colors_custom[1], p=15),
        widget.TextBox(
            background                  = colors_custom[1],
            fontsize                    = 35,
            foreground                  = colors_custom[6],
            padding                     = 0,
            text                        = '\U0000E0B2'
        ),
        widget.CurrentLayoutIcon(
            background                  = colors_custom[6],
            custom_icon_paths           = [ os.path.join(qtile_root, 'icons_black_outline/') ],
            foreground                  = '#000000',
            padding                     = 0,
            scale                       = 0.5
        ),
        widget.CurrentLayout(
            background                  = colors_custom[6],
            foreground                  = '#000000',
            padding                     = 2
        ),
        my_sep(b=colors_custom[6], p=10),
        widget.TextBox(
            background                  = colors_custom[6],
            fontsize                    = 35,
            foreground                  = colors_custom[5],
            padding                     = 0,
            text                        = '\U0000E0B2'
        ),
        widget.TextBox(
            background                  = colors_custom[5],
            font                        = 'Icons',
            fontsize                    = 14,
            foreground                  = '#000000',
            mouse_callbacks = {
                'Button1': nm_applet,
                'Button3': close_nm_applet,
            },
            padding                     = 0,
            text                        = '\U0000F09E  '
        ),
        widget.Wlan(
            background                  = colors_custom[5],
            foreground                  = '#000000',
            format                      = '{essid}',
            interface                   = 'wlp1s0',
            mouse_callbacks = {
                'Button1': nm_applet,
                'Button3': close_nm_applet,
            },
            padding                     = 0
        ),
        my_sep(b=colors_custom[5], p=10),
        widget.TextBox(
            background                  = colors_custom[5],
            fontsize                    = 35,
            foreground                  = colors_custom[2],
            padding                     = 0,
            text                        = '\U0000E0B2'
        ),
        widget.TextBox(
            background                  = colors_custom[2],
            font                        = 'Icons',
            fontsize                    = 20,
            foreground                  = '#000000',
            padding                     = 0,
            text                        = '\U0000F2E4'
        ),
        widget.Backlight(
            background                  = colors_custom[2],
            backlight_name              = 'intel_backlight',
            foreground                  = '#000000',
            format                      = '{percent:2.0%}',
            padding                     = 5
        ),
        widget.TextBox(
            background                  = colors_custom[2],
            fontsize                    = 16,
            foreground                  = '#000000',
            padding                     = 5,
            text                        = '|'
        ),
        widget.TextBox(
            background                  = colors_custom[2],
            fontsize                    = 16,
            foreground                  = '#000000',
            padding                     = 5,
            text                        = '\U0000F028 '
        ),
        widget.Volume(
            background                  = colors_custom[2],
            foreground                  = '#000000',
            volume_app                  = 'alsamixer',
            update_interval             = 0.1
        ),
        widget.TextBox(
            background                  = colors_custom[2],
            fontsize                    = 16,
            foreground                  = '#000000',
            padding                     = 0,
            text                        = ' | '
        ),
        widget.Battery(
            background                  = colors_custom[2],
            charge_char                 = '\U0000F583',
            discharge_char              = '\U0000F57E',
            empty_char                  = '\U0000F58D',
            foreground                  = '#000000',
            format                      = '{char} {percent:2.0%}',
            fontsize                    = 16,
            full_char                   = '\U0000F578',
            low_percentage              = 0.21,
            padding                     = 0,
            show_short_text             = False,
            update_interval             = 1,
            unknown_char                = '\U0000F590'
        ),
        my_sep(b=colors_custom[2], p=10),
        widget.TextBox(
            background                  = colors_custom[2],
            fontsize                    = 35,
            foreground                  = colors_custom[3],
            padding                     = 0,
            text                        = '\U0000E0B2'
        ),
        widget.TextBox(
            background                  = colors_custom[3],
            fontsize                    = 16,
            foreground                  = '#000000',
            padding                     = 2,
            text                        = '\U0000F5ED '
        ),
        widget.Clock(
            background                  = colors_custom[3],
            foreground                  = '#000000',
            format                      = '%a, %b %d - %Y',
            padding                     = 0
        ),
        widget.TextBox(
            background                  = colors_custom[3],
            fontsize                    = 16,
            foreground                  = '#000000',
            padding                     = 0,
            text                        = ' | '
        ),
        widget.TextBox(
            background                  = colors_custom[3],
            fontsize                    = 16,
            foreground                  = '#000000',
            padding                     = 0,
            text                        = '\U0000E384 '
        ),
        widget.Clock(
            background                  = colors_custom[3],
            foreground                  = '#000000',
            format                      = '%H:%M',
            padding                     = 5
        ),
        my_sep(b=colors_custom[3], p=5),
    ]
Example #29
0
                foreground=ColorA),
 widget.WindowName(mouse_callbacks = {'Button1': lambda : qtile.cmd_spawn('dmen')},
                   foreground=ColorG,
                   background=ColorB,
                   padding=10),
 widget.TextBox(text='\uE0B2',
                background=ColorB,
                fontsize=20,
                padding=0,
                foreground=ColorA),
 widget.TextBox(mouse_callbacks = {'Button1': lambda : qtile.cmd_spawn('urxvt -e nmtui')},
                text='',
                background=ColorA,
                foreground=ColorG),
 widget.Wlan(interface='wlp0s19f2u1',
             update_interval=3,
             background=ColorA,
             foreground=ColorG),
 widget.TextBox(text='\uE0B2',
                background=ColorA,
                fontsize=20,
                padding=0,
                foreground=ColorB),
 widget.CPU (foreground=ColorG,
             background=ColorB),
 widget.TextBox(mouse_callbacks = {'Button1': lambda : qtile.cmd_spawn('urxvt -e htop')},
                text='',
                foreground=ColorG,
                background=ColorB),
 widget.Memory(foreground=ColorG,
               background=ColorB),
 widget.TextBox(text='\uE0B2',
Example #30
0
                                highlight_method='border'),
                # widget.Chord(
                # chords_colors={
                # 'launch': ("#ff0000", "#ffffff"),
                # },
                # name_transform=lambda name: name.upper(),
                # ),
                widget.WindowName(),
                widget.Systray(),
                widget.Spacer(length=5),
                widget.CPU(format='  {freq_current}GHz {load_percent}%'),
                widget.Memory(),
                widget.Spacer(length=5),
                widget.DF(visible_on_warn=False, format='{uf} {m}'),
                widget.Spacer(length=5),
                widget.Wlan(format='WIFI {percent:2.0%}'),
                widget.PulseVolume(limit_max_volume=True),
                widget.Spacer(length=5),
                widget.Clock(format='%d.%m.%Y %H:%M:%S'),
                widget.QuickExit(),
            ],
            # background='#1b2128'
            24,
            background='#1b2128'), ),
]

# Drag floating layouts.
mouse = [
    Drag([mod],
         "Button1",
         lazy.window.set_position_floating(),