Ejemplo n.º 1
0
# DEFAULT WIDGET SETTINGS
widget_defaults = dict(font="Monospace",
                       fontsize=12,
                       padding=2,
                       background=colors[0])
extension_defaults = widget_defaults.copy()

screens = [
    Screen(
        top=bar.Bar(
            [
                widget.CurrentLayoutIcon(
                    scale=0.7,
                    custom_icon_paths=[
                        os.path.expanduser("~/.config/qtile/icons")
                    ],
                    padding=4,
                    foreground=colors[7],
                    background=colors[5],
                ),
                widget.CurrentLayout(
                    padding=4,
                    foreground=colors[7],
                    background=colors[5],
                ),
                widget.Sep(
                    padding=4,
                    linewidth=0,
                    background=colors[5],
                ),
                widget.Sep(
Ejemplo n.º 2
0
    # layout.VerticalTile(),
    # layout.Zoomy(),
]

widget_defaults = dict(
    font="Ubuntu Regular",
    fontsize=14,
    padding=3,
    foreground="ebdbb2",
)
extension_defaults = widget_defaults.copy()

slave_screen = Screen(top=bar.Bar(
    [
        widget.Spacer(length=10),
        widget.CurrentLayoutIcon(scale=0.6),
        widget.GroupBox(
            active="ebdbb2",
            inactive="665c54",
            this_current_screen_border="ebdbb2",
            highlight_method="line",
            highlight_color=["3c3836", "3c3836"],
            center_aligned=True,
        ),
        widget.WindowName(width=600, for_current_screen=True),
        widget.Spacer(length=bar.STRETCH),
        widget.Clock(format="<b>%H:%M %d.%m.%Y</b>"),
        widget.Spacer(length=bar.STRETCH),
        widget.Spacer(length=10),
    ],
    30,
Ejemplo n.º 3
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 = "enp4s0",
               #        format = '{down} ↓↑ {up}',
                #       foreground = colors[2],
                 #      background = colors[4],
                  #     padding = 5
                   #    ),
              widget.TextBox(
                       text = '',
                       background = colors[0],
                       foreground = colors[5],
                       padding = 0,
                       fontsize = 37
                       ),
              #widget.TextBox(
               #        text = " 🌡",
                #       padding = 2,
                 #      foreground = colors[2],
                  #     background = colors[5],
                   #    fontsize = 11
                    #   ),
              #widget.ThermalSensor(
               #        foreground = colors[2],
                #       background = colors[5],
                 #      threshold = 90,
                  #     padding = 5
                   #    ),
              widget.CPU(
                         foreground = colors[2],
                         background = colors[5],
                         padding = 5,
                         format = '{load_percent}%'
                          ),
              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 = " karl-x99 ",
                       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
Ejemplo n.º 4
0
    separator(),
    widget.WindowName(**base(fg='focus'), fontsize=14, padding=5),
    separator(),
]

primary_widgets = [
    *workspaces(),
    separator(),
    powerline('color4', 'dark'),
    icon(bg="color4", text=' '),  # Icon: nf-fa-download
    widget.Pacman(**base(bg='color4'), update_interval=1800),
    powerline('color3', 'color4'),
    icon(bg="color3", text=' '),  # Icon: nf-fa-feed
    widget.Net(**base(bg='color3'), interface='wlp2s0'),
    powerline('color2', 'color3'),
    widget.CurrentLayoutIcon(**base(bg='color2'), scale=0.65),
    widget.CurrentLayout(**base(bg='color2'), padding=5),
    powerline('color1', 'color2'),
    icon(bg="color1", fontsize=17, text=' '),  # Icon: nf-mdi-calendar_clock
    widget.Clock(**base(bg='color1'), format='%d/%m | %H:%M '),
    powerline('dark', 'color1'),
    widget.Systray(background=colors['dark'], padding=5),
]

secondary_widgets = [
    *workspaces(),
    separator(),
    powerline('color1', 'dark'),
    widget.CurrentLayoutIcon(**base(bg='color1'), scale=0.65),
    widget.CurrentLayout(**base(bg='color1'), padding=5),
]
Ejemplo n.º 5
0
def init_widgets_list():
    widgets_list = [
        widget.Sep(linewidth=0,
                   padding=5,
                   foreground=colors[2],
                   background=colors[0]),
        widget.GroupBox(font="Ubuntu Bold",
                        fontsize=10,
                        margin_y=3,
                        margin_x=0,
                        padding_y=3,
                        padding_x=3,
                        borderwidth=3,
                        active=colors[5],
                        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=6,
                   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=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('pamac-manager')
                      },
                      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 = " 🌡",
        #          padding = 2,
        #          foreground = colors[2],
        #          background = colors[5],
        #          fontsize = 11
        #          ),
        widget.CPU(format='CPU {load_percent}%',
                   mouse_callbacks={
                       'Button1':
                       lambda qtile: qtile.cmd_spawn(myTerm + ' -e bashtop')
                   },
                   foreground=colors[2],
                   background=colors[5],
                   padding=5),
        widget.TextBox(text='',
                       background=colors[5],
                       foreground=colors[4],
                       padding=0,
                       fontsize=37),
        widget.TextBox(text=" 🖬",
                       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 htop')
                      },
                      padding=5),
        widget.TextBox(text='',
                       background=colors[4],
                       foreground=colors[5],
                       padding=0,
                       fontsize=37),
        widget.Net(interface="wlp1s0",
                   format='{down}↓↑{up}',
                   foreground=colors[2],
                   background=colors[5],
                   padding=5),
        widget.TextBox(text='',
                       background=colors[5],
                       foreground=colors[4],
                       padding=0,
                       fontsize=37),
        widget.TextBox(text=" ",
                       foreground=colors[2],
                       background=colors[4],
                       padding=0,
                       fontsize=14),
        widget.Battery(format='{percent:2.0%}',
                       foreground=colors[2],
                       background=colors[4],
                       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=2),
        widget.Volume(channel='Master',
                      volume_app='alsamixer',
                      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 [%I:%M%P]"
            # mouse_callbacks = {'Button1': lambda qtile: qtile.cmd_spawn(myTerm + ' ')},
        ),
        widget.Sep(linewidth=0,
                   padding=5,
                   foreground=colors[0],
                   background=colors[5]),
        widget.Systray(background=colors[0], padding=5),
        widget.Sep(linewidth=0,
                   padding=5,
                   foreground=colors[2],
                   background=colors[0]),
    ]
    return widgets_list
Ejemplo n.º 6
0
            padding=6,
            foreground=colors2['background'],
            background=colors2['background']),
 widget.Notify(background=colors2['background'], ),
 # widget.TextBox(
 #     text='',
 #     background=colors2['background'],
 #     foreground=colors[4],
 #     padding=0,
 #     fontsize=37
 # ),
 # get_even_powerline(),
 get_powerline(True),
 widget.CurrentLayoutIcon(
     scale=0.7,
     foreground=colors2['color1'],
     background=get_bg_color(),
 ),
 get_powerline(),
 # get_odd_powerline(),
 # widget.TextBox(
 #     text='',
 #     background=colors[4],
 #     foreground=colors[5],
 #     padding=0,
 #     fontsize=37
 # ),
 # widget.Net(
 #     interface = "enp1s0",
 #     format = '{down} ↓↑ {up}',
 #     foreground = colors[2],
Ejemplo n.º 7
0
# widgets - extensions - screens
#

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

screens = [
    Screen(
        bottom=bar.Bar(
            [
                # widget.CurrentLayout(foreground='#8b3826'),
                widget.CurrentLayoutIcon(foreground="8b3826"),
                widget.GroupBox(),
                widget.Prompt(
                    foreground="#a30d53", background="#666666", prompt="$ "),
                widget.WindowName(),
                widget.Notify(),
                # widget.TextBox("default config", name="default",
                # foreground='#8b3626'),
                widget.Net(interface="enp37s0",
                           foreground="#666666",
                           format=" {down} ↓↑ {up}"),
                widget.Systray(),
                widget.ThermalSensor(),
                widget.Clock(format=" %a %d.%m  %H:%M %p",
                             foreground="#8b3626"),
                widget.Pomodoro(prefix_inactive="P "),
Ejemplo n.º 8
0
     highlight_color="#cccccc55",
 ),
 widget.WindowName(),
 widget.Sep(
     linewidth=0,
     padding=40,
 ),
 widget.Systray(),
 widget.TextBox(
     text="",
     padding=-9,
     fontsize=50,
     foreground=colors[4],
 ),
 widget.CurrentLayoutIcon(foreground=colors[0],
                          background=colors[4],
                          padding=0,
                          scale=0.7),
 widget.CurrentLayout(background=colors[4], padding=5),
 widget.TextBox(
     text="",
     padding=-9,
     fontsize=50,
     foreground=colors[2],
     background=colors[4],
 ),
 widget.TextBox(text="⟳", background=colors[2], padding=3),
 widget.CheckUpdates(
     update_interval=1800,
     distro="Arch_checkupdates",
     display_format="{updates} Updates",
     no_update_string="0 Updates",
Ejemplo n.º 9
0
def init_widgets_list():
    prompt = "{0}@{1}: ".format(os.environ["USER"], socket.gethostname())
    widgets_list = [
        widget.GroupBox(font="FontAwesome",
                        fontsize=14,
                        margin_y=3,
                        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="UbuntuMono Nerd Font",
                             fontsize=14,
                             foreground=colors[5],
                             background=colors[1]),
        widget.Sep(linewidth=1,
                   padding=10,
                   foreground=colors[2],
                   background=colors[1]),
        widget.WindowName(font="UbuntuMono Nerd Font",
                          fontsize=14,
                          foreground=colors[5],
                          background=colors[1]),
        widget.Sep(linewidth=1,
                   padding=10,
                   foreground=colors[2],
                   background=colors[1]),
        widget.CurrentLayoutIcon(foreground=colors[5],
                                 background=colors[1],
                                 padding=0,
                                 scale=0.7),
        widget.Sep(linewidth=1,
                   padding=10,
                   foreground=colors[2],
                   background=colors[1]),
        widget.TextBox(text="  🖥️ ",
                       foreground=colors[6],
                       background=colors[1],
                       mouse_callbacks={
                           'Button1':
                           lambda qtile: qtile.cmd_spawn(myTerm + ' -e gtop')
                       },
                       padding=2,
                       fontsize=12),
        widget.CPU(format='{load_percent}% ',
                   font="UbuntuMono Nerd Font",
                   fontsize=14,
                   foreground=colors[5],
                   background=colors[1],
                   update_interval=3),
        widget.Sep(linewidth=1,
                   padding=10,
                   foreground=colors[2],
                   background=colors[1]),
        widget.TextBox(text="  🧠 ",
                       foreground=colors[4],
                       background=colors[1],
                       mouse_callbacks={
                           'Button1':
                           lambda qtile: qtile.cmd_spawn(myTerm + ' -e htop')
                       },
                       padding=0,
                       fontsize=12),
        widget.Memory(font="UbuntuMono Nerd Font",
                      format='{MemUsed}M/{MemTotal}M ',
                      update_interval=1,
                      fontsize=14,
                      foreground=colors[5],
                      background=colors[1]),
        widget.Sep(linewidth=1,
                   padding=10,
                   foreground=colors[2],
                   background=colors[1]),
        widget.TextBox(text=" 🌡️",
                       padding=2,
                       foreground=colors[5],
                       background=colors[1],
                       mouse_callbacks={
                           'Button1': lambda qtile: qtile.cmd_spawn('xsensors')
                       },
                       fontsize=12),
        widget.ThermalSensor(font="UbuntuMono Nerd Font",
                             fontsize=14,
                             fmt='{} ',
                             foreground=colors[5],
                             background=colors[1],
                             threshold=90,
                             padding=5),
        widget.Sep(linewidth=1,
                   padding=10,
                   foreground=colors[2],
                   background=colors[1]),
        widget.TextBox(text=" 💾",
                       foreground=colors[5],
                       background=colors[1],
                       mouse_callbacks={
                           'Button1':
                           lambda qtile: qtile.cmd_spawn('xdiskusage')
                       },
                       padding=0,
                       fontsize=12),
        widget.GenPollText(update_interval=60,
                           fmt=' {} ',
                           font="UbuntuMono Nerd Font",
                           fontsize=14,
                           func=lambda: subprocess.check_output(
                               "/home/steve/dwmscripts/qtiledisk").decode(
                                   "utf-8").replace('\n', ''),
                           foreground=colors[5],
                           background=colors[1]),
        widget.Sep(linewidth=1,
                   padding=10,
                   foreground=colors[2],
                   background=colors[1]),
        widget.TextBox(
            text=" 🔊",
            foreground=colors[5],
            background=colors[1],
            mouse_callbacks={
                'Button1':
                lambda qtile: qtile.cmd_spawn(myTerm + ' -e pulsemixer')
            },
            padding=0,
            fontsize=12),
        widget.Volume(font="UbuntuMono Nerd Font",
                      fontsize=14,
                      fmt='{} ',
                      channel='Master',
                      foreground=colors[5],
                      background=colors[1],
                      padding=5),
        widget.Sep(linewidth=1,
                   padding=10,
                   foreground=colors[2],
                   background=colors[1]),
        widget.Battery(format='{char}{percent:2.0%}',
                       charge_char='⚡ ',
                       discharge_char='🔋 '),
        widget.Sep(linewidth=1,
                   padding=10,
                   foreground=colors[2],
                   background=colors[1]),
        widget.TextBox(text=" 🛠️ ",
                       foreground=colors[5],
                       background=colors[1],
                       mouse_callbacks={
                           'Button1':
                           lambda qtile: qtile.cmd_spawn('pamac-manager')
                       },
                       padding=0,
                       fontsize=12),
        widget.GenPollText(update_interval=1800,
                           fmt=' {} ',
                           font="UbuntuMono Nerd Font",
                           fontsize=14,
                           func=lambda: subprocess.check_output(
                               "/home/steve/dwmscripts/qtileupdates").decode(
                                   "utf-8").replace('\n', ''),
                           foreground=colors[5],
                           background=colors[1]),
        widget.Sep(linewidth=1,
                   padding=10,
                   foreground=colors[2],
                   background=colors[1]),
        widget.TextBox(text=" 📅 ", padding=0, fontsize=12),
        widget.Clock(foreground=colors[5],
                     background=colors[1],
                     font="UbuntuMono Nerd Font",
                     fontsize=14,
                     format="%d-%m-%Y %H:%M"),
        widget.Sep(linewidth=1,
                   padding=10,
                   foreground=colors[2],
                   background=colors[1]),
    ]
    return widgets_list
Ejemplo n.º 10
0
             widget.Prompt(),
             widget.WindowName(),
             widget.Sep(),
             widget.TextBox(FA_ICONS['wifi'], foreground=COLORS['n_green']),
             widget.Net(interface='wlp59s0', foreground=COLORS['n_green']),
             widget.TextBox(FA_ICONS['microchip'], foreground=COLORS['n_yellow']),
             widget.CPUGraph(frequency=2, graph_color=COLORS['n_yellow'], line_width=1),
             widget.TextBox(FA_ICONS['memory'], foreground=COLORS['n_blue']),
             widget.MemoryGraph(frequency=2, graph_color=COLORS['n_blue'], line_width=1),
             widget.TextBox(FA_ICONS['battery-full'], foreground=COLORS['n_magenta']),
             widget.Battery(foreground=COLORS['n_magenta']),
             widget.Sep(),
             widget.Clock(format='%Y-%m-%d %a %I:%M %p', foreground=COLORS['n_cyan']),
             widget.Systray(),
             widget.Sep(),
             widget.CurrentLayoutIcon(scale=0.7)
         ],
         24
     )
 ),
 Screen(
     bottom=bar.Bar(
         [
             widget.GroupBox(highlight_method='line', this_current_screen_border='fea63c'),
             widget.WindowName(),
             widget.Clock(format='%Y-%m-%d %a %I:%M %p', foreground=COLORS['n_cyan']),
             widget.CurrentLayoutIcon(scale=0.7)
         ],
         24
     )
 ),
Ejemplo n.º 11
0
def init_widgets_list():
    widgets_list = [
        widget.Sep(linewidth=0,
                   padding=6,
                   foreground=colors[2],
                   background=colors[0]),
        widget.GroupBox(font="Meslo",
                        fontsize=9,
                        margin_y=3,
                        margin_x=0,
                        padding_y=5,
                        padding_x=3,
                        borderwidth=3,
                        active=colors[2],
                        inactive=colors[2],
                        rounded=False,
                        highlight_color=colors[1],
                        highlight_method="line",
                        this_current_screen_border=colors[3],
                        this_screen_border=colors[4],
                        other_current_screen_border=colors[0],
                        other_screen_border=colors[0],
                        foreground=colors[2],
                        background=colors[0]),
        widget.Prompt(prompt=prompt,
                      font="Meslo",
                      padding=10,
                      foreground=colors[3],
                      background=colors[1]),
        widget.Sep(linewidth=0,
                   padding=40,
                   foreground=colors[2],
                   background=colors[0]),
        widget.WindowName(foreground=colors[6],
                          background=colors[0],
                          padding=0),
        widget.TextBox(text='â—¥',
                       background=colors[0],
                       foreground=colors[5],
                       padding=0,
                       fontsize=37),
        widget.TextBox(text=" 🌡",
                       padding=2,
                       foreground=colors[2],
                       background=colors[5],
                       fontsize=11),
        widget.ThermalSensor(foreground=colors[2],
                             background=colors[5],
                             threshold=90,
                             padding=5),
        widget.TextBox(text='â—¥',
                       background=colors[5],
                       foreground=colors[4],
                       padding=0,
                       fontsize=37),
        widget.CheckUpdates(
            update_interval=1800,
            foreground=colors[2],
            distro="Arch",
            mouse_callbacks={
                'Button1':
                lambda qtile: qtile.cmd_spawn(myTerm + ' -e sudo pacman -Syu')
            },
            background=colors[4]),
        widget.TextBox(text='â—¥',
                       background=colors[4],
                       foreground=colors[5],
                       padding=0,
                       fontsize=37),
        widget.TextBox(text=" 🖬",
                       foreground=colors[2],
                       background=colors[5],
                       padding=0,
                       fontsize=14),
        widget.Memory(foreground=colors[2],
                      background=colors[5],
                      mouse_callbacks={
                          'Button1':
                          lambda qtile: qtile.cmd_spawn(myTerm + ' -e htop')
                      },
                      padding=5),
        widget.TextBox(text='â—¥',
                       background=colors[5],
                       foreground=colors[4],
                       padding=0,
                       fontsize=37),
        #widget.Net(
        #         interface = "wlp2s0",
        #         format = '{down:<9}↓↑{up:<9}',
        #         font = 'Meslo',
        #         foreground = colors[2],
        #         background = colors[4],
        #         padding = 5,
        #         fontsize = 9
        #         ),
        widget.NetGraph(foreground=colors[2],
                        background=colors[4],
                        padding=5,
                        type='line',
                        border_width=0,
                        line_width=2,
                        graph_color=colors[2],
                        samples=100,
                        border_color=colors[4],
                        fill_color=colors[4]),
        widget.TextBox(text='â—¥',
                       background=colors[4],
                       foreground=colors[5],
                       padding=0,
                       fontsize=37),
        widget.TextBox(text=" Vol:",
                       foreground=colors[2],
                       background=colors[5],
                       padding=0),
        widget.Volume(foreground=colors[2], background=colors[5], padding=5),
        widget.TextBox(text='â—¥',
                       background=colors[5],
                       foreground=colors[4],
                       padding=0,
                       fontsize=37),
        widget.CurrentLayoutIcon(
            custom_icon_paths=[os.path.expanduser("~/.config/qtile/icons")],
            foreground=colors[0],
            background=colors[4],
            padding=0,
            scale=0.7),
        widget.TextBox(text=' â—¥',
                       background=colors[4],
                       foreground=colors[5],
                       padding=0,
                       fontsize=37),
        widget.Clock(foreground=colors[2],
                     background=colors[5],
                     format="%a, %b %d  [ %H:%M ]"),
        widget.Sep(linewidth=0,
                   padding=10,
                   foreground=colors[0],
                   background=colors[5]),
        # widget.TextBox(
        #          text = '',
        #          background = colors[5],
        #          foreground = colors[4],
        #          padding = 0,
        #          fontsize = 37
        #          ),
        # widget.Battery(
        #          foreground = colors[2],
        #          background = colors[4],
        #          ),
        #widget.Systray(
        #         background = colors[0],
        #         padding = 5
        #         ),
    ]
    return widgets_list
Ejemplo n.º 12
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 = 9,
                        margin_y = 3,
                        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="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=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=" 🌡",
                        padding = 2,
                        foreground=colors[2],
                        background=colors[5],
                        fontsize=11
                        ),
               widget.ThermalSensor(
                        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=14
                        ),
               widget.Pacman(
                        execute = "alacritty",
                        update_interval = 1800,
                        foreground = colors[2],
                        background = colors[4]
                        ),
               widget.TextBox(
                        text="Updates",
                        padding = 5,
                        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],
                        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.Sep(
                        linewidth = 0,
                        padding = 10,
                        foreground = colors[0],
                        background = colors[5]
                        ),
               widget.Systray(
                        background=colors[0],
                        padding = 5
                        ),
              ]
    return widgets_list
Ejemplo n.º 13
0
                markup=True,
                fontsize=10,
                update_delay=30,
                format=('<b>{char}{percent:2.0%}\n{hour:d}:{min:02d}</b>'),
                _t_factory={
                    'foreground': 'Trailer.fg',
                    'background': 'Trailer.bg'
                }),
            w.Chord(name='chord_display',
                    _t_factory={
                        'foreground': 'Alert.bold',
                        'background': 'Trailer.bg'
                    }),
            w.CurrentLayoutIcon(scale=0.7,
                                _t_factory={
                                    'foreground': 'Trailer.fg',
                                    'background': 'Trailer.bg'
                                }),
            w.Clock(format='%Y/%m/%d\n<b>%2H:%2M:%2S</b>',
                    markup=True,
                    fontsize=10,
                    _t_factory={
                        'foreground': 'Trailer.fg',
                        'background': 'Trailer.bg'
                    }),
        ],
        N_BAR_HEIGHT,
        _t_factory={'background': 'Bar.bg'}))

