Exemplo n.º 1
0
def init_bottom_bar_widgets_list():
    """
    Init bottom bar widgets.
    """
    colors_list = colors.get_colors()
    widgets = []

    prompt = "{0}@{1}: ".format(os.environ["USER"], socket.gethostname())
    widgets.append(
        widget.GroupBox(padding=3,
                        active=colors_list[7][1],
                        inactive=colors_list[6][1]))
    widgets.append(widget.TaskList())
    #widgets.append(widget.WindowTabs())
    widgets.append(
        widget.Prompt(
            prompt=prompt,
            font="Ubuntu Mono",
            padding=10,
        ))
    widgets.append(widget.Spacer())
    widgets.append(widget.CapsNumLockIndicator())
    widgets.append(widget.KeyboardLayout(configured_keyboards=["us", "ir"]))
    widgets.append(widget.CurrentLayoutIcon(scale=.7))
    widgets.append(widget.CurrentLayout(fmt="{:<8}"))
    widgets.append(
        widget.TextBox(font="Ubuntu Bold", text=" ♫", padding=5,
                       fontsize=14))
    widgets.append(widget.Cmus(
        max_chars=40,
        update_interval=0.5,
    ))
    return widgets
Exemplo n.º 2
0
                this_current_screen_border=onedark["green"],
                margin_x=0,
                margin_y=5,
                inactive=onedark["black"],
                urgent_border=onedark["dark_red"]),
            widget.WindowName(background=onedark["black"],
                              foreground=onedark["white"],
                              font="JetBrains Mono Medium"),
            widget.CheckUpdates(background=onedark["orange"],
                                foreground=onedark["black"],
                                distro='Arch',
                                color_have_updates=onedark["blue"],
                                color_no_updates=onedark["white"],
                                no_update_string='No Updates'),
            widget.CapsNumLockIndicator(background=onedark["comment_grey"],
                                        foreground=onedark["white"],
                                        font="JetBrains Mono Medium"),
            widget.Volume(background=onedark["gutter_grey"],
                          foreground=onedark["purple"]),
            widget.Systray(),
            widget.Clock(background=onedark["gutter_grey"],
                         foreground=onedark["blue"],
                         format='%Y-%m-%d %a %H:%M:%S')
        ],
        24,
    ), ),
]