screens = [screen_0]
for i in range(1, 4):
Ejemplo n.º 14
0
def init_widgets_list():
    prompt = "{0}@{1}: ".format(os.environ["USER"], socket.gethostname())
    widgets_list = [
        widget.Sep(linewidth=0,
                   padding=6,
                   foreground=colors[2][0],
                   background=colors[0][0]),
        widget.GroupBox(
            font="Ubuntu Mono Bold",
            fontsize=10,
            margin_y=2,
            margin_x=0,
            padding_y=5,
            padding_x=5,
            borderwidth=3,
            active=colors[2],
            inactive=colors[2],
            rounded=False,
            highlight_method="block",
            this_current_screen_border=colors[5],
            this_screen_border=colors[1],
            other_current_screen_border=colors[0],
            other_screen_border=colors[0],
            foreground=colors[2],
            background=colors[0],
            disable_drag=True,
            hide_unused=False,
        ),
        widget.CurrentLayoutIcon(foreground=colors[2],
                                 background=colors[0],
                                 padding=10),
        widget.Prompt(prompt=prompt,
                      font="Ubuntu Mono",
                      padding=10,
                      foreground=colors[3],
                      background=colors[1]),
        widget.WindowName(font="Ubuntu Mono",
                          fontsize=17,
                          foreground=colors[5],
                          background=colors[0],
                          padding=3),
        widget.Battery(
            foreground=colors[2],
            background=colors[0],
            font="Ubuntu Mono",
            padding=0,
            # fontsize=15,
            discharge_char="",
            charge_char="^",
            format=" [ Bat:{percent: 1.0%}{char} ] ",
            show_short_text=False,
            notify_below=20,
            unknown_char='',
            update_interval=5),
        widget.Clock(
            foreground=colors[2],
            background=colors[0],
            format="[%A, %B %d ] [ %H:%M ]",
            # fontsize = 15,
        ),
        widget.Systray(background=colors[0], padding=5),
    ]
    return widgets_list
Ejemplo n.º 15
0
     other_screen_border=["#0f101a", "#0f101a"],
 ),
 widget.WindowName(
     foreground=["#a151d3", "#a151d3"],
     background=["#0f101a", "#0f101a"],
     fontsize=13,
     font='UbuntuMono Nerd Font Bold',
 ),
 widget.Systray(),
 widget.Sep(
     linewidth=0,
     padding=5,
     background=["#fb9f7f", "#fb9f7f"],
 ),
 widget.CurrentLayoutIcon(foreground=["#0f101a", "#0f101a"],
                          background=["#fb9f7f", "#fb9f7f"],
                          scale=0.65),
 widget.CurrentLayout(
     foreground=["#0f101a", "#0f101a"],
     background=["#fb9f7f", "#fb9f7f"],
 ),
 widget.Sep(
     linewidth=0,
     padding=5,
     background=["#fb9f7f", "#fb9f7f"],
 ),
 widget.TextBox(background=["#a151d3", "#a151d3"],
                foreground=["#0f101a", "#0f101a"],
                text=' '),
 widget.Clock(background=["#a151d3", "#a151d3"],
              foreground=["#0f101a", "#0f101a"],
Ejemplo n.º 16
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=9,
                        margin_y=3,
                        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="Ubuntu Mono",
                      padding=10,
                      foreground=colors[3],
                      background=colors[1]),
        # widget.Sep(
        #          linewidth = 0,
        #          padding = 40,
        #          foreground = colors[2],
        #          background = colors[0]
        #          ),
        #arcobattery.BatteryIcon(
        #         theme_path = os.path.expanduser('~/.config/qtile/icons/battery_icons_horiz')
        #    ),
        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.CurrentLayoutIcon(
            custom_icon_paths=[os.path.expanduser("~/.config/qtile/icons")],
            foreground=colors[0],
            background=colors[4],
            padding=0,
            scale=0.7),
        widget.CurrentLayout(font="Noto Sans Bold",
                             foreground=colors[7],
                             background=colors[4],
                             padding=5),
        widget.TextBox(text='',
                       background=colors[4],
                       foreground=colors[5],
                       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=" 🌡",
                       padding=2,
                       foreground=colors[2],
                       background=colors[5],
                       fontsize=11),
        widget.ThermalSensor(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=14),
        widget.Pacman(
            execute="alacritty",
            # update_interval = 1800,
            update_interval=300,
            foreground=colors[2],
            background=colors[4]),
        widget.TextBox(text="Updates",
                       padding=5,
                       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], padding=5),
        widget.TextBox(text='',
                       background=colors[5],
                       foreground=colors[4],
                       padding=0,
                       fontsize=37),
        widget.Net(
            # interface = "enp6s0",
            interface="enp0s3",
            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.TextBox(
        #          font="FontAwesome",
        #          text="  ",
        #          foreground=colors[6],
        #          background=colors[1],
        #          padding = 0,
        #          fontsize=16
        #          ),
        # widget.CPUGraph(
        #          border_color = colors[2],
        #          fill_color = colors[8],
        #          graph_color = colors[8],
        #          background=colors[1],
        #          border_width = 1,
        #          line_width = 1,
        #          core = "all",
        #          type = "box"
        #          ),
        # widget.Sep(
        #          linewidth = 1,
        #          padding = 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[3],
        #          background=colors[1],
        #          padding = 0,
        #          fontsize=16
        #          ),
        #
        #
        #
        widget.Clock(background=colors[4],
                     foreground=colors[2],
                     format="%A, %B %d  [ %H:%M ]"),
        widget.Sep(linewidth=0,
                   padding=10,
                   foreground=colors[0],
                   background=colors[5]),
        widget.Systray(foreground=colors[5], background=colors[0], padding=5),
    ]
    return widgets_list
Ejemplo n.º 17
0
def init_widgets():
    widgets_list = [
        widget.Sep(linewidth=0,
                   padding=6,
                   foreground=special_colors['foreground'],
                   background=special_colors['background']),
        widget.Image(background=special_colors['background'],
                     filename="/home/mk/.config/qtile/icons/search.png",
                     mouse_callbacks={
                         'Button1':
                         lambda qtile: qtile.cmd_spawn(
                             'rofi -show drun -theme startmenu')
                     },
                     margin=6,
                     scale=True),
        widget.Sep(linewidth=0,
                   padding=6,
                   foreground=special_colors['foreground'],
                   background=special_colors['background']),
        widget.GroupBox(
            font="SF Pro Display",
            fontsize=28,
            margin_y=3,
            margin_x=0,
            padding_y=20,
            padding_x=20,
            borderwidth=3,
            active=special_colors['foreground'],
            inactive=special_colors['foreground'],
            rounded=False,
            center_aligned=True,
            highlight_color=normal_colors['color0'],
            highlight_method="block",
            this_current_screen_border=normal_colors['color0'],
            this_screen_border=normal_colors['color0'],
            other_current_screen_border=special_colors['background'],
            other_screen_border=special_colors['background'],
            foreground=special_colors['foreground'],
            background=special_colors['background']),
        widget.CurrentLayoutIcon(
            custom_icon_paths=[os.path.expanduser("~/.config/qtile/icons")],
            foreground=special_colors['foreground'],
            background=special_colors['background'],
            padding=0,
            scale=0.5),
        widget.Spacer(background=special_colors['background']),
        widget.Systray(background=special_colors['background'],
                       icon_size=38,
                       padding=8),
        widget.Sep(linewidth=0,
                   padding=20,
                   foreground=special_colors['background'],
                   background=special_colors['background'],
                   size_percent=80),
        widget.TextBox(
            text="VOL:",
            background=special_colors['background'],
            foreground=special_colors['foreground'],
        ),
        widget.Volume(
            background=special_colors['background'],
            foreground=special_colors['foreground'],
            step=5,
            # padding=10
        ),
        widget.Battery(background=special_colors['background'],
                       foreground=special_colors['foreground'],
                       format='BAT: {percent:2.0%}',
                       padding=20),
        widget.Clock(foreground=special_colors['foreground'],
                     background=special_colors['background'],
                     format="%a %d, %H:%M"),
        widget.Sep(linewidth=0,
                   padding=10,
                   foreground=special_colors['background'],
                   background=special_colors['background'])
    ]
    return widgets_list
Ejemplo n.º 18
0
                    format = '  {essid} {percent:2.0%} |'
                    ),
                widget.Net(
                    background = colors[4],
                    foreground = fgcolor,
                    format = '{down}  {up} ',
                    disconnected_message = 'N/A',
                    ),
                widget.TextBox(
                    " Layout:",
                    background = colors[5],
                    foreground = fgcolor,
                    ),
                widget.CurrentLayoutIcon(
                    background = colors[5],
                    foreground = fgcolor,
                    scale = 0.7,
                    padding = 8,
                    ),