# Drag floating layouts.
mouse = [
    Drag([mod],
Exemplo n.º 3
0
def init_widgets_list():
    widgets_list = [
        widget.Sep(linewidth=0, padding=6, foreground=colors[2], background=colors[0]),
        widget.GroupBox(
            font="mononoki",
            fontsize=14,
            margin_y=3,
            margin_x=0,
            padding_y=4,
            padding_x=5,
            borderwidth=1,
            active=colors[2],
            inactive=colors[2],
            rounded=False,
            highlight_method="block",
            this_current_screen_border=colors[4],
            this_screen_border=colors[1],
            other_current_screen_border=colors[0],
            other_screen_border=colors[0],
            foreground=colors[2],
            background=colors[0],
        ),
        widget.Prompt(
            prompt=prompt,
            font="mononoki",
            padding=10,
            foreground=colors[3],
            background=colors[1],
        ),
        widget.Sep(
            linewidth=0,
            padding=10,
            foreground=colors[2],
            background=colors[0]
        ),
        widget.WindowName(
            foreground=colors[4],
            background=colors[0],
            padding=5,
            padding_y=1
        ),
        widget.TextBox(
            text="",
            background=colors[0],
            foreground=colors[5],
            padding=0,
            fontsize=37
        ),
        widget.CPU(
            background=colors[5],
            foreground=colors[2],
            padding=5
        ),
        widget.TextBox(
            text="",
            background=colors[5],
            foreground=colors[4],
            padding=0,
            fontsize=37
        ),
        widget.TextBox(
            text = "💽",
            background = colors[4]
        ),
        widget.Memory(
            background = colors[4],
            padding = 5
        ),
        widget.TextBox(
            text="",
            background=colors[4],
            foreground=colors[5],
            padding=0,
            fontsize=37
        ),
        widget.TextBox(
            text="🌡",
            background = colors[5]
        ),
        widget.ThermalSensor(
            background = colors[5]
        ),
        widget.TextBox(
            text="",
            background=colors[5],
            foreground=colors[4],
            padding=0,
            fontsize=37
        ),
        widget.TextBox(
            text="🔓",
            background = colors[4]
        ),
        widget.CapsNumLockIndicator(
            background=colors[4],
            foreground=colors[2],
            padding=5
        ),
        widget.TextBox(
            text="", background=colors[4], foreground=colors[5], padding=0, fontsize=37
        ),
        widget.CurrentLayoutIcon(
            padding=5,
            foreground=colors[2],
            background=colors[5],
        ),
        widget.CurrentLayout(foreground=colors[2], background=colors[5], padding=5),
        widget.TextBox(
            text="", background=colors[5], foreground=colors[4], padding=0, fontsize=37
        ),
        widget.Sep(linewidth=0, padding=5, foreground=colors[0], background=colors[4]),
        widget.Clock(
            foreground=colors[2], background=colors[4], format="%A, %B %d - %H:%M"
        ),
        widget.Sep(linewidth=0, padding=5, foreground=colors[0], background=colors[4]),
        widget.Systray(background=colors[0], padding=5),
    ]
    return widgets_list
Exemplo n.º 4
0
     foreground=colorsc[0]
     ),
 widget.Battery( # [9] --> Battery percentage
     background=colorsc[2],
     format='{char} {percent:2.0%}',
     foreground=colorsc[0],
     charge_char=' ',
     empty_char=' ',
     full_char=' ',
     discharge_char='',
     low_foreground=colorsc[1],
     update_interval=5,
     show_short_text=False
     ),
 widget.CapsNumLockIndicator( # [10] --> Caps/Num indicator
     foreground=colorsc[0],
     background=colorsc[3],
     ),
 widget.Clock( # [11] --> Time
     background=colorsc[5],
     format=' %H:%M:%S |  %d.%m.%Y %a',
     foreground=colorsc[0],
     mouse_callbacks={
         "Button1": open_calendar,
         "Button3": open_calendar,
         },
     ),
 widget.Clock( # [12] --> Date
     background=colorsc[12],
     format='DATE: %d.%m.%Y %a',
     foreground=colorsc[0]
     ),
Exemplo n.º 5
0
def init_widgets_list():
    prompt = "{0}@{1}: ".format(os.environ["USER"], socket.gethostname())
    widgets_list = [
               widget.GroupBox(font="FontAwesome",
                        fontsize = 16,
                        margin_y = 0,
                        margin_x = 0,
                        padding_y = 6,
                        padding_x = 5,
                        borderwidth = 0,
                        disable_drag = True,
                        active = colors[9],
                        inactive = colors[5],
                        rounded = True,
                        highlight_method = "text",
                        this_current_screen_border = colors[10],
                        foreground = colors[2],
                        background = colors[1]
                        ),
               widget.Sep(
                        linewidth = 1,
                        padding = 10,
                        foreground = colors[2],
                        background = colors[1]
                        ),
               widget.CurrentLayout(
                        font = "DejaVu Sans Book",
                        foreground = colors[5],
                        background = colors[1]
                        ),
               widget.Sep(
                        linewidth = 1,
                        padding = 10,
                        foreground = colors[2],
                        background = colors[1]
                        ),
               widget.WindowName(font="DejaVu Sans Book",
                        fontsize = 12,
                        foreground = colors[5],
                        background = colors[1],
                        ),
              # widget.Sep(
              #           linewidth = 1,
              #           padding = 10,
              #           foreground = colors[2],
              #           background = colors[1]
              #           ),
              widget.TextBox(
                         text='',
                         background = colors[0],
                         foreground = colors[10],
                         padding=0,
                         fontsize=37
                         ),
              widget.BitcoinTicker(
                        round=True,
                        foreground=colors[5],
                        background=colors[10],
                        padding = 5
                        ),

              widget.TextBox(
                        text='',
                        background = colors[10],
                        foreground = colors[11],
                        padding=0,
                        fontsize=37
                        ),
              # widget.YahooWeather(
              #           format = '{location_city}: {condition_temp} °{units_temperature}',
              #           location = "3198",
              #           update_interval = 600,
              #           metric= True,
              #           ),
              widget.TextBox(
                        text='⟳',
                        background = colors[11],
                        foreground = colors[5],
                        padding=0,
                        fontsize=16
                        ),
              widget.Pacman(
                        linewidth = 0,
                        padding = 4,
                        foreground = colors[5],
                        #background = colors[1],
                        background = colors[11],
                        ),
                # widget.TextBox(
                #           text='',
                #           background = colors[10],
                #           foreground = colors[10],
                #           padding=0,
                #           fontsize=37
                #           ),
              # widget.Sep(
              #           linewidth = 1,
              #           padding = 10,
              #           foreground = colors[2],
              #           background = colors[1]
              #           ),

              widget.TextBox(
                        text='',
                        background = colors[11],
                        foreground = colors[10],
                        padding=0,
                        fontsize=37
                        ),
#481318"
             widget.Net(
                      font="DejaVU Sans Book",
                      fontsize=12,
                      #interface= "ens33",
                      foreground=colors[5],
                      #background=colors[1],
                      background=colors[10],
                      padding = 6,
                      markup = True,
                      ),
             # widget.Sep(
             #          linewidth = 1,
             #          padding = 10,
             #          foreground = colors[2],
             #          background = colors[1]
             #          ),
               # widget.NetGraph(
               #          font="Noto Sans",
               #          fontsize=12,
               #          bandwidth="down",
               #          interface="auto",
               #          fill_color = colors[8],
               #          foreground=colors[2],
               #          background=colors[1],
               #          graph_color = colors[8],
               #          border_color = colors[2],
               #          padding = 0,
               #          border_width = 1,
               #          line_width = 1,
               #          ),
               # widget.Sep(
               #          linewidth = 1,
               #          padding = 10,
               #          foreground = colors[2],
               #          background = colors[1]
               #          ),
               # # do not activate in Virtualbox - will break qtile
               # widget.ThermalSensor(
               #          foreground = colors[5],
               #          foreground_alert = colors[6],
               #          background = colors[1],
               #          metric = True,
               #          padding = 3,
               #          threshold = 80
               #          ),
               # # battery option 1  ArcoLinux Horizontal icons do not forget to import arcobattery at the top
               # widget.Sep(
               #          linewidth = 1,
               #          padding = 10,
               #          foreground = colors[2],
               #          background = colors[1]
               #          ),
               # arcobattery.BatteryIcon(
               #          padding=0,
               #          scale=0.7,
               #          y_poss=2,
               #          theme_path=home + "/.config/qtile/icons/battery_icons_horiz",
               #          update_interval = 5,
               #          background = colors[1]
               #          ),
               # # battery option 2  from Qtile
               # widget.Sep(
               #          linewidth = 1,
               #          padding = 10,
               #          foreground = colors[2],
               #          background = colors[1]
               #          ),
               # widget.Battery(
               #          font="Noto Sans",
               #          update_interval = 10,
               #          fontsize = 12,
               #          foreground = colors[5],
               #          background = colors[1],
	           #          ),
               # widget.TextBox(
               #          font="FontAwesome",
               #          text="  ",
               #          foreground=colors[6],
               #          background=colors[1],
               #          padding = 0,
               #          fontsize=16
               #          ),

               widget.TextBox(
                         text='',
                         background = colors[10],
                         foreground = colors[11],
                         padding=0,
                         fontsize=37
                         ),
                widget.CPU(
                        border_color = colors[2],
                        #background=colors[1],
                        background=colors[11],
                        foreground=colors[5],
                        border_width = 1,
                        line_width = 1,
                        core = "all",
                        format = 'CPU {load_percent}% ',
                        padding= 4,
                        ),
               # widget.Sep(
               #          linewidth = 1,
               #          padding = 10,
               #          foreground = colors[2],
               #          background = colors[1]
               #          ),
              widget.TextBox(
                        text='',
                        background = colors[11],
                        foreground = colors[10],
                        padding=0,
                        fontsize=37
                        ),
               widget.Memory(
                        font="DejaVu Sans Book",
                        format = '{MemUsed}M/{MemTotal}M ',
                        update_interval = 1,
                        fontsize = 12,
                        foreground = colors[5],
                        background = colors[10],
                        #background = "#13807a",
                        padding= 4,
                       ),
               # widget.Sep(
               #          linewidth = 1,
               #          padding = 10,
               #          foreground = colors[2],
               #          background = colors[1]
               #          ),
               widget.TextBox(
                         text='',
                         background = colors[10],
                         foreground = colors[11],
                         padding=0,
                         fontsize=37
                         ),
               widget.DF(
               partition="/",
               format='{p}: ({uf}{m}|{r:.0f}%)',
               visible_on_warn=False,
               #background=colors[1],
               background=colors[11],
               foreground=colors[5],
               padding=4,
               ),
               widget.TextBox(
                         text='',
                         background = colors[11],
                         foreground = colors[10],
                         padding=0,
                         fontsize=37
                         ),
               widget.Clock(
                        background = colors[10],
                        foreground = colors[5],
                        fontsize = 12,
                        format="%b-%d %r ",
                        padding= 4,
                        ),
               # widget.Sep(
               #          linewidth = 1,
               #          padding = 10,
               #          foreground = colors[2],
               #          background = colors[1]
               #          ),
               widget.TextBox(
                         text='',
                         background = colors[10],
                         foreground = colors[11],
                         padding=0,
                         fontsize=37
                         ),
               widget.Systray(
                        background=colors[11],
                        #background="#9e60c3",
                        icon_size=20,
                        padding = 4,
                        ),
               # widget.Sep(
               #          linewidth = 1,
               #          padding = 10,
               #          foreground = colors[2],
               #          background = colors[1]
               #          ),
               widget.TextBox(
                         text='',
                         background = colors[11],
                         foreground = colors[10],
                         padding=0,
                         fontsize=37
                         ),
               widget.CapsNumLockIndicator(
                        background=colors[10],
                        icon_size=20,
                        padding = 4
                        ),
              ]
    return widgets_list
Exemplo n.º 6
0
                                foreground=colors[2]),
                widget.Prompt(),
                widget.WindowName(),
                widget.Chord(
                    chords_colors={
                        'launch': ("#2ABB9C", "#ffffff"),
                    },
                    name_transform=lambda name: name.upper(),
                ),
                #widget.TextBox("My Config", name="default"),
                #widget.TextBox("Press &lt;M-r&gt; to spawn", foreground="#d75f5f"),
                widget.Systray(),
                widget.NetGraph(fill_color=colors[3],
                                border_color=colors[3],
                                graph_color=colors[3]),
                widget.CapsNumLockIndicator(),
                widget.Sep(),
                widget.Clock(format='%d-%m-%Y'),
                widget.Sep(),
                widget.Clock(format="%a"),
                widget.Sep(),
                widget.Clock(format="%I:%M %p"),
                widget.Volume(emoji=True),
                widget.QuickExit(),
            ],
            24,
        ), ),
]

# Drag floating layouts.
mouse = [
Exemplo n.º 7
0
primary_widgets = [
    *workspaces(),
    separator(),
    icon(fg="color4", text='', fontsize=20),
    widget.CheckUpdates(
        **base(fg='color4'),
        update_interval=1800,
        display_format='{updates}',
        #colour_have_updates="color4",
        distro='Ubuntu',
        restar_indicator='Restart',
    ),
    icon(fg="color3", text=' ï ‹', fontsize=20),

    #widget.CPU(**base(fg='color3ï¡š')),
    widget.CapsNumLockIndicator(**base(fg='color3')),
    separator(),
    widget.CurrentLayoutIcon(**base(fg='color2'), scale=0.65),
    widget.CurrentLayout(**base(fg='color2'), padding=5),
    icon(fg="color1", fontsize=20, text=' ï—¯'),  # Icon: nf-mdi-calendar_clock
    widget.Clock(**base(fg='color1'), format='%d/%m/%Y - %H:%M '),
    widget.Systray(background=colors['dark'], padding=5),
]

secondary_widgets = [
    *workspaces(),
    separator(),
    widget.CurrentLayoutIcon(**base(bg='color1'), scale=0.65),
    widget.CurrentLayout(**base(bg='color1'), padding=5),
]
Exemplo n.º 8
0
def init_widget_list(main: bool):
    time = lambda s, m, h: (h * 60 * 60) + (m * 60) + (s)
    left = [
        widget.Sep(linewidth=0, padding=20, background=colors[-2]),
        widget.GroupBox(background=colors[-2],
                        this_current_screen_border=colors[-1],
                        this_screen_border=colors[-1],
                        hide_unused=True,
                        rounded=True,
                        highlight_method='block',
                        fontsize=20),
        widget.Prompt(
            background=colors[-2],
            prompt=f'{os.environ["LOGNAME"]}@{socket.gethostname()}: ',
            font=f'{widget_defaults["font"]} Bold'),
        right_arrow(colors[-1], colors[-2]),
        widget.CurrentLayout(fmt=' {}',
                             background=colors[-1],
                             mouse_callback={
                                 'Button1': lazy.next_layout,
                                 'Button2': lazy.prev_layout
                             }),
        right_arrow(colors[0], colors[-1]),
        widget.TextBox(text=' \uF2D2 ', **icon_settings()),
        widget.WindowName()
    ]
    right = [
        left_arrow(colors[-1], colors[-2]) if main else left_arrow(
            colors[0], colors[-2]),
        widget.TextBox(text='\uE214', background=colors[-2],
                       **icon_settings()),
        widget.TextBox(
            text=covid('a'),
            background=colors[-2],
            update_interval=time(0, 0, 12)  # seconds, minutes, hours
        ),
        left_arrow(colors[-2], colors[-1]),
        widget.TextBox(text='\uE214', background=colors[-1],
                       **icon_settings()),
        widget.TextBox(
            text=covid('e'),
            background=colors[-1],
            update_interval=time(0, 0, 12)  # seconds, minutes, hours
        ),
        left_arrow(colors[-1], colors[-2]),
        widget.CapsNumLockIndicator(background=colors[-2]),
        widget.KeyboardLayout(background=colors[-2],
                              configured_keyboards=['us'],
                              fmt='тМия╕П {}',
                              padding=4),
        left_arrow(colors[-2], colors[-1]),
        widget.TextBox(text='яМТ', background=colors[-1], **icon_settings()),
        widget.CheckUpdates(
            distro='Arch_yay',
            execute='$TERM -e sudo yay -Syu',
            display_format='{updates}',
            background=colors[-1],
            padding=4,
            update_interval=time(0, 0, 1)  # seconds, minutes, hours
        ),
        left_arrow(colors[-1], colors[-2]),
        widget.Volume(background=colors[-2], emoji=True),
        widget.Volume(background=colors[-2], padding=4),
        left_arrow(colors[-2], colors[-1]),
        widget.Clock(format='ЁЯХЧ %H%M ', background=colors[-1]),
        widget.TextBox(text='\uE0B3', background=colors[-1],
                       **icon_settings()),
        widget.Clock(format='%d/%m/%y', background=colors[-1]),
        widget.Sep(linewidth=0, padding=20, background=colors[-1])
    ]
    if main:
        right[:0] = [
            left_arrow(colors[0], colors[-1]),
            widget.Systray(background=colors[-1], icon_size=20, padding=0),
            widget.TextBox(text=' ', background=colors[-1])
        ]
    return left + right
Exemplo n.º 9
0
     font='Hack',
     fontsize=12,
 ),
 widget.KeyboardLayout(
     configured_keyboards=['us', 'gr'],
     font='JetbrainsMonoMedium Nerd Font Mono',
     background=colors[0],
     foreground=colors[13],
 ),
 widget.Sep(linewidth=0,
            padding=5,
            foreground=colors[0],
            background=colors[0]),
 widget.CapsNumLockIndicator(
     background=colors[0],
     foreground=colors[13],
     font='JetbrainsMonoMedium Nerd Font Mono',
 ),
 widget.Sep(linewidth=0,
            padding=5,
            foreground=colors[0],
            background=colors[0]),
 widget.Battery(
     background=colors[0],
     foreground=colors[13],
     format='{percent:2.0%}',
     font='JetbrainsMonoMedium Nerd Font Mono',
     update_interval=0.1,
 ),
 arcobattery.BatteryIcon(
     scale=0.4,
Exemplo n.º 10
0
                    other_screen_border=colors['dark'],
                    disable_drag=True),
    separator(),
    widget.WindowName(**base(fg='focus'), fontsize=17, padding=5),
    separator(),
]