#                widget.CurrentLayout(
#                    background = colors[5],
#                    foreground = fgcolor,
#                    padding = 5,
#                    ),
                widget.Volume(
                    emoji = False,
                    background = colors[6],
                    foreground = fgcolor,
                    fmt = ' {}',
                    padding = 8,
                    ),
                widget.Clock(
Ejemplo n.º 19
0
from libqtile import bar, widget
from settings.theme import colors

primary = bar.Bar(
    [
        widget.GroupBox(active=colors['green'],
                        this_current_screen_border=colors['yellow'],
                        urgent_color=colors['magenta'],
                        urgent_border=colors['magenta'],
                        borderwidth=1),
        widget.CurrentLayoutIcon(),
        widget.Prompt(),
        widget.TaskList(border=colors['blue'], borderwidth=1),
        widget.Mpd2(),
        widget.PulseVolume(update_interval=2),
        widget.TextBox('|'),
        widget.Systray(),
        widget.TextBox('|'),
        widget.ThermalSensor(),
        widget.TextBox('|'),
        widget.CPUGraph(graph_color=colors['green'],
                        border_color=colors['black'],
                        samples=30),
        widget.MemoryGraph(graph_color=colors['blue'],
                           border_color=colors['black'],
                           samples=30),
        widget.NetGraph(graph_color=colors['yellow'],
                        border_color=colors['black'],
                        samples=30),
        widget.Wlan(interface="wlp2s0"),
        widget.TextBox('|'),
Ejemplo n.º 20
0
def init_widgets_list():
    prompt = "{0}@{1}: ".format(os.environ["USER"], socket.gethostname())
    widgets_list = [
        widget.Sep(linewidth=0,
                   padding=6,
                   foreground=colors[2],
                   background=colors[1]),
        widget.TextBox(
            text="",  #"",
            foreground=colors[0],
            fontsize=23,
            background=colors[1],
            #filename = '~/.config/qtile/icons/150.png',
            mouse_callbacks={
                'Button1': lambda: qtile.cmd_spawn('rofi -show run')
            }),
        widget.Sep(linewidth=0,
                   padding=6,
                   foreground=colors[2],
                   background=colors[1]),
        widget.GroupBox(font="Jetbrains Mono",
                        fontsize=16,
                        margin_y=3,
                        margin_x=0,
                        padding_y=5,
                        padding_x=3,
                        borderwidth=3,
                        active=colors[2],
                        inactive=colors[0],
                        rounded=False,
                        highlight_color=colors[12],
                        highlight_method="line",
                        this_screen_border=DARK_BLUE,
                        other_screen_border=DARK_ORANGE,
                        this_current_screen_border=BLUE,
                        other_current_screen_border=ORANGE,
                        foreground=colors[0],
                        background=colors[1]),
        widget.Prompt(prompt=prompt,
                      font="all-the-icons",
                      padding=10,
                      foreground=colors[3],
                      background=colors[1]),
        widget.TextBox(text=" ",
                       foreground=colors[1],
                       background=colors[1],
                       fontsize=57,
                       padding=-6),
        widget.TextBox(text="◤",
                       foreground=colors[1],
                       background=colors[0],
                       fontsize=57,
                       padding=-10),
        widget.Clock(
            fontsize=14,
            foreground=colors[2],
            background=colors[0],
            #timezone = 'Asia/Karachi',
            padding=6,
            format=" %A, %B %d [%H:%M] "),
        widget.WindowName(fontsize=14,
                          foreground=colors[0],
                          background=colors[0],
                          padding=0),
        # widget.TextBox(
        #          text='',
        #          background = colors[8],
        #          foreground = colors[7],
        #          padding=0,
        #          fontsize=37
        #          ),
        widget.TextBox(text="",
                       foreground=colors[1],
                       background=colors[0],
                       fontsize=57,
                       padding=-5),
        widget.TextBox(text="◤",
                       foreground=colors[0],
                       background=colors[1],
                       fontsize=57,
                       padding=-10),
        #              widget.TextBox(
        #                        text="",
        #                        foreground=colors[9],
        #                        background=colors[1],
        #                        padding = 0,
        #                        fontsize=15
        #                        ),
        #             widget.GenPollText(update_interval=600, func=lambda: subprocess.check_output(os.path.expanduser("~/.bin/kernel")),
        #                        foreground = colors[9],
        #                        background = colors[1]
        #                        ),
        widget.TextBox(text="🌡",
                       padding=2,
                       foreground=colors[8],
                       background=colors[1]),
        widget.ThermalSensor(foreground=colors[8],
                             background=colors[1],
                             threshold=90,
                             padding=5),
        widget.NvidiaSensors(
            format='GPU {temp}°C',  #GPU {perf} {fan_speed}
            foreground=colors[8],
            background=colors[1],
            mouse_callbacks={
                'Button1': lambda: qtile.cmd_spawn('alacritty -e htop')
            },
            padding=5),
        widget.TextBox(text=" ",
                       foreground=colors[8],
                       background=colors[1],
                       padding=0,
                       fontsize=14),
        widget.CPU(format='{freq_current}GHz {load_percent}%',
                   foreground=colors[8],
                   background=colors[1],
                   threshold=90,
                   mouse_callbacks={
                       'Button1': lambda: qtile.cmd_spawn('alacritty -e htop')
                   },
                   padding=5),
        widget.TextBox(text="|",
                       foreground=colors[1],
                       background=colors[1],
                       padding=0),
        widget.TextBox(text="",
                       foreground=colors[8],
                       background=colors[1],
                       padding=0,
                       fontsize=14),
        widget.Memory(foreground=colors[8],
                      background=colors[1],
                      mouse_callbacks={
                          'Button1':
                          lambda: qtile.cmd_spawn('alacritty -e htop')
                      },
                      padding=5),
        widget.TextBox(
            text=" ",
            foreground=colors[7],
            background=colors[1],
            mouse_callbacks={
                'Button1':
                lambda: qtile.cmd_spawn('alacritty -e speedtest-cli')
            },
            padding=0,
            fontsize=14),
        #   widget.Wlan(
        #           interface = "wlp3s0",
        #            format = '{essid} {percent:2.0%}',
        #             mouse_callbacks = {'Button1': lambda: qtile.cmd_spawn('alacritty -e speedtest-cli')},
        #            foreground=colors[7],
        #            background=colors[1],
        #            padding = 5
        #            ),
        widget.Net(interface="wlp3s0",
                   format='{down} ↓↑ {up} ',
                   mouse_callbacks={
                       'Button1':
                       lambda: qtile.cmd_spawn('alacritty -e speedtest-cli')
                   },
                   foreground=colors[7],
                   background=colors[1],
                   padding=5),
        widget.CheckUpdates(update_interval=1600,
                            distro="Arch",
                            foreground=colors[11],
                            mouse_callbacks={
                                'Button1':
                                lambda: qtile.cmd_spawn('alacritty -e ')
                            },
                            display_format=" {updates} Updates ",
                            background=colors[1]),
        widget.TextBox(text="◤",
                       foreground=colors[1],
                       background=colors[0],
                       fontsize=57,
                       padding=-10),
        #  widget.KeyboardLayout(
        #            configured_keyboards = ['us','ar'],
        #            update_interval = 120,
        #            foreground=colors[2],
        #            background=colors[0],
        #            padding = 0
        #            ),
        # widget.CurrentLayout(
        #          foreground = colors[2],
        #          background = colors[8],
        #          padding = 5
        #          ),
        #  widget.TextBox(
        #           text='',
        #           background = colors[7],
        #           foreground = colors[8],
        #           padding=0,
        #           fontsize=37
        #           ),
        #        arcobattery.BatteryIcon(
        #                         padding=0,
        #                         scale=0.9,
        #                         y_poss=0,
        #                         theme_path=home + "/.config/qtile/icons/battery_icons_horiz",
        #                         update_interval = 5,
        #                         foreground=colors[6],
        #                         background=colors[0],
        #                         ),
        widget.Systray(foreground=colors[6],
                       background=colors[0],
                       icon_size=20,
                       padding=4),
        widget.CurrentLayoutIcon(
            custom_icon_paths=[os.path.expanduser("~/.config/qtile/icons")],
            foreground=colors[6],
            background=colors[0],
            padding=2,
            scale=0.7),
        widget.Sep(linewidth=0,
                   padding=6,
                   foreground=colors[6],
                   background=colors[0]),
        #           widget.Image(
        #                  scale = True,
        #                  foreground = colors[6],
        #                  background = colors[0],
        #                  filename = '~/.config/qtile/icons/power-button.png',
        #                  mouse_callbacks = {'Button1': logout}
        #                   ),
        #                    widget.Sep(
        #                    linewidth = 0,
        #                    padding = 6,
        #                    foreground = colors[6],
        #                    background = colors[0]
        #                    ),
    ]
    return widgets_list
Ejemplo n.º 21
0
def init_widgets_list():
    widgets_list = [
        widget.Sep(linewidth=0,
                   padding=6,
                   foreground=colors[2],
                   background=colors[0]),
        widget.GroupBox(
            #font = "Ubuntu Bold",
            font="UbuntuMono Nerd Font",
            fontsize=19,
            margin_y=4,
            margin_x=2,
            padding_y=8,
            padding_x=10,
            borderwidth=1,
            active=colors[2],
            inactive=colors[2],
            rounded=False,
            highlight_color=colors[1],
            highlight_method="block",
            this_current_screen_border=colors[6],
            this_screen_border=colors2[3],
            other_current_screen_border=colors[0],
            other_screen_border=colors[0],
            foreground=colors[2],
            background=colors[0]),
        widget.Prompt(prompt=prompt,
                      font="UbuntuMono Nerd Font",
                      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=colors2[3],
                       padding=-2,
                       fontsize=37),
        widget.TextBox(text="ﴑ",
                       font='UbuntuMono Nerd Font',
                       fontsize=19,
                       padding=0,
                       foreground=colors[0],
                       background=colors2[3]),
        widget.BitcoinTicker(currency="EUR",
                             foreground=colors[0],
                             background=colors2[3],
                             padding=5),
        widget.TextBox(text='',
                       background=colors2[3],
                       foreground=colors2[4],
                       padding=-2,
                       fontsize=37),
        widget.TextBox(text="CPU:",
                       padding=0,
                       foreground=colors[0],
                       background=colors2[4],
                       fontsize=12),
        widget.ThermalSensor(
            foreground=colors[0],
            background=colors2[4],
            threshold=90,
            tag_sensor="Core 0",  #Tdie
            padding=2),
        widget.TextBox(text="GPU:",
                       padding=2,
                       foreground=colors[0],
                       background=colors2[4]),
        # widget.GenPollText(
        #         func=get_my_gpu_temp,
        #        update_interval=1,
        #       padding = 5,
        #      background = colors[5],
        #     foreground = colors[2]
        #    ),
        widget.ThermalSensor(
            foreground=colors[0],
            background=colors2[4],
            threshold=90,
            tag_sensor="temp1",  #Tdie
            padding=2),
        widget.TextBox(text='',
                       background=colors2[4],
                       foreground=colors2[3],
                       padding=-2,
                       fontsize=37),
        widget.TextBox(text="",
                       foreground=colors[0],
                       background=colors2[3],
                       padding=0,
                       fontsize=20),
        widget.Memory(foreground=colors[0],
                      background=colors2[3],
                      mouse_callbacks={
                          'Button1':
                          lambda qtile: qtile.cmd_spawn(myTerm + ' -e htop')
                      },
                      padding=5),
        widget.TextBox(text='',
                       background=colors2[3],
                       foreground=colors2[4],
                       padding=-2,
                       fontsize=37),
        widget.TextBox(text=webtext,
                       foreground=colors[0],
                       background=colors2[4],
                       padding=5,
                       fontsize=15),
        widget.Net(
            #interface = "enp34s0", #ethernet
            #interface = "wlo1",	#wifi
            interface=webdevice,
            format='{down} ↓↑ {up}',
            foreground=colors[0],
            background=colors2[4],
            padding=5),
        widget.TextBox(text='',
                       background=colors2[4],
                       foreground=colors2[3],
                       padding=-2,
                       fontsize=37),
        widget.TextBox(text="",
                       foreground=colors[0],
                       background=colors2[3],
                       fontsize=20,
                       padding=9),
        widget.Volume(
            #cardid = 2,
            #device = 'hw:2',
            foreground=colors[0],
            background=colors2[3],
            padding=5),
        widget.TextBox(text='',
                       background=colors2[3],
                       foreground=colors2[4],
                       padding=-2,
                       fontsize=37),
        widget.CurrentLayoutIcon(
            custom_icon_paths=[os.path.expanduser("~/.config/qtile/icons")],
            foreground=colors[0],
            background=colors2[4],
            padding=0,
            scale=0.7),
        widget.CurrentLayout(foreground=colors[0],
                             background=colors2[4],
                             padding=5),
        widget.TextBox(text='',
                       background=colors2[4],
                       foreground=colors2[3],
                       padding=-2,
                       fontsize=37),
        widget.Clock(padding=3,
                     foreground=colors[0],
                     background=colors2[3],
                     format='%d/%m/%Y - %H:%M:%S '),
        widget.Sep(linewidth=0,
                   padding=10,
                   foreground=colors[0],
                   background=colors2[3]),
        widget.Systray(background=colors[0], padding=5),
    ]
    return widgets_list
Ejemplo n.º 22
0
    #widget.Pacman(**w_base_color(bg = 'secondary'), **w_pacman),
    #widget.Image(filename = img['primary']),
    #widget.TextBox(**w_base_color(bg = 'primary'), **w_text_box, text='')
    #widget.Sep(**w_separator),
    #widget.Image(filename = img['primary']),
    #widget.Sep(**w_separator),
        #widget.CPU(**w_cpu),
    #widget.Image(filename = img['secondary']),
    #widget.DF(),
    #widget.Image(filename = img['bg-to-primary']),
    
    #widget.Net(**w_base_color(bg = 'secondary'), **w_net),
    #widget.Sep(**w_separator),
    #widget.Image(filename = img['secondary']),
        #*wk_powerline_base()
    widget.CurrentLayoutIcon(**w_base_color(bg='secondary'), **w_current_layout_icon),
    widget.Clock(**w_base_color(bg='dark'), **w_clock),

}

screen_secondary = {
    *wk_workspaces_base(),
    #widget.Image(filename = img['bg-to-secondary']),
    *wk_powerline_base()
}

widget_defaults = dict(
    font='DroidSansMono Nerd Font',
    fontsize=12,
    padding=1,
)
Ejemplo n.º 23
0
def get_two_screens(colors):
    groupbox_defaults = dict(
        margin_y=3,
        margin_x=0,
        padding_y=5,
        padding_x=7,
        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],
    )
    screens = [
        Screen(
            bottom=bar.Bar(
                [
                    widget.CurrentLayoutIcon(
                        custom_icon_paths=[
                            os.path.expanduser("~/.config/qtile/icons")
                        ],
                        foreground=colors[0],
                        background=colors[1],
                        padding=0,
                        scale=0.7,
                    ),
                    widget.Sep(
                        linewidth=0,
                        padding=6,
                        foreground=colors[2],
                        background=colors[0],
                    ),
                    widget.GroupBox(
                        visible_groups=["SYS"],
                        font=
                        "FiraCode Nerd Font",  # ? using the font is vital for loading the icon
                        fontsize=15,
                        **groupbox_defaults),
                    widget.GroupBox(visible_groups=["DEV"],
                                    font="FiraCode Nerd Font",
                                    fontsize=17,
                                    **groupbox_defaults),
                    widget.GroupBox(visible_groups=["WWW"],
                                    font="Font Awesome 5 Free",
                                    fontsize=25,
                                    **groupbox_defaults),
                    widget.GroupBox(visible_groups=["DIS"],
                                    font="FiraCode Nerd Font",
                                    fontsize=16,
                                    **groupbox_defaults),
                    widget.GroupBox(visible_groups=["TEAMS"],
                                    font="FiraCode Nerd Font",
                                    fontsize=17,
                                    **groupbox_defaults),
                    widget.GroupBox(visible_groups=["DOC"],
                                    font="Font Awesome 5 Free",
                                    fontsize=20,
                                    **groupbox_defaults),
                    widget.GroupBox(visible_groups=["MUS"],
                                    font="Font Awesome 5 Free",
                                    fontsize=27,
                                    **groupbox_defaults),
                    widget.GroupBox(visible_groups=["VID"],
                                    font="Font Awesome 5 Free",
                                    fontsize=20,
                                    **groupbox_defaults),
                    widget.GroupBox(visible_groups=["VBOX"],
                                    font="Font Awesome 5 Free",
                                    fontsize=20,
                                    **groupbox_defaults),
                    widget.Spacer(10),
                    # WindowName
                    widget.WindowName(
                        format="﫳 {name}",
                        max_chars=80,
                        background=colors[0],
                        foreground=colors[6],
                    ),
                    widget.Chord(
                        chords_colors={
                            "launch": ("#0000ff", "#ffffff"),
                        },
                        name_transform=lambda name: name.upper(),
                    ),
                    widget.Systray(
                        icon_size=16, background=colors[0], padding=5),
                    widget.Spacer(10),
                    # Backlight
                    widget.TextBox(
                        text="", padding=8, foreground=colors[3],
                        fontsize=25),
                    widget.Backlight(
                        foreground=colors[3],
                        change_command="light -S {0}",
                        backlight_name="intel_backlight",
                    ),
                    widget.Spacer(10),
                    widget.CheckUpdates(
                        update_interval=1800,
                        distro="Arch",
                        display_format="{updates} Updates",
                        mouse_callbacks={
                            "Button1":
                            lambda: qtile.cmd_spawn(
                                "alacritty -e sudo pacman -Syu")
                        },
                        foreground=colors[3],
                    ),
                    widget.Spacer(10),
                    # Volume
                    widget.TextBox(
                        text="墳", foreground=colors[3], padding=6,
                        fontsize=23),
                    widget.Volume(foreground=colors[3]),
                    widget.Spacer(10),
                    # Time
                    widget.TextBox(
                        text="", fontsize=21, padding=6,
                        foreground=colors[3]),
                    widget.Clock(foreground=colors[3],
                                 format="%d-%m-%Y | %a %I:%M %p"),
                    widget.Spacer(10),
                    # CPU
                    widget.TextBox(
                        text="", fontsize=23, padding=8,
                        foreground=colors[3]),
                    widget.CPU(format="{load_percent}%", foreground=colors[3]),
                    widget.Spacer(10),
                    # Battery
                    widget.TextBox(text="", fontsize=14,
                                   foreground=colors[3]),
                    widget.Battery(
                        foreground=colors[3],
                        low_foreground="d08770",
                        format="{percent:2.0%}",
                    ),
                    widget.Spacer(10),
                ],
                24,
                background=colors[0],
            ), ),
        Screen(
            bottom=bar.Bar(
                [
                    widget.CurrentLayoutIcon(
                        custom_icon_paths=[
                            os.path.expanduser("~/.config/qtile/icons")
                        ],
                        foreground=colors[0],
                        background=colors[1],
                        padding=0,
                        scale=0.7,
                    ),
                    widget.Sep(
                        linewidth=0,
                        padding=6,
                        foreground=colors[2],
                        background=colors[0],
                    ),
                    widget.GroupBox(
                        visible_groups=["SYS"],
                        font=
                        "FiraCode Nerd Font",  # ? using the font is vital for loading the icon
                        fontsize=15,
                        **groupbox_defaults),
                    widget.GroupBox(visible_groups=["DEV"],
                                    font="FiraCode Nerd Font",
                                    fontsize=17,
                                    **groupbox_defaults),
                    widget.GroupBox(visible_groups=["WWW"],
                                    font="Font Awesome 5 Free",
                                    fontsize=25,
                                    **groupbox_defaults),
                    widget.GroupBox(visible_groups=["DIS"],
                                    font="FiraCode Nerd Font",
                                    fontsize=16,
                                    **groupbox_defaults),
                    widget.GroupBox(visible_groups=["TEAMS"],
                                    font="FiraCode Nerd Font",
                                    fontsize=17,
                                    **groupbox_defaults),
                    widget.GroupBox(visible_groups=["DOC"],
                                    font="Font Awesome 5 Free",
                                    fontsize=20,
                                    **groupbox_defaults),
                    widget.GroupBox(visible_groups=["MUS"],
                                    font="Font Awesome 5 Free",
                                    fontsize=27,
                                    **groupbox_defaults),
                    widget.GroupBox(visible_groups=["VID"],
                                    font="Font Awesome 5 Free",
                                    fontsize=20,
                                    **groupbox_defaults),
                    widget.GroupBox(visible_groups=["VBOX"],
                                    font="Font Awesome 5 Free",
                                    fontsize=20,
                                    **groupbox_defaults),
                    widget.Spacer(10),
                    # WindowName
                    widget.WindowName(
                        format="﫳 {name}",
                        max_chars=80,
                        background=colors[0],
                        foreground=colors[6],
                    ),
                    widget.Chord(
                        chords_colors={
                            "launch": ("#0000ff", "#ffffff"),
                        },
                        name_transform=lambda name: name.upper(),
                    ),
                    widget.Systray(
                        icon_size=16, background=colors[0], padding=5),
                    widget.Spacer(10),
                    # Backlight
                    widget.TextBox(
                        text="", padding=8, foreground=colors[3],
                        fontsize=25),
                    widget.Backlight(
                        foreground=colors[3],
                        change_command="light -S {0}",
                        backlight_name="intel_backlight",
                    ),
                    widget.Spacer(10),
                    # Volume
                    widget.TextBox(
                        text="墳", foreground=colors[3], padding=6,
                        fontsize=23),
                    widget.Volume(foreground=colors[3]),
                    widget.Spacer(10),
                    # Time
                    widget.TextBox(
                        text="", fontsize=21, padding=6,
                        foreground=colors[3]),
                    widget.Clock(foreground=colors[3],
                                 format="%d-%m-%Y | %a %I:%M %p"),
                    widget.Spacer(10),
                    # CPU
                    widget.TextBox(
                        text="", fontsize=23, padding=8,
                        foreground=colors[3]),
                    widget.CPU(format="{load_percent}%", foreground=colors[3]),
                    widget.Spacer(10),
                    # Battery
                    widget.TextBox(text="", fontsize=14,
                                   foreground=colors[3]),
                    widget.Battery(
                        foreground=colors[3],
                        low_foreground="d08770",
                        format="{percent:2.0%}",
                    ),
                    widget.Spacer(10),
                ],
                24,
                background=colors[0],
            ), ),
    ]

    return screens
Ejemplo n.º 24
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=9,
                        margin_y=3,
                        margin_x=0,
                        padding_y=5,
                        padding_x=3,
                        borderwidth=3,
                        active=colors[2],
                        inactive=colors[2],
                        rounded=False,
                        highlight_color=colors[1],
                        highlight_method="line",
                        this_current_screen_border=colors[3],
                        this_screen_border=colors[4],
                        other_current_screen_border=colors[0],
                        other_screen_border=colors[0],
                        foreground=colors[2],
                        background=colors[0]),
        widget.Prompt(prompt=prompt,
                      font="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=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=" 🌡",
                       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.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.Sep(linewidth=0,
                   padding=10,
                   foreground=colors[0],
                   background=colors[5]),
        widget.Systray(background=colors[0], padding=5),
    ]
    return widgets_list
Ejemplo n.º 25
0
 widget.TextBox(text='  ',
                mouse_callbacks={
                    'Button1':
                    lambda qtile: qtile.cmd_spawn('playerctl next')
                },
                foreground=["#f1ffff", "#f1ffff"],
                background=["#77DD77", "#77DD77"],
                padding=1),
 widget.TextBox(text='',
                foreground=["#F07178", "#F07178"],
                background=["#77DD77", "#77DD77"],
                padding=0,
                fontsize=45,
                width=17),
 widget.CurrentLayoutIcon(foreground=["#0f101a", "#0f101a"],
                          background=["#F07178", "#F07178"],
                          padding=0,
                          scale=0.65),
 widget.CurrentLayout(
     foreground=["#f1ffff", "#f1ffff"],
     background=["#F07178", "#F07178"],
 ),
 widget.TextBox(text='',
                foreground=["#a151d3", "#a151d3"],
                background=["#F07178", "#F07178"],
                padding=0,
                fontsize=45,
                width=17),
 widget.TextBox(
     text='  ',
     foreground=["#f1ffff", "#f1ffff"],
     background=["#a151d3", "#a151d3"],
Ejemplo n.º 26
0
    layout.Max(**layout_theme)
]

widget_defaults = dict(
    font='IBM Plex Mono Medium',
    fontsize=16,
    padding=4,
    background="#282a2e",
    foreground="#abb2bf",
)
extension_defaults = widget_defaults.copy()