primary_widgets = [
    *workspaces(),
    separator(),

    # powerline('color4', 'dark'),
    # widget.Pacman(**base(bg='color4'), update_interval=1800),
    powerline('color4', 'dark'),
    icon(bg="color4", text=' '),  # Icon: nf-fa-download
    widget.CapsNumLockIndicator(**base(bg='color4'), padding=5),
    powerline('color3', 'color4'),
    icon(bg="color3", text=' '),  # Icon: nf-fa-feed
    widget.Wlan(**base(bg='color3'), interface='wlp4s0'),
    # icon(bg="color3", text=' '),  # Icon: nf-fa-feed
    # widget.Net(**base(bg='color3'), interface='wlp4s0'),
    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/%Y - %H:%M '),
    powerline('dark', 'color1'),
    widget.Systray(background=colors['dark'], padding=5),
]
Exemplo n.º 11
0
def init_widgets_list():
    widgets_list = [
              widget.Sep(
                       linewidth = 0,
                       padding = 6,
                       foreground = colors[2],
                       background = colors[0]
                       ),
              widget.Image(
                       foreground = colors[2],
                       background = colors[0],
                       filename = "~/dotfiles/qtile/icons/python-logo.png",
                       scale = "False",
                       mouse_callbacks = {'Button1': lambda: qtile.cmd_spawn(myTerm)}
                       ),
             widget.Sep(
                       linewidth = 0,
                       padding = 6,
                       foreground = colors[2],
                       background = colors[0]
                       ),
              widget.GroupBox(
                       font = "Fira Sans, Fira Sans Book",
                       fontsize = 9,
                       margin_y = 3,
                       margin_x = 0,
                       padding_y = 5,
                       padding_x = 3,
                       borderwidth = 3,
                       active = colors[2],
                       inactive = colors[7],
                       rounded = False,
                       highlight_color = colors[1],
                       highlight_method = "line",
                       this_current_screen_border = colors[6],
                       this_screen_border = colors [4],
                       other_current_screen_border = colors[6],
                       other_screen_border = colors[4],
                       foreground = colors[2],
                       background = colors[0]
                       ),
              widget.Prompt(
                       prompt = prompt,
                       font = "Ubuntu Mono",
                       padding = 10,
                       foreground = colors[3],
                       background = colors[1]
                       ),
              widget.Sep(
                       linewidth = 0,
                       padding = 40,
                       foreground = colors[2],
                       background = colors[0]
                       ),
              widget.WindowName(
                       foreground = colors[6],
                       background = colors[0],
                       padding = 0
                       ),
              widget.Systray(
                       background = colors[0],
                       padding = 5
                       ),
              widget.Sep(
                       linewidth = 0,
                       padding = 6,
                       foreground = colors[0],
                       background = colors[0]
                       ),
              widget.TextBox(
                       text = '',
                       background = colors[0],
                       foreground = colors[4],
                       padding = 0,
                       fontsize = 37
                       ),
             widget.Net(
                       interface = "enp3s0",
                       format = '{down} ↓↑ {up}',
                       foreground = colors[2],
                       background = colors[4],
                       padding = 5
                       ),
              widget.TextBox(
                       text = '',
                       background = colors[4],
                       foreground = colors[5],
                       padding = 0,
                       fontsize = 37
                       ),
              widget.KeyboardLayout(
                       background = colors[5],
                       foreground = colors[2],
                       configured_keyboards = ['us', 'cz'],
                  mouse_callbacks = {'Button1': lambda: lazy.widget["keyboardlayout"].next_keyboard()},
              ),
              widget.CapsNumLockIndicator(
                       background = colors[5],
                       foreground = colors[2],
              ),
              widget.TextBox(
                       text='',
                       background = colors[5],
                       foreground = colors[4],
                       padding = 0,
                       fontsize = 37
                       ),
              widget.TextBox(
                       text = " ⟳",
                       padding = 2,
                       foreground = colors[2],
                       background = colors[4],
                       fontsize = 14
                       ),
              widget.CheckUpdates(
                       update_interval = 1800,
                       distro = "Arch_checkupdates",
                       display_format = "{updates} Updates",
                       foreground = colors[2],
                       mouse_callbacks = {'Button1': lambda: qtile.cmd_spawn(myTerm + " -e 'sudo pacman -Syu'")},
                       background = colors[4]
                       ),
              widget.TextBox(
                       text = '',
                       background = colors[4],
                       foreground = colors[5],
                       padding = 0,
                       fontsize = 37
                       ),
              widget.TextBox(
                       text = " 🖬",
                       foreground = colors[2],
                       background = colors[5],
                       padding = 0,
                       fontsize = 14
                       ),
              widget.Memory(
                       foreground = colors[2],
                       background = colors[5],
                       mouse_callbacks = {'Button1': lambda: qtile.cmd_spawn(myTerm + ' -e htop')},
                       padding = 5
                       ),
              widget.TextBox(
                       text='',
                       background = colors[5],
                       foreground = colors[4],
                       padding = 0,
                       fontsize = 37
                       ),
              widget.TextBox(
                       text = '',
                       background = colors[4],
                       foreground = colors[5],
                       padding = 0,
                       fontsize = 37
                       ),
              widget.TextBox(
                      text = " Vol:",
                       foreground = colors[2],
                       background = colors[5],
                       padding = 0
                       ),
              widget.Volume(
                       foreground = colors[2],
                       background = colors[5],
                       padding = 5
                       ),
              widget.TextBox(
                       text = '',
                       background = colors[5],
                       foreground = colors[4],
                       padding = 0,
                       fontsize = 37
                       ),
              widget.CurrentLayoutIcon(
                     #  custom_icon_paths = [os.path.expanduser("~/.config/qtile/icons")],
                       foreground = colors[0],
                       background = colors[4],
                       padding = 0,
                       scale = 0.7
                       ),
              widget.CurrentLayout(
                       foreground = colors[2],
                       background = colors[4],
                       padding = 5
                       ),
              widget.TextBox(
                       text = '',
                       background = colors[4],
                       foreground = colors[5],
                       padding = 0,
                       fontsize = 37
                       ),
              widget.Clock(
                       foreground = colors[2],
                       background = colors[5],
                       format = "%A, %B %d - %H:%M "
                       ),
              ]
    return widgets_list