screens = [
    Screen(bottom=bar.Bar(
        [
            widget.CurrentLayoutIcon(foreground="#e06c75", ),
            widget.GroupBox(highlight_method="line",
                            this_current_screen_border="#61afef",
                            this_screen_border="#61afef",
                            other_current_screen_border="#e5c07b"),
            widget.Prompt(),
            widget.WindowName(foreground="#56b6c2"),
            widget.CPU(
                foreground="#61afef",
                format='CPU {load_percent}%',
            ),
            widget.Memory(foreground="#c678dd"),
            widget.Net(
                foreground="#e06c75",
                format='{down} ↓↑ {up}',
            ),
Ejemplo n.º 27
0
def init_widgets_list():
    prompt = "{0}@{1}: ".format(os.environ["USER"], socket.gethostname())
    widgets_list = [
        widget.TextBox(font="Arial",
                       foreground=colors[2],
                       text="◢",
                       fontsize=73,
                       padding=-7),
        widget.GroupBox(font="FontAwesome",
                        fontsize=16,
                        margin_y=-1,
                        margin_x=0,
                        padding_y=6,
                        padding_x=5,
                        borderwidth=0,
                        active=colors[4],
                        inactive=colors[1],
                        rounded=False,
                        highlight_method="text",
                        this_current_screen_border=colors[7],
                        foreground=colors[1],
                        background=colors[2]),
        widget.TextBox(font="Arial",
                       foreground=colors[2],
                       text="◤",
                       fontsize=73,
                       padding=-7),
        widget.CurrentLayout(font="TerminessTTF Nerd Font Medium",
                             fontsize=15,
                             foreground=colors[5],
                             background=colors[1]),
        widget.CurrentLayoutIcon(font="TerminessTTF Nerd Font Medium",
                                 fontsize=13,
                                 scale=.70),
        widget.Sep(linewidth=1,
                   padding=10,
                   foreground=colors[2],
                   background=colors[1]),
        widget.WindowName(
            font="TerminessTTF Nerd Font Medium",
            fontsize=15,
            foreground=colors[5],
            background=colors[1],
        ),
        # widget.Net(
        #          font="Noto Sans",
        #          fontsize=12,
        #          interface="enp0s31f6",
        #          foreground=colors[2],
        #          background=colors[1],
        #          padding = 0,
        #          ),
        # widget.Sep(
        #          linewidth = 1,
        #          padding = 10,
        #          foreground = colors[2],
        #          background = colors[1]
        #          ),
        # widget.NetGraph(
        #          font="Noto Sans",
        #          fontsize=12,
        #          bandwidth="down",
        #          interface="auto",
        #          fill_color = colors[8],
        #          foreground=colors[2],
        #          background=colors[1],
        #          graph_color = colors[8],
        #          border_color = colors[2],
        #          padding = 0,
        #          border_width = 1,
        #          line_width = 1,
        #          ),
        # widget.Sep(
        #          linewidth = 1,
        #          padding = 10,
        #          foreground = colors[2],
        #          background = colors[1]
        #          ),
        widget.TextBox(font="Arial",
                       foreground=colors[2],
                       text="◢",
                       fontsize=73,
                       padding=-7),
        widget.TextBox(font="TerminessTTF Nerd Font Medium",
                       fontsize=13,
                       text="  ",
                       foreground=colors[1],
                       background=colors[2],
                       padding=0),
        widget.Pacman(font="TerminessTTF Nerd Font Medium",
                      fontsize=13,
                      execute='pamac-manager --updates',
                      markup=True,
                      unavailable=colors[1],
                      update_interval=60,
                      foreground=colors[6],
                      background=colors[2],
                      padding=0),
        widget.Sep(linewidth=1,
                   padding=10,
                   foreground=colors[1],
                   background=colors[2]),
        widget.TextBox(font="TerminessTTF Nerd Font Medium",
                       fontsize=13,
                       text=" CPU ",
                       foreground=colors[4],
                       background=colors[2],
                       padding=0),
        widget.CPUGraph(
            foreground=colors[1],
            background=colors[2],
            border_color=colors[1],
            #fill_color = colors[1],
            graph_color=colors[4],
            border_width=1,
            line_width=1,
            core="all",
            type="linefill",
            width=60),
        # do not activate in Virtualbox - will break qtile
        #              widget.ThermalSensor(
        #                        foreground = colors[5],
        #                        foreground_alert = colors[6],
        #                        background = colors[1],
        #                        metric = True,
        #                        padding = 3,
        #                        threshold = 80
        #                        ),
        widget.Sep(linewidth=1,
                   padding=10,
                   foreground=colors[1],
                   background=colors[2]),
        widget.TextBox(font="TerminessTTF Nerd Font Medium",
                       fontsize=13,
                       text=" MEM ",
                       foreground=colors[4],
                       background=colors[2],
                       padding=0),
        widget.MemoryGraph(background=colors[2],
                           border_color=colors[1],
                           border_width=1,
                           frequency=1,
                           samples=100,
                           line_width=3,
                           type='linefill',
                           width=60),
        widget.Sep(linewidth=1,
                   padding=10,
                   foreground=colors[1],
                   background=colors[2]),
        widget.TextBox(font="TerminessTTF Nerd Font Medium",
                       fontsize=13,
                       text=" NET ",
                       foreground=colors[4],
                       background=colors[2],
                       padding=0),
        widget.NetGraph(
            background=colors[2],
            border_color=colors[1],
            border_width=1,
            frequency=1,
            samples=100,
            line_width=3,
            type='linefill',
            #fill_color = colors[4],
            interface='wlp3s0',
            start_pos='bottom',
            width=60),
        widget.Sep(linewidth=1,
                   padding=10,
                   foreground=colors[1],
                   background=colors[2]),
        widget.TextBox(font="FontAwesome",
                       text="  ",
                       foreground=colors[3],
                       background=colors[2],
                       padding=0,
                       fontsize=16),
        widget.Clock(
            foreground=colors[1],
            background=colors[2],
            #format="%Y-%m-%d %H:%M",
            format="%Y-%m-%d %a %I:%M %p",
            font="TerminessTTF Nerd Font Medium",
            fontsize=13,
        ),
        widget.TextBox(font="Arial",
                       foreground=colors[2],
                       text="◤",
                       fontsize=73,
                       padding=-7),
        widget.Systray(background=colors[1],
                       foreground=colors[1],
                       icon_size=20,
                       padding=5),
    ]
    return widgets_list
Ejemplo n.º 28
0
def init_widgets_list():
    rightSideWidgets = [
        # Weather
        [
            {
                "icon": icons["weather"],
                "widget": lambda bg: widget.OpenWeather(
                    app_key=env_config["OPEN_WEATHER_API_KEY"],
                    cityid=706483,
                    background=bg,
                    format="{main_temp} °{units_temperature} {humidity}% {weather_details}",
                ),
            }
        ],
        # Thermal sensor (CPU)
        [
            {
                "icon": icons["cpu_temp"],
                "widget": lambda bg: widget.ThermalSensor(
                    foreground=widgetColor,
                    background=bg,
                    threshold=90,
                    padding=0,
                ),
            }
        ],
        [
            {
                "icon": icons["ram"],
                "widget": lambda bg: widget.Memory(
                    foreground=widgetColor,
                    background=bg,
                    mouse_callbacks={
                        "Button1": lambda: qtile.cmd_spawn(myTerm + " -e htop")
                    },
                    padding=0,
                    format="{MemUsed: .0f}{mm} /{MemTotal: .0f}{mm}",
                ),
            }
        ],
        [
            {
                "icon": f"{icons['volume']}",
                "widget": lambda bg: widget.Volume(
                    foreground=widgetColor,
                    background=bg,
                    padding=0,
                ),
            }
        ],
        #        [{
        #            "widget": lambda bg: widget.BitcoinTicker(
        #                foreground = widgetColor,
        #                background = bg,
        #                padding = 0,
        #            ),
        #        }],
        # [
        #     {
        #         "widget": lambda bg: widget.Pomodoro(
        #             color_active=widgetColor,
        #             color_break=widgetColor,
        #             color_inactive=widgetColor,
        #             foreground=widgetColor,
        #             background=bg,
        #             padding=0,
        #         )
        #     }
        # ],
        [
            {
                "widget": lambda bg: keyboard_widget,
            }
        ],
        # Music
        #        [
        #            {"widget": lambda bg: widget.Cmus(
        #                play_color = widgetColor,
        #                background = bg,
        #                padding = 0,
        #            )},
        #        ],
        [
            {
                "widget": lambda bg: widget.Clock(
                    foreground=widgetColor,
                    background=bg,
                    padding=0,
                    format="%A, %B %d - %H:%M ",
                )
            },
        ],
        [
            {
                "widget": lambda bg: widget.CurrentLayoutIcon(
                    custom_icon_paths=[os.path.expanduser("~/.config/qtile/icons")],
                    foreground=barFg,
                    background=bg,
                    padding=0,
                    scale=0.7,
                ),
            }
        ],
    ]

    def renderStripedWidgetGroup(grp, even=False):
        res = []
        bg = widgetStripedBg2 if even else widgetStripedBg1
        res.append(
            widget.Sep(
                linewidth=0,
                padding=wp,
                foreground=sepColor,
                background=bg,
            ),
        )
        for j, wdesc in enumerate(grp):
            text = wdesc.get("label", None)
            widget_fn = wdesc["widget"]
            has_text = text != None
            label_size = wdesc.get("label_fsize", 14)
            inner_padding = wdesc.get("inner_padding", 6)
            icon = wdesc.get("icon", None)
            has_icon = icon != None
            if has_text:
                res.append(
                    widget.TextBox(
                        text=text,
                        foreground=widgetColor,
                        background=bg,
                        padding=0,
                        fontsize=label_size,
                    ),
                )
            elif has_icon:
                res.append(
                    widget.TextBox(
                        text=icon,
                        foreground=widgetColor,
                        background=bg,
                        padding=0,
                        fontsize=icon_size,
                        font="Font Awesome 5 Free Solid",
                    ),
                )
                res.append(
                    widget.Sep(
                        linewidth=0,
                        padding=inner_padding,
                        foreground=sepColor,
                        background=bg,
                    )
                )
            res.append(widget_fn(bg))
            if j != (len(grp) - 1):
                res.append(
                    widget.Sep(
                        linewidth=0,
                        padding=inner_padding,
                        foreground=sepColor,
                        background=bg,
                    ),
                )
        res.append(
            widget.Sep(
                linewidth=0,
                padding=wp,
                foreground=sepColor,
                background=bg,
            ),
        )
        return res

    # Append rightSideWidgets with separators & alternating background color
    rightSide = []
    for i, grp in enumerate(rightSideWidgets):
        even = i % 2 == 0
        rightSide += renderStripedWidgetGroup(grp, even=even)

    widgets_list = [
        emptySep,
        # Icon
        widget.Image(
            filename="~/.config/qtile/icons/yin-yang.png",
            scale=True,
            margin_y=3,
            mouse_callbacks={"Button1": lambda: qtile.cmd_spawn(myTerm)},
        ),
        emptySep,
        # Workspaces
        widget.GroupBox(
            font="Source Code Pro Bold",
            fontsize=8,
            margin_y=4,
            margin_x=2,
            padding_y=5,
            padding_x=12,
            borderwidth=2,
            active=activeWsColor,
            block_highlight_text_color=theme.fg,
            inactive=inactiveWsColor,
            disable_drag=True,
            rounded=False,
            highlight_color=activeWsBg,
            highlight_method="line",
            this_current_screen_border=thisCurrentScreenBorder,
            this_screen_border=thisScreenBorder,
            other_current_screen_border=otherCurrentScreenBorder,
            other_screen_border=otherScreenBorder,
            foreground=barFg,
            background=barBg,
        ),
        widget.TextBox(
            text="|>", foreground=barFg, background=barBg, padding=8, fontsize=14
        ),
        # Current window name
        widget.WindowName(
            foreground=winTitleColor,
            background=barBg,
            padding=0,
            max_chars=currWindowMaxChars,
        ),
        # System tray
        widget.Systray(
            background=barBg,
            padding=8,
            icon_size=14,
        ),
        emptySep,
        emptySep,
        *rightSide,
    ]
    return widgets_list
Ejemplo n.º 29
0
    # layout.Zoomy(),
]

widget_defaults = dict(
    font='RobotoMono Nerd Font Bold',
    fontsize=11,
    padding=2,
)
extension_defaults = widget_defaults.copy()

screens = [
    Screen(
        top=bar.Bar(
            [
                widget.CurrentLayoutIcon(
                    scale=.75,
                ),
                widget.GroupBox(
                    rounded = False,
                    use_mouse_wheel = False,
                ),
                widget.WindowName(),
                widget.TextBox(
                    text = ' ',
                    background = color_main,
                    padding = 0,
                    fontsize = 14,
                    mouse_callbacks={'Button1': lambda: qtile.cmd_spawn(terminal + " -e bpytop")},
                ),
                widget.CPU(
                    background=color_main,
Ejemplo n.º 30
0
def init_widgets_list():
    widgets_list = [
        widget.TextBox(
            text='  ',  # i
            background=colors[0],
            foreground=colors[2],
            fontsize=14),
        widget.Sep(linewidth=0,
                   padding=6,
                   foreground=colors[2],
                   background=colors[0]),
        widget.GroupBox(font="Hack Nerd Font",
                        fontsize=9,
                        margin_y=3,
                        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.Sep(linewidth=0,
                   padding=40,
                   foreground=colors[2],
                   background=colors[0]),
        widget.WindowName(foreground=colors[6],
                          background=colors[0],
                          padding=0),
        widget.TextBox(text='',
                       background=colors[0],
                       foreground=colors[5],
                       padding=-5.5,
                       fontsize=37),
        widget.TextBox(text=" ₿",
                       padding=0,
                       foreground=colors[7],
                       background=colors[5],
                       fontsize=12),
        widget.BitcoinTicker(foreground=colors[7],
                             background=colors[5],
                             padding=5),
        widget.TextBox(text='',
                       background=colors[5],
                       foreground=colors[4],
                       padding=-4.5,
                       fontsize=37),
        widget.TextBox(text=" 🌡",
                       padding=2,
                       foreground=colors[2],
                       background=colors[4],
                       fontsize=11),
        widget.ThermalSensor(foreground=colors[2],
                             background=colors[4],
                             padding=5),
        widget.TextBox(text='',
                       background=colors[4],
                       foreground=colors[5],
                       padding=-5.5,
                       fontsize=37),
        widget.TextBox(text="  ",
                       padding=2,
                       foreground=colors[7],
                       background=colors[5],
                       fontsize=14),
        widget.Pacman(execute="alacritty",
                      update_interval=1800,
                      foreground=colors[7],
                      background=colors[5]),
        widget.TextBox(text=" ",
                       padding=-1,
                       foreground=colors[7],
                       background=colors[5]),
        widget.TextBox(text='',
                       background=colors[5],
                       foreground=colors[4],
                       padding=-5.5,
                       fontsize=37),
        widget.Net(interface="wlp0s20f3",
                   format='  {down} ↓↑ {up}',
                   foreground=colors[2],
                   background=colors[4],
                   padding=5),
        widget.TextBox(text='',
                       background=colors[4],
                       foreground=colors[5],
                       padding=-5.5,
                       fontsize=37),
        widget.TextBox(text="  ",
                       foreground=colors[7],
                       background=colors[5],
                       padding=0),
        widget.Volume(foreground=colors[7], background=colors[5], padding=5),
        widget.TextBox(text='',
                       background=colors[5],
                       foreground=colors[4],
                       padding=-5.5,
                       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=-5.5,
                       fontsize=37),
        widget.Clock(foreground=colors[7],
                     background=colors[5],
                     format="%A, %B %d  %H:%M "),
        widget.TextBox(text='',
                       background=colors[5],
                       foreground=colors[4],
                       padding=-5.5,
                       fontsize=36),
        widget.TextBox(text=' ',
                       background=colors[4],
                       foreground=colors[3],
                       padding=0.5,
                       fontsize=16),
        widget.Battery(
            format="{char} {percent:-1.1%}",
            update_interval=0.5,
            padding=4,
            low_percentage=-1.05,
            full_char=" Full",
            charge_char="",
            discharge_char="",
            background=colors[4],
            font="Hack Nerd Font",
            foreground=colors[3],
        ),
        widget.Sep(linewidth=0,
                   padding=5,
                   foreground=colors[0],
                   background=colors[4]),
        widget.TextBox(text='',
                       background=colors[4],
                       foreground=colors[5],
                       padding=-5.5,
                       fontsize=37),
        widget.Systray(background=colors[5], padding=5),
        widget.Sep(linewidth=0,
                   padding=5,
                   foreground=colors[0],
                   background=colors[5]),
    ]

    return widgets_list