Exemplo n.º 12
0
            widget.WindowName(background="ffafaf", foreground="221d1d"),
            widget.Systray(background="d787d7"),
            widget.Chord(
                chords_colors={
                    'launch': ("#ff0000", "#d75f5f"),
                },
                name_transform=lambda name: name.upper(),
            ),
            widget.TextBox("Cody's Config",
                           name="default",
                           fontsize=10,
                           font="Ubuntu Bold",
                           background="d75f5f"),
            widget.CPU(font="Ubuntu Bold", background="d787d7"),
            widget.Memory(font="Ubuntu Bold", background="d75f5f"),
            widget.CapsNumLockIndicator(background="d787d7"),
            widget.Clock(background="d75f5f"),
            widget.QuickExit(background="d787d7"),
        ],
        20,
        background="ffafaf",
    ), ),
]

# Drag floating layouts.
mouse = [
    Drag([mod],
         "Button1",
         lazy.window.set_position_floating(),
         start=lazy.window.get_position()),
    Drag([mod],
Exemplo n.º 13
0
def in_wid_list_bot():
    wid_list_bot = [
        #widget.DebugInfo(foreground=colors[7], background=colors[0], fontshadow=colors[2]),
        widget.Spacer(length=bar.STRETCH),
        #### Network ####
        widget.TextBox(text='◢',
                       background=colors[0],
                       foreground=colors[5],
                       padding=-2,
                       fontsize=45),
        widget.Net(font='Font Awesome 5 Free',
                   fontsize=15,
                   interface=netact,
                   format='',
                   foreground=colors[0],
                   background=colors[5],
                   fontshadow=colors[7],
                   mouse_callbacks={'Button1': wnetw}),
        widget.Wlan(interface=netact,
                    format='{essid} {percent:2.0%} ',
                    disconnected_message='Unplugged',
                    foreground=colors[0],
                    background=colors[5],
                    mouse_callbacks={'Button1': wnetw}),
        widget.Net(font='Font Awesome 5 Free',
                   fontsize=15,
                   interface=netact,
                   format='{down} ↓↑ {up}',
                   foreground=colors[0],
                   background=colors[5],
                   use_bits=True,
                   mouse_callbacks={'Button1': wnetw}),
        #### Bitcoin ####
        widget.TextBox(text="◢",
                       background=colors[5],
                       foreground=colors[3],
                       padding=-2,
                       fontsize=45),
        widget.BitcoinTicker(background=colors[3], foreground=colors[0]),
        widget.TextBox(text="◢",
                       background=colors[3],
                       foreground=colors[1],
                       padding=-2,
                       fontsize=45),
        #### Weather ####
        widget.OpenWeather(
            app_key='e45a0f07f0c675b273ef8636663941db',
            cityid='3521342',
            background=colors[1],
            foreground=colors[0],
            format=
            '{main_temp}°{units_temperature} {humidity}% {weather_details}',
            metric=True,
            update_interval=600),
        #### RAM ####
        widget.TextBox(text="◢",
                       background=colors[1],
                       foreground=colors[2],
                       padding=-2,
                       fontsize=45),
        widget.TextBox(font='Font Awesome 5 Free',
                       fontsize=15,
                       background=colors[2],
                       foreground=colors[0],
                       fontshadow=colors[7],
                       text=""),
        widget.Memory(format='{MemUsed}Mb',
                      foreground=colors[0],
                      background=colors[2],
                      padding=5),
        #### CPU ####
        widget.TextBox(text="◢",
                       background=colors[2],
                       foreground=colors[5],
                       padding=-2,
                       fontsize=45),
        widget.TextBox(font='Font Awesome 5 Free',
                       fontsize=15,
                       background=colors[5],
                       foreground=colors[0],
                       text="",
                       fontshadow=colors[7]),
        widget.CPU(format='{load_percent}%',
                   foreground=colors[0],
                   background=colors[5],
                   mouse_callbacks={
                       'Button1': lambda: qtile.cmd_spawn(term + ' -e htop')
                   }),
        #### Disk Space ####
        widget.TextBox(text="◢",
                       background=colors[5],
                       foreground=colors[3],
                       padding=-2,
                       fontsize=45),
        widget.TextBox(font='Font Awesome 5 Free',
                       fontsize=15,
                       background=colors[3],
                       foreground=colors[0],
                       fontshadow=colors[7],
                       text=""),
        widget.DF(format='{p} ({uf}{m}|{r:.0f}%)',
                  measure='G',
                  Partition='/',
                  update_interval=60,
                  foreground=colors[0],
                  background=colors[3],
                  padding=5,
                  visible_on_warn=False,
                  mouse_callbacks={
                      'Button1': lambda: qtile.cmd_spawn(term + ' -e ranger')
                  },
                  warn_color="ff0000"),
        #### Thermal Sensors ####
        widget.TextBox(text="◢",
                       background=colors[3],
                       foreground=colors[7],
                       padding=-2,
                       fontsize=45),
        widget.TextBox(font='Font Awesome 5 Free',
                       fontsize=15,
                       text=" ",
                       background=colors[7],
                       foreground=colors[0],
                       fontshadow=colors[6],
                       metric=True),
        widget.ThermalSensor(background=colors[7], foreground=colors[0]),
        #### Keyboard Layout ####
        widget.TextBox(text="◢",
                       background=colors[7],
                       foreground=colors[0],
                       padding=-2,
                       fontsize=45),
        widget.TextBox(font='Font Awesome 5 Free',
                       fontsize=17,
                       text="",
                       foreground=colors[7],
                       background=colors[0]),
        widget.KeyboardLayout(foreground=colors[7],
                              background=colors[0],
                              padding=5,
                              fontshadow=colors[4]),

        #### Caps lock Num Lock Indicator ####
        widget.TextBox(text="◢",
                       background=colors[0],
                       foreground=colors[1],
                       padding=-2,
                       fontsize=45),
        widget.CapsNumLockIndicator(foreground=colors[0],
                                    background=colors[1],
                                    padding=5),
        #### Battery for laptops ####
        widget.TextBox(text="◢",
                       background=colors[1],
                       foreground=colors[0],
                       padding=-2,
                       fontsize=45),
        # widget.BatteryIcon(
        #    show_short_text=True,
        #    notify_below=30,
        #    discharge_char=' ',
        #    empty_char='',
        #    full_char=' ',
        #    background=colors[0],
        #    foreground=colors[7]
        #    ),
        #widget.Battery(
        #    format='{percent:2.0%}',
        #    show_short_text=False,
        #    update_interval=5,
        #    background=colors[0],
        #    foreground=colors[7]
        #    ),
        #### Systray ####
        widget.Systray(icon_size=18,
                       background=colors[0],
                       foreground=colors[7]),
    ]
    return wid_list_bot
Exemplo n.º 14
0
                widget.TextBox(**bg_fg(color[4], color[5]),
                               fontsize = 16,
                               text = " "
                        ),
                widget.GroupBox(**group_box),

                # Window name
                widget.Sep(**sep),
                widget.WindowName(font = 'Roboto bold'),
                widget.Sep(**sep),

                # Apps tray icons
                widget.TextBox(**bg_fg(color[0], color[1]), **text_box),
                widget.Systray(**systray),
                #widget.Wlan(**wifi), # Wifi icon
                widget.CapsNumLockIndicator(**caps), # Caps Indicator
                widget.Sep(**bg_fg(color[1], color[1]), text = " "),

                # Thermal sensor widget
                widget.TextBox(**bg_fg(color[1], color[4]), **text_box),
                widget.TextBox(**bg_fg(color[4], color[5]), text = ""),
                widget.ThermalSensor(**thermal_sensor),

                # Battery widget    
                widget.TextBox(**bg_fg(color[4], color[3]), **text_box),
                widget.Battery(**battery),

                # Brandwidth widget
                widget.TextBox(**bg_fg(color[3], color[2]), **text_box),
                widget.Net(**net),
Exemplo n.º 15
0
     foreground=pywaldict["special"]["background"],
     backlight_name="intel_backlight",
     fmt="Bri:{}",
 ),
 widget.Battery(
     background=pywaldict["colors"]["color5"],
     foreground=pywaldict["special"]["background"],
     fmt="BAT:{}",
 ),
 widget.Volume(
     background=pywaldict["colors"]["color4"],
     foreground=pywaldict["special"]["background"],
     fmt="Vol:{}",
 ),
 widget.CapsNumLockIndicator(
     background=pywaldict["colors"]["color3"],
     foreground=pywaldict["special"]["background"],
 ),
 widget.Pacman(
     background=pywaldict["colors"]["color2"],
     foreground=pywaldict["special"]["background"],
     fmt="Updates:{}",
     font="Roboto Mono Bold",
     fontsize=12,
     padding=10,
 ),
 widget.Clock(
     background=pywaldict["colors"]["color3"],
     foreground=pywaldict["special"]["background"],
     format='%d-%m-%Y %a %I:%M %p',
     font="Roboto Mono Bold",
     padding=10,