Esempio n. 1
0
            ["000000", "000000"], # explanation here
            ["000000", "000000"], # explanation here
            ["000000", "000000"], # explanation here
            ["000000", "000000"], # explanation here
            ["000000", "000000"]] # explanation here

barColor = ["021b21", # panel bg
        "f2f1b9", # panel text
        "065f73"] # current screen tab bg

screens = [
    Screen(
        top=bar.Bar(
            #background = barColor[0]
            [
                widget.CurrentLayout(foreground=barColor[1]),
                widget.GroupBox(),
                widget.Prompt(),
                widget.WindowName(foreground=barColor[2]),
                widget.Chord(
                    chords_colors={
                        'launch': ("#ff0000", "#ffffff"),
                    },
                    name_transform=lambda name: name.upper(),
                ),
                widget.TextBox("default config", name="default"),
                widget.TextBox("Press <M-r> to spawn", foreground="#d75f5f"),
                widget.Systray(),
                #widget.CPU(),
                widget.Clock(format='%Y-%m-%d %a %I:%M %p'),
                widget.QuickExit(),
Esempio n. 2
0
    # layout.VerticalTile(),
    # layout.Zoomy(),
]

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

screens = [
    Screen(
        bottom=bar.Bar(
            [
                widget.CurrentLayout(),
                widget.GroupBox(),
                widget.Prompt(),
                widget.WindowName(),
                widget.Chord(
                    chords_colors={
                        'launch': ("#ff0000", "#ffffff"),
                    },
                    name_transform=lambda name: name.upper(),
                ),
                widget.TextBox("default config", name="default"),
                widget.TextBox("Press <M-r> to spawn", foreground="#d75f5f"),
                widget.Systray(),
                widget.Clock(format='%Y-%m-%d %a %I:%M %p'),
                widget.QuickExit(),
            ],
Esempio n. 3
0
def init_widgets_list():
    prompt = "{0}@{1}: ".format(os.environ["USER"], socket.gethostname())
    widgets_list = [
        widget.GroupBox(font="FontAwesome",
                        fontsize=16,
                        margin_y=-1,
                        margin_x=0,
                        padding_y=6,
                        padding_x=5,
                        borderwidth=0,
                        disable_drag=True,
                        active=colors[9],
                        inactive=colors[5],
                        rounded=False,
                        highlight_method="text",
                        this_current_screen_border=colors[8],
                        foreground=colors[2],
                        background=colors[1]),
        widget.Sep(linewidth=1,
                   padding=10,
                   foreground=colors[2],
                   background=colors[1]),
        widget.CurrentLayout(font="Noto Sans Bold",
                             foreground=colors[5],
                             background=colors[1]),
        widget.Sep(linewidth=1,
                   padding=10,
                   foreground=colors[2],
                   background=colors[1]),
        widget.WindowName(
            font="Noto Sans",
            fontsize=12,
            foreground=colors[5],
            background=colors[1],
        ),
        widget.Chord(
            chords_colors={
                'launch': ("#ff0000", "#ffffff"),
            },
            name_transform=lambda name: name.upper(),
        ),
        widget.TextBox("Dave's Config", name="default", padding=5),
        widget.TextBox("Press <M-r> to spawn",
                       foreground=colors[3],
                       padding=9),
        widget.Prompt(
            prompt="run: ",
            ignore_dups_history=True,
        ),
        #widget.Systray(),
        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.CPU(
            foreground="#ffffff",
            fontsize=12,
            update_interval=1.0,
        ),
        widget.Sep(linewidth=1,
                   padding=10,
                   foreground=colors[2],
                   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="FontAwesome",
                       text=" ",
                       foreground=colors[3],
                       background=colors[1],
                       padding=0,
                       fontsize=16),
        widget.Volume(),
        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),
        # # do not activate in Virtualbox - will break qtile
        widget.ThermalSensor(
            foreground=colors[5],
            foreground_alert=colors[6],
            background=colors[1],
            tag_sensor="Core 0",  # this won't work for AMD CPUs
            metric=True,
            padding=3,
            update_interval=0.5,
            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.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(foreground=colors[5],
                     background=colors[1],
                     fontsize=12,
                     format="%m-%d-%Y %H:%M:%S"),
        # widget.Sep(
        #          linewidth = 1,
        #          padding = 10,
        #          foreground = colors[2],
        #          background = colors[1]
        #          ),
        widget.Systray(background=colors[1], icon_size=20, padding=4),
    ]
    return widgets_list
Esempio n. 4
0
     foreground=colorsc[10],
     ),
 widget.TextBox( # [3] --> Text for Updates
     text='PAC:',
     foreground=colorsc[4]
     ),
 widget.Pacman( # [4] --> Updates
     foreground=colorsc[4]
     ),
 widget.CurrentLayoutIcon( # [5] --> Layout icon
     background=colorsc[1],
     scale=0.65,
     foreground=colorsc[0]
     ),
 widget.CurrentLayout( # [6] --> Layout name
     background=colorsc[1],
     foreground=colorsc[0],
     ),
 widget.Volume( # [7] --> Volume percentage
     background=colorsc[4],
     format='{percent: 2.0%}',
     foreground=colorsc[0],
     volume_app="alsamixer"
     ),
 widget.Backlight( # [8] --> Brightness percentage
     background=colorsc[3],
     backlight_name='intel_backlight',
     format='{percent: 2.0%}',
     foreground=colorsc[0]
     ),
 widget.Battery( # [9] --> Battery percentage
     background=colorsc[2],
Esempio n. 5
0
def my_widgets():
    return [
        widget.TextBox(
            background                  = colors_standard[1],
            fontsize                    = 16,
            foreground                  = colors_custom[1],
            mouse_callbacks             = {
                'Button1': xmenu,
                'Button3': xmenu
            },
            padding                     = 10,
            text                        = '\U0000F111 '
        ),
        widget.GroupBox(
            active                      = colors_custom[7],
            background                  = colors_standard[1],
            borderwidth                 = 4,
            font                        = 'Sans Mono Bold',
            fontsize                    = 12,
            foreground                  = colors_standard[3],
            highlight_color             = colors_standard[2],
            highlight_method            = 'block',
            inactive                    = colors_custom[8],
            margin_x                    = 0,
            margin_y                    = 3,
            other_current_screen_border = colors_standard[1],
            other_screen_border         = colors_standard[1],
            padding_x                   = 3,
            padding_y                   = 5,
            rounded                     = False,
            this_current_screen_border  = colors_custom[9],
            this_screen_border          = colors_custom[13],
            use_mouse_wheel             = False
        ),
        my_sep(),
        widget.Prompt(
            font                        = 'SourceCodePro',
            fontsize                    = 16,
            foreground                  = colors_custom[7],
            prompt                      = ': '
        ),
        widget.Spacer(bar.STRETCH),
        my_sep(),
        widget.TextBox(
            background                  = colors_standard[1],
            fontsize                    = 35,
            foreground                  = colors_custom[1],
            padding                     = 0,
            text                        = '\U0000E0B2'
        ),
        widget.TextBox(
            background                  = colors_custom[1],
            font                        = 'Icons',
            fontsize                    = 16,
            foreground                  = '#000000',
            padding                     = 0,
            text                        = '\U0000F109  '
        ),
        widget.Memory(
            background                  = colors_custom[1],
            foreground                  = '#000000',
            format                      = 'RAM: {MemPercent}%',
            padding                     = 0,
            update_interval             = 1
        ),
        widget.CPU(
            background                  = colors_custom[1],
            foreground                  = '#000000',
            format                      = ' | CPU: {load_percent}%',
            padding                     = 0,
            update_interval             = 1
        ),
        my_sep(b=colors_custom[1], p=15),
        widget.TextBox(
            background                  = colors_custom[1],
            fontsize                    = 35,
            foreground                  = colors_custom[6],
            padding                     = 0,
            text                        = '\U0000E0B2'
        ),
        widget.CurrentLayoutIcon(
            background                  = colors_custom[6],
            custom_icon_paths           = [ os.path.join(qtile_root, 'icons_black_outline/') ],
            foreground                  = '#000000',
            padding                     = 0,
            scale                       = 0.5
        ),
        widget.CurrentLayout(
            background                  = colors_custom[6],
            foreground                  = '#000000',
            padding                     = 2
        ),
        my_sep(b=colors_custom[6], p=10),
        widget.TextBox(
            background                  = colors_custom[6],
            fontsize                    = 35,
            foreground                  = colors_custom[5],
            padding                     = 0,
            text                        = '\U0000E0B2'
        ),
        widget.TextBox(
            background                  = colors_custom[5],
            font                        = 'Icons',
            fontsize                    = 14,
            foreground                  = '#000000',
            mouse_callbacks = {
                'Button1': nm_applet,
                'Button3': close_nm_applet,
            },
            padding                     = 0,
            text                        = '\U0000F09E  '
        ),
        widget.Wlan(
            background                  = colors_custom[5],
            foreground                  = '#000000',
            format                      = '{essid}',
            interface                   = 'wlp1s0',
            mouse_callbacks = {
                'Button1': nm_applet,
                'Button3': close_nm_applet,
            },
            padding                     = 0
        ),
        my_sep(b=colors_custom[5], p=10),
        widget.TextBox(
            background                  = colors_custom[5],
            fontsize                    = 35,
            foreground                  = colors_custom[2],
            padding                     = 0,
            text                        = '\U0000E0B2'
        ),
        widget.TextBox(
            background                  = colors_custom[2],
            font                        = 'Icons',
            fontsize                    = 20,
            foreground                  = '#000000',
            padding                     = 0,
            text                        = '\U0000F2E4'
        ),
        widget.Backlight(
            background                  = colors_custom[2],
            backlight_name              = 'intel_backlight',
            foreground                  = '#000000',
            format                      = '{percent:2.0%}',
            padding                     = 5
        ),
        widget.TextBox(
            background                  = colors_custom[2],
            fontsize                    = 16,
            foreground                  = '#000000',
            padding                     = 5,
            text                        = '|'
        ),
        widget.TextBox(
            background                  = colors_custom[2],
            fontsize                    = 16,
            foreground                  = '#000000',
            padding                     = 5,
            text                        = '\U0000F028 '
        ),
        widget.Volume(
            background                  = colors_custom[2],
            foreground                  = '#000000',
            volume_app                  = 'alsamixer',
            update_interval             = 0.1
        ),
        widget.TextBox(
            background                  = colors_custom[2],
            fontsize                    = 16,
            foreground                  = '#000000',
            padding                     = 0,
            text                        = ' | '
        ),
        widget.Battery(
            background                  = colors_custom[2],
            charge_char                 = '\U0000F583',
            discharge_char              = '\U0000F57E',
            empty_char                  = '\U0000F58D',
            foreground                  = '#000000',
            format                      = '{char} {percent:2.0%}',
            fontsize                    = 16,
            full_char                   = '\U0000F578',
            low_percentage              = 0.21,
            padding                     = 0,
            show_short_text             = False,
            update_interval             = 1,
            unknown_char                = '\U0000F590'
        ),
        my_sep(b=colors_custom[2], p=10),
        widget.TextBox(
            background                  = colors_custom[2],
            fontsize                    = 35,
            foreground                  = colors_custom[3],
            padding                     = 0,
            text                        = '\U0000E0B2'
        ),
        widget.TextBox(
            background                  = colors_custom[3],
            fontsize                    = 16,
            foreground                  = '#000000',
            padding                     = 2,
            text                        = '\U0000F5ED '
        ),
        widget.Clock(
            background                  = colors_custom[3],
            foreground                  = '#000000',
            format                      = '%a, %b %d - %Y',
            padding                     = 0
        ),
        widget.TextBox(
            background                  = colors_custom[3],
            fontsize                    = 16,
            foreground                  = '#000000',
            padding                     = 0,
            text                        = ' | '
        ),
        widget.TextBox(
            background                  = colors_custom[3],
            fontsize                    = 16,
            foreground                  = '#000000',
            padding                     = 0,
            text                        = '\U0000E384 '
        ),
        widget.Clock(
            background                  = colors_custom[3],
            foreground                  = '#000000',
            format                      = '%H:%M',
            padding                     = 5
        ),
        my_sep(b=colors_custom[3], p=5),
    ]
Esempio n. 6
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 = 0,
                        margin_x = 0,
                        padding_y = 5,
                        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="Ubuntu Mono",
                        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
                        ),
		       widget.TextBox(
                        text='',
                        background = colors[0],
                        foreground = colors[4],
                        padding=0,
                        fontsize=37
                        ),
               widget.TextBox(
                        text=" ⟳",
                        padding = 5,
                        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.TextBox(
                        text=" ↯",
                        foreground=colors[2],
                        background=colors[4],
                        padding = 0,
                        fontsize=14
                        ),
               widget.Net(
                        interface = "enp6s0",
                        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 = 5,
                        foreground=colors[2],
                        background=colors[5],
                        fontsize=14
                        ),
               widget.Cmus(
                        max_chars = 40,
                        update_interval = 0.5,
                        background=colors[5],
                        play_color = colors[2],
                        noplay_color = colors[2]
                        ),		
		       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.Volume(
                        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 = 5,
                        foreground=colors[2],
                        background=colors[5],
                        fontsize=14
                        ),
               widget.CurrentLayout(
                        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 = 5,
                        fontsize=14
                        ),
               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
Esempio n. 7
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
Esempio n. 8
0
def build_bar(settings: dict, secrets: dict = {}) -> List[bar.Bar]:
    theme = settings["theme"]
    barheight = theme["barheight"]
    font = theme["font"]
    iconfont = theme["iconfont"]
    fontsize = theme["fontsize"]
    theme_colors = theme["color"]
    owm_location_args = {}
    if "latitude" in secrets:
        owm_location_args["latitude"] = secrets["latitude"]
    if "longitude" in secrets:
        owm_location_args["longitude"] = secrets["longitude"]

    def _fg_sep():
        return widget.Sep(
            linewidth=0,
            padding=6,
            background=theme_colors["panel_fg"],
        )

    def _bg_sep():
        return widget.Sep(
            linewidth=0,
            padding=6,
            background=theme_colors["panel_bg"],
        )

    def _line_sep():
        return widget.Sep(
            linewidth=1,
            size_percent=50,
            padding=18,
            foreground="888888",
            background=theme_colors["panel_bg"],
        )

    top_bar_widgets = [
        # region LHS
        _fg_sep(),
        widget.TextBox(
            text=chr(983044),
            font=iconfont,
            fontsize=fontsize + 6,
            foreground=theme_colors["panel_bg"],
            background=theme_colors["panel_fg"],
        ),
        _fg_sep(),
        _bg_sep(),
        widget.GroupBox(
            margin_y=3,
            margin_x=2,
            padding_y=5,
            padding_x=5,
            borderwidth=0,
            foreground=theme_colors["panel_fg"],
            background=theme_colors["panel_bg"],
            active=theme_colors["group_active_fg"],
            inactive=theme_colors["group_inactive_fg"],
            rounded=True,
            highlight_method="block",
            this_current_screen_border=theme_colors["group_current_bg"],
            this_screen_border=theme_colors["group_current_bg"],
            # other_current_screen_border=theme_colors["panel_bg"],
            # other_screen_border=theme_colors["panel_bg"],
            disable_drag=True,
        ),
        _line_sep(),
        widget.CurrentLayout(
            foreground=theme_colors["panel_fg"],
            background=theme_colors["panel_bg"],
        ),
        _line_sep(),
        EscapedWindowName(
            padding=5,
            foreground=theme_colors["panel_fg"],
            background=theme_colors["panel_bg"],
        ),
        # endregion
        # region RHS
        # Systray
        widget.TextBox(
            text=theme["powerline_separator"][0],
            fontsize=barheight + 8,
            padding=0,
            margin=0,
            foreground=theme_colors["powerline_bg"][4],
            background=theme_colors["panel_bg"],
        ),
        widget.Sep(
            linewidth=0,
            padding=6,
            background=theme_colors["powerline_bg"][4],
        ),
        widget.Systray(
            foreground=theme_colors["powerline_fg"],
            background=theme_colors["powerline_bg"][4],
        ),
        widget.Sep(
            linewidth=0,
            padding=6,
            background=theme_colors["powerline_bg"][4],
        ),
        widget.TextBox(
            text=chr(987798),
            font=iconfont,
            foreground=theme_colors["powerline_fg"],
            background=theme_colors["powerline_bg"][4],
        ),
        widget.Sep(
            linewidth=0,
            padding=6,
            background=theme_colors["powerline_bg"][4],
        ),
        # OpenWeatherMap
        widget.TextBox(
            text=theme["powerline_separator"][0],
            font=font,
            fontsize=barheight + 6,
            margin=0,
            padding=0,
            foreground=theme_colors["powerline_bg"][3],
            background=theme_colors["powerline_bg"][4],
        ),
        widget.Sep(
            linewidth=0,
            padding=6,
            background=theme_colors["powerline_bg"][3],
        ),
        OpenWeatherMap(
            format=
            '{temp:.1f}{temp_units} <span face="{icon_font}">{icon}</span>',
            apikey=secrets["owm_apikey"],
            foreground=theme_colors["powerline_fg"],
            background=theme_colors["powerline_bg"][3],
            **owm_location_args,
        ),
        widget.Sep(
            linewidth=0,
            padding=6,
            foreground=theme_colors["panel_fg"],
            background=theme_colors["powerline_bg"][3],
        ),
        # volume control
        widget.TextBox(
            text=theme["powerline_separator"][0],
            font=font,
            fontsize=barheight + 6,
            margin=0,
            padding=0,
            foreground=theme_colors["powerline_bg"][2],
            background=theme_colors["powerline_bg"][3],
        ),
        widget.Sep(
            linewidth=0,
            padding=6,
            background=theme_colors["powerline_bg"][2],
        ),
        FixedWidthVolume(
            # iconfont = "Material Design Icons",
            volume_up_command=settings["volume"]["up"],
            volume_down_command=settings["volume"]["down"],
            mute_command=settings["volume"]["toggle"],
            volume_app=settings["volume"]["app"],
            foreground=theme_colors["powerline_fg"],
            background=theme_colors["powerline_bg"][2],
        ),
        widget.Sep(
            linewidth=0,
            padding=6,
            background=theme_colors["powerline_bg"][2],
        ),
        widget.TextBox(
            text=theme["powerline_separator"][0],
            fontsize=barheight + 6,
            padding=0,
            margin=0,
            foreground=theme_colors["powerline_bg"][1],
            background=theme_colors["powerline_bg"][2],
        ),
        widget.Sep(
            linewidth=0,
            padding=6,
            background=theme_colors["powerline_bg"][1],
        ),
        widget.Mpd2(
            status_format="{play_status} {artist} | {title} | {album}",
            idle_format="Play queue empty",
            foreground=theme_colors["powerline_fg"],
            background=theme_colors["powerline_bg"][1],
        ),
        widget.Sep(
            linewidth=0,
            padding=6,
            background=theme_colors["powerline_bg"][1],
        ),
        widget.TextBox(
            text=chr(984922),
            font=iconfont,
            foreground=theme_colors["powerline_fg"],
            background=theme_colors["powerline_bg"][1],
        ),
        widget.Sep(
            linewidth=0,
            padding=6,
            background=theme_colors["powerline_bg"][1],
        ),
        # Clock
        widget.TextBox(
            text=theme["powerline_separator"][0],
            fontsize=barheight + 6,
            padding=0,
            margin=0,
            foreground=theme_colors["powerline_bg"][0],
            background=theme_colors["powerline_bg"][1],
        ),
        widget.Sep(
            linewidth=0,
            padding=6,
            background=theme_colors["powerline_bg"][0],
        ),
        widget.Clock(
            format="%a %Y-%m-%d",
            foreground=theme_colors["powerline_fg"],
            background=theme_colors["powerline_bg"][0],
        ),
        widget.Sep(
            linewidth=0,
            padding=6,
            background=theme_colors["powerline_bg"][0],
        ),
        # calendar symbol
        widget.TextBox(
            text=chr(983277),
            font=iconfont,
            foreground=theme_colors["powerline_fg"],
            background=theme_colors["powerline_bg"][0],
        ),
        widget.Sep(
            linewidth=0,
            padding=12,
            foreground=theme_colors["powerline_fg"],
            background=theme_colors["powerline_bg"][0],
        ),
        widget.Clock(
            format="%H:%M",
            foreground=theme_colors["powerline_fg"],
            background=theme_colors["powerline_bg"][0],
        ),
        widget.Sep(
            linewidth=0,
            padding=6,
            foreground=theme_colors["powerline_fg"],
            background=theme_colors["powerline_bg"][0],
        ),
        # clock symbol
        widget.TextBox(
            text=chr(983376),
            font=iconfont,
            foreground=theme_colors["powerline_fg"],
            background=theme_colors["powerline_bg"][0],
        ),
        widget.Sep(
            linewidth=0,
            padding=6,
            background=theme_colors["powerline_bg"][0],
        ),
        # endregion
    ]

    if "logo" in theme:
        top_bar_widgets.append(
            widget.TextBox(
                text=f"  {theme['logo']}  ",
                font=theme["logofont"],
                foreground=theme_colors["powerline_fg"],
                background=theme_colors["powerline_bg"][-1],
            ), )

    # def cpu_button(*args, **kwargs):
    #     command = [settings["term"], "-e", "htop"]
    #     Popen(command, shell=True)
    # with open(os.path.expanduser("~/cpu_button"), "w") as fp:
    #     fp.write(f"command={command}")

    bottom_bar_widgets = [
        # Updates
        widget.Sep(
            linewidth=0,
            padding=6,
            background=theme_colors["powerline_bg"][3],
        ),
        widget.TextBox(
            text=chr(984752),
            font=iconfont,
            foreground=theme_colors["powerline_fg"],
            background=theme_colors["powerline_bg"][3],
        ),
        widget.Sep(
            linewidth=0,
            padding=6,
            background=theme_colors["powerline_bg"][3],
        ),
        widget.CheckUpdates(
            distro="Arch",
            execute="alacritty",
            update_interval=1800,
            display_format="{updates} Updates",
            colour_no_updates=theme_colors["powerline_fg"],
            colour_have_updates=theme_colors["panel_fg"],
            background=theme_colors["powerline_bg"][3],
        ),
        widget.Sep(
            linewidth=0,
            padding=6,
            background=theme_colors["powerline_bg"][3],
        ),
        widget.TextBox(
            text=theme["powerline_separator"][1],
            fontsize=barheight + 6,
            padding=0,
            margin=2,
            foreground=theme_colors["powerline_bg"][3],
            background=theme_colors["powerline_bg"][4],
        ),
        # region Net
        widget.Sep(
            linewidth=0,
            padding=6,
            background=theme_colors["powerline_bg"][4],
        ),
        widget.TextBox(
            text=chr(986631),
            font=iconfont,
            fontsize=barheight - 4,
            foreground=theme_colors["powerline_fg"],
            background=theme_colors["powerline_bg"][4],
        ),
        NetMin(
            font=font,
            interface="wlp4s0f3u2",
            format="{up} ",
            foreground=theme_colors["powerline_fg"],
            background=theme_colors["powerline_bg"][4],
        ),
        widget.TextBox(
            text=chr(985999),
            font=iconfont,
            fontsize=barheight - 4,
            foreground=theme_colors["powerline_fg"],
            background=theme_colors["powerline_bg"][4],
        ),
        NetMin(
            font=font,
            interface="wlp4s0f3u2",
            format="{down}",
            foreground=theme_colors["powerline_fg"],
            background=theme_colors["powerline_bg"][4],
        ),
        widget.Sep(
            linewidth=0,
            padding=6,
            background=theme_colors["powerline_bg"][4],
        ),
        widget.TextBox(
            text=theme["powerline_separator"][1],
            fontsize=barheight - 4,
            padding=0,
            margin=0,
            foreground=theme_colors["powerline_bg"][4],
            background=theme_colors["powerline_bg"][5],
        ),
        # endregion
        # region Memory
        widget.Sep(
            linewidth=0,
            padding=6,
            background=theme_colors["powerline_bg"][5],
        ),
        widget.TextBox(
            text=chr(983899),
            font=iconfont,
            fontsize=barheight - 4,
            foreground=theme_colors["powerline_fg"],
            background=theme_colors["powerline_bg"][5],
        ),
        widget.Memory(
            format="{MemUsed:5d}M/{MemTotal}M",
            foreground=theme_colors["powerline_fg"],
            background=theme_colors["powerline_bg"][5],
        ),
        widget.Sep(
            linewidth=0,
            padding=6,
            background=theme_colors["powerline_bg"][5],
        ),
        widget.TextBox(
            text=theme["powerline_separator"][1],
            fontsize=barheight - 4,
            padding=0,
            margin=0,
            foreground=theme_colors["powerline_bg"][5],
            background=theme_colors["powerline_bg"][6],
        ),
        # endregion
        # region CPU
        widget.Sep(
            linewidth=0,
            padding=6,
            background=theme_colors["powerline_bg"][6],
        ),
        widget.TextBox(
            text=chr(986848),
            font=iconfont,
            fontsize=barheight - 4,
            padding=0,
            margin=0,
            foreground=theme_colors["powerline_fg"],
            background=theme_colors["powerline_bg"][6],
        ),
        widget.Sep(
            linewidth=0,
            padding=6,
            background=theme_colors["powerline_bg"][6],
        ),
        widget.CPU(
            format="{load_percent:4.1f}%",
            update_interval=5,
            foreground=theme_colors["powerline_fg"],
            background=theme_colors["powerline_bg"][6],
            # mouse_callbacks={"Button1": cpu_button},
        ),
        widget.Sep(
            linewidth=0,
            padding=6,
            background=theme_colors["powerline_bg"][6],
        ),
        widget.TextBox(
            text=theme["powerline_separator"][1],
            fontsize=barheight - 4,
            padding=0,
            margin=0,
            foreground=theme_colors["powerline_bg"][6],
            background=theme_colors["powerline_bg"][7],
        ),
        # endregion
        # region Temps
        widget.Sep(
            linewidth=0,
            padding=6,
            background=theme_colors["powerline_bg"][7],
        ),
        widget.TextBox(
            text=chr(984335),
            font=iconfont,
            fontsize=barheight - 4,
            padding=0,
            margin=0,
            foreground=theme_colors["powerline_fg"],
            background=theme_colors["powerline_bg"][7],
        ),
        widget.Sep(
            linewidth=0,
            padding=6,
            background=theme_colors["powerline_bg"][7],
        ),
        widget.ThermalSensor(
            foreground=theme_colors["powerline_fg"],
            background=theme_colors["powerline_bg"][7],
        ),
        widget.Sep(
            linewidth=0,
            padding=12,
            background=theme_colors["powerline_bg"][7],
        ),
        widget.TextBox(
            text=theme["powerline_separator"][1],
            font=font,
            fontsize=barheight - 4,
            padding=0,
            margin=0,
            foreground=theme_colors["powerline_bg"][7],
            background=theme_colors["panel_bg"],
        ),
        # endregion
    ]

    # bottom_pl = Powerline(
    #     theme_colors["powerline_fg"], theme_colors["powerline_bg"], barheight,
    # )
    # ud = Segment(
    #     [
    #         widget.TextBox(
    #             text=chr(984752),
    #             font=iconfont,
    #             foreground=self.fg,
    #             background=self.segment_colors[3],
    #         ),
    #         widget.Sep(linewidth=0, padding=6, background=self.segment_colors[3],),
    #         widget.CheckUpdates(
    #             distro="Arch",
    #             execute="alacritty",
    #             update_interval=1800,
    #             display_format="{updates} Updates",
    #             colour_no_updates=self.fg,
    #             colour_have_updates=theme_colors["panel_fg"],
    #             background=self.segment_colors[3],
    #         ),
    #     ]
    # )

    return [
        bar.Bar(top_bar_widgets,
                size=barheight,
                background=theme_colors["panel_bg"]),
        bar.Bar(
            bottom_bar_widgets,
            size=barheight,
            background=theme_colors["panel_bg"],
        ),
    ]
Esempio n. 9
0
            widget.TextBox(
                "bat :",
                foreground='#bf7ceb',
            ),
            widget.Battery(
                format='{percent:2.0%}',
                foreground='#bf7ceb',
            ),
            separator,
            widget.TextBox(
                "vol :",
                foreground='#8af331',
            ),
            widget.Volume(foreground='#8af331', ),
            separator,
            widget.CurrentLayout(foreground='#e184a8', ),
            separator,
            widget.Clock(
                format='%a %d, %H:%M',
                foreground='#74c8ef',
            ),
        ],
        24,
        background='#0b0c17',
    ), ),
]


### STARTUP HOOK ###
@hook.subscribe.startup_once
def start_once():
Esempio n. 10
0
def init_widgets_list():
    widgets_list = [

        widget.Sep(
            linewidth=0,
            padding=6,
            foreground=colors[2],
            background=colors[0]
        ),
        widget.Image(
            filename="/home/art/.config/qtile/icons/pacman1.png",
            scale="False",
            mouse_callbacks={'Button1': lambda: qtile.cmd_spawn(myTerm)},
            background=colors[0]
        ),

        widget.Image(
            filename="/home/art/.config/qtile/icons/FantasmaAmarillo.png",
            scale="False",
            mouse_callbacks={'Button1': lambda: qtile.cmd_spawn(myTerm)},
            background=colors[0]
        ),
        widget.Image(
            filename="/home/art/.config/qtile/icons/FantasmaRojo.png",
            scale="False",
            mouse_callbacks={'Button1': lambda: qtile.cmd_spawn(myTerm)},
            background=colors[0]
        ),
        widget.Image(
            filename="/home/art/.config/qtile/icons/FantasmaAzul.png",
            scale="False",
            mouse_callbacks={'Button1': lambda: qtile.cmd_spawn(myTerm)},
            background=colors[0]
        ),


        widget.Sep(
            linewidth=0,
            padding=10,
            foreground=colors[2],
            background=colors[0]
        ),
        widget.GroupBox(
            font="Nerd",
            fontsize=15,
            margin_y=3,
            margin_x=14,
            padding_y=5,
            padding_x=5,
            borderwidth=1,
            active=colors[2],
            inactive=colors[2],
            rounded=False,
            highlight_color=colors[0],
            highlight_method="text",
            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="Nerd Black",
            padding=10,
            foreground=colors[3],
            background=colors[1]
        ),


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

        widget.WindowName(
            font = "Nerd Black",
            foreground=colors[2],
            background=colors[0],
            padding=0
        ),

        widget.Sep(
            linewidth=0,
            padding=30,
            foreground=colors[0],
            background=colors[0]
        ),

        widget.TextBox(
            text=' | ',
            background=colors[0],
            foreground=colors[9],
            padding=0,
            fontsize=15
        ),


        widget.TextBox(
            text=" 🖬",
            foreground=colors[2],
            background=colors[0],
            padding=0,
            fontsize=14
        ),
        widget.Memory(
            foreground=colors[2],
            background=colors[0],
            font='Nerd Black',
            mouse_callbacks={
                'Button1': lambda: qtile.cmd_spawn(myTerm + ' -e bashtop')},
            padding=3
        ),


        widget.TextBox(
            text=' | ',
            background=colors[0],
            foreground=colors[9],
            padding=0,
            fontsize=15
        ),

        # Icono de bateria
        widget.TextBox(
            text="",
            padding=0,
            foreground=colors[2],
            background=colors[0],
            font='Nerd Black',
            fontsize=12
        ),

        widget.Battery(
            foreground=colors[2],
            background=colors[0],
            font='Nerd Black',
            battery=0,
            low_porcentage=0.1,
            low_foreground="#00b02f",
            format=" {percent:2.0%}",
            empty_char="x"
        ),


        widget.TextBox(
            text=' | ',
            background=colors[0],
            foreground=colors[9],
            padding=0,
            fontsize=15
        ),

        widget.TextBox(
            text="",
            foreground=colors[2],
            background=colors[0],
            padding=0
        ),

        widget.Volume(
            foreground=colors[2],
            background=colors[0],
            font='Nerd Black',
            padding=5,
            volume_down_command="amixer set Master 5%-",
            volume_up_command="amixer set Master 10%+",
            update_interval=0.2,
            step=2
        ),

        widget.TextBox(
            text=' | ',
            background=colors[0],
            foreground=colors[9],
            padding=0,
            fontsize=15
        ),
        widget.CurrentLayoutIcon(
            custom_icon_paths=[os.path.expanduser(
                "/home/art/.config/qtile/icons/")],
            foreground=colors[0],
            background=colors[0],
            padding=0,
            scale=0.7
        ),
        widget.CurrentLayout(
            foreground=colors[2],
            background=colors[0],
            font='Nerd Black',

            padding=5
        ),
        widget.TextBox(
            text=' | ',
            background=colors[0],
            foreground=colors[9],
            padding=0,
            fontsize=15
        ),
        widget.Clock(
            foreground=colors[2],
            background=colors[0],
            font='Nerd Black',
            format=" %A, %B %d - %H:%M ",
            mouse_callbacks={
                'Button1': lambda: qtile.cmd_spawn(myTerm + ' -e tty-clock')},
        ),

        widget.TextBox(
            text=' | ',
            background=colors[0],
            foreground=colors[9],
            padding=0,
            fontsize=15,
        ),


        widget.Systray(
            background=colors[0],
            padding=5,
            icon_size=25
        ),
        widget.Sep(
            linewidth=0,
            padding=10,
            foreground=colors[2],
            background=colors[0]
        )

    ]
    return widgets_list
Esempio n. 11
0
def init_widgets_list():
    widgets_list = [
        widget.GroupBox(font="Ubuntu Bold",
                        fontsize=9,
                        margin_y=1,
                        margin_x=0,
                        padding_y=5,
                        padding_x=5,
                        borderwidth=3,
                        active=colors[2],
                        inactive=colors[2],
                        rounded=False,
                        highlight_color=colors[1],
                        highlight_method="line",
                        this_current_screen_border=colors[3],
                        this_screen_border=colors[4],
                        other_current_screen_border=colors[0],
                        other_screen_border=colors[0],
                        foreground=colors[2],
                        background=colors[1],
                        ),
        widget.Prompt(
            prompt=prompt,
            font="Ubuntu Mono",
            padding=10,
            foreground=colors[2],
            background=colors[1]
        ),
        widget.WindowName(
            foreground=colors[3],
            background=colors[1],
            markup=True,
            # padding=1
        ),
        widget.TextBox(
            text=" 🌡",
            padding=2,
            foreground=colors[2],
            background=colors[1],
            fontsize=11
        ),
        widget.ThermalSensor(
            foreground=colors[2],
            background=colors[1],
            padding=5
        ),
        widget.TextBox(
            text="",
            padding=2,
            foreground=colors[2],
            background=colors[1],
            fontsize=14
        ),
        widget.Pacman(
            execute="alacritty -e paru -Syyu",
            update_interval=1800,
            foreground=colors[2],
            background=colors[1]
        ),
        widget.TextBox(
            text="Updates",
            padding=5,
            foreground=colors[2],
            background=colors[1]
        ),
        widget.TextBox(
            text=" 🖬",
            foreground=colors[2],
            background=colors[1],
            padding=0,
            fontsize=14
        ),
        widget.Memory(
            foreground=colors[2],
            background=colors[1],
            padding=5
        ),
        widget.TextBox(
            text="",
            foreground=colors[2],
            background=colors[1],
            padding=0,
            fontsize=14
        ),
        widget.Wlan(
            foreground=colors[2],
            background=colors[1],
            padding=5
        ),
        widget.TextBox(
            text="🔉",
            foreground=colors[2],
            background=colors[1],
            padding=0
        ),
        widget.Volume(
            foreground=colors[2],
            background=colors[1],
            padding=5,
            emoji=False,
        ),
        widget.CurrentLayout(
            foreground=colors[2],
            background=colors[1],
            padding=5
        ),
        widget.TextBox(
            text=" ",
            foreground=colors[2],
            background=colors[1],
            padding=0
        ),
        widget.Clock(
            foreground=colors[2],
            background=colors[1],
            format="%Y-%M-%d %H:%M"
        ),
        widget.Systray(
            background=colors[1],
            icon_size=18,
            padding=1
        ),
    ]
    return widgets_list
Esempio n. 12
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
Esempio n. 13
0
                },
                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"],
     padding=0,
 ),
 widget.Clock(foreground=["#f1ffff", "#f1ffff"],
              background=["#a151d3", "#a151d3"],
Esempio n. 14
0
def init_widgets_list():
    prompt = "{0}@{1}: ".format(os.environ["USER"], socket.gethostname())
    widgets_list = [
        widget.TextBox(text='',
                       background=colors[10],
                       foreground=colors[0],
                       padding=0,
                       fontsize=37),
        widget.GroupBox(font="UbuntuMono Nerd Font",
                        disable_drag=True,
                        fontsize=14,
                        margin_y=0,
                        margin_x=0,
                        padding_y=5,
                        padding_x=5,
                        borderwidth=1,
                        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[10]),
        widget.TextBox(text='',
                       background=colors[0],
                       foreground=colors[10],
                       padding=0,
                       fontsize=37),
        widget.Prompt(prompt=prompt,
                      font="Iosevka",
                      padding=5,
                      foreground=colors[3],
                      background=colors[1]),
        widget.Sep(linewidth=0,
                   padding=10,
                   foreground=colors[2],
                   background=colors[0]),
        widget.WindowName(font="Iosevka",
                          fontsize=11,
                          foreground=colors[5],
                          background=colors[0],
                          padding=5),
        widget.TextBox(text=' ',
                       background=colors[0],
                       foreground=colors[5],
                       padding=0,
                       fontsize=37),
        widget.TextBox(text='',
                       background=colors[10],
                       foreground=colors[0],
                       padding=0,
                       fontsize=37),
        widget.Systray(background=colors[10], padding=0, icon_size=13),
        widget.TextBox(text='',
                       background=colors[5],
                       foreground=colors[10],
                       padding=0,
                       fontsize=40),
        widget.TextBox(text=" ",
                       foreground=colors[2],
                       background=colors[5],
                       padding=0,
                       fontsize=13),
        widget.Net(interface="enp2s0",
                   update_interval=1,
                   foreground=colors[2],
                   background=colors[5],
                   padding=5),
        widget.TextBox(text='',
                       background=colors[7],
                       foreground=colors[5],
                       padding=0,
                       fontsize=40),
        #               widget.TextBox(
        #                        font="Google Sans Bold",
        #                        text="﩯 ",
        #                        padding = 0,
        #                        foreground=colors[2],
        #                        background=colors[5],
        #                        fontsize=20
        #                        ),
        widget.CurrentLayout(foreground=colors[2],
                             background=colors[7],
                             padding=5,
                             fontsize=18),
        widget.TextBox(text='',
                       background=colors[7],
                       foreground=colors[5],
                       padding=0,
                       fontsize=40),
        widget.TextBox(font="UbuntuMono Nerd Font",
                       text="  ",
                       padding=0,
                       foreground=colors[2],
                       background=colors[5],
                       fontsize=14),
        widget.Volume(font="Google Sans",
                      background=colors[5],
                      foreground=colors[2],
                      fontsize=12),
        widget.TextBox(text=' ',
                       background=colors[5],
                       foreground=colors[7],
                       padding=0,
                       fontsize=14),
        widget.TextBox(text='',
                       background=colors[5],
                       foreground=colors[7],
                       padding=0,
                       fontsize=40),
        widget.TextBox(font="UbuntuMono Nerd Font",
                       text=" ﱘ ",
                       padding=0,
                       foreground=colors[2],
                       background=colors[7],
                       fontsize=14),
        widget.Cmus(font="Google Sans",
                    fontsize=12,
                    max_chars=30,
                    update_interval=1,
                    foreground=colors[2],
                    noplay_color=colors[2],
                    play_color='dcdde1',
                    background=colors[7]),
        widget.TextBox(text=' ',
                       background=colors[7],
                       foreground=colors[5],
                       padding=0,
                       fontsize=14),
        widget.TextBox(text='',
                       background=colors[7],
                       foreground=colors[5],
                       padding=0,
                       fontsize=40),
        widget.TextBox(font="UbuntuMono Nerd Font",
                       text="  ",
                       foreground=colors[2],
                       background=colors[5],
                       padding=0,
                       fontsize=14),
        widget.Clock(foreground=colors[2],
                     background=colors[5],
                     format="%d/%m/%y • %H:%M"),
        widget.TextBox(text='   ',
                       background=colors[5],
                       foreground=colors[5],
                       padding=0,
                       fontsize=14),
        widget.Sep(linewidth=0,
                   padding=5,
                   foreground=colors[0],
                   background=colors[5]),
    ]
    return widgets_list
Esempio n. 15
0
def init_widgets_list():
    widgets_list = [
        #             widget.Sep(
        #                      linewidth = 0,
        #                      padding = 6,
        #                      foreground = colors[2],
        #                      background = colors[0]
        #                      ),
        #             widget.Image(
        #                      filename = "~/.config/qtile/icons/python.png",
        #                      mouse_callbacks = {'Button1': lambda qtile: qtile.cmd_spawn('dmenu_run')}
        #                      ),
        widget.GroupBox(font="Ubuntu Bold",
                        fontsize=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=" 🌡",
                       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=" ⟳",
                       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=" 🖬",
                       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.Net(
        #                      interface = "enp6s0",
        #                      format = '{down} ↓↑ {up}',
        #                      foreground = colors[2],
        #                      background = colors[4],
        #                      padding = 5
        #                      ),
        widget.TextBox(text=" Vol:",
                       foreground=colors[2],
                       background=colors[5],
                       padding=0),
        #             widget.Volume(
        #                      foreground = colors[2],
        #                      background = colors[5],
        #                      padding = 5
        #                      ),
        #             widget.CurrentLayoutIcon(
        #                      custom_icon_paths = [os.path.expanduser("~/.config/qtile/icons")],
        #                      foreground = colors[0],
        #                      background = colors[4],
        #                      padding = 0,
        #                      scale = 0.7
        #                      ),
        widget.CurrentLayout(foreground=colors[2],
                             background=colors[4],
                             padding=5),
        widget.Clock(foreground=colors[2],
                     background=colors[5],
                     format="%A, %B %d  [ %H:%M ]"),
        #             widget.Sep(
        #                      linewidth = 0,
        #                      padding = 10,
        #                      foreground = colors[0],
        #                      background = colors[5]
        #                      ),
        widget.Systray(background=colors[0], padding=5),
    ]
    return widgets_list
Esempio n. 16
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[0]),
        widget.GroupBox(font="Ubuntu Bold",
                        fontsize=22,
                        margin_y=3,
                        margin_x=0,
                        padding_y=5,
                        padding_x=5,
                        borderwidth=1,
                        active=colors[2],
                        inactive=colors[2],
                        rounded=False,
                        highlight_method="block",
                        this_current_screen_border=colors[1],
                        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=10,
                   foreground=colors[2],
                   background=colors[0]),
        widget.WindowName(font="Ubuntu",
                          fontsize=11,
                          foreground=colors[5],
                          background=colors[0],
                          padding=5),
        widget.TextBox(font="Ubuntu Bold",
                       text="  ",
                       padding=5,
                       foreground=colors[2],
                       background=colors[0],
                       fontsize=16),
        widget.CurrentLayout(foreground=colors[3],
                             background=colors[0],
                             padding=5),
        widget.TextBox(font="Ubuntu Bold",
                       text="  |",
                       padding=5,
                       foreground=colors[9],
                       background=colors[0],
                       fontsize=12),
        widget.TextBox(font="Ubuntu Bold",
                       text="  ",
                       foreground=colors[2],
                       background=colors[0],
                       padding=0,
                       fontsize=16),
        widget.GenPollText(foreground=colors[6],
                           background=colors[0],
                           fmt=' {} ',
                           update_interval=60,
                           func=lambda: subprocess.check_output(
                               "/home/geir/.config/qtile/ip.sh").decode(
                                   "utf-8").replace('\n', '')),
        widget.TextBox(font="Ubuntu Bold",
                       text="  |",
                       padding=5,
                       foreground=colors[9],
                       background=colors[0],
                       fontsize=12),
        widget.TextBox(font="Ubuntu Bold",
                       text=" ",
                       padding=5,
                       foreground=colors[2],
                       background=colors[0],
                       fontsize=16),
        widget.GenPollText(foreground=colors[7],
                           background=colors[0],
                           fmt=' {} ',
                           update_interval=3600,
                           func=lambda: subprocess.check_output(
                               "/home/geir/.config/qtile/pac-aur.sh").decode(
                                   "utf-8").replace('\n', '')),
        widget.TextBox(font="Ubuntu Bold",
                       text="   |",
                       padding=5,
                       foreground=colors[9],
                       background=colors[0],
                       fontsize=12),
        widget.TextBox(font="Ubuntu Bold",
                       text="  ",
                       padding=5,
                       foreground=colors[2],
                       background=colors[0],
                       fontsize=16),
        widget.GenPollText(update_interval=60,
                           fmt=' {} ',
                           func=lambda: subprocess.check_output(
                               "/home/geir/.config/qtile/disk.sh").decode(
                                   "utf-8").replace('\n', ''),
                           foreground=colors[5],
                           background=colors[0]),
        widget.TextBox(font="Ubuntu Bold",
                       text="  |",
                       padding=5,
                       foreground=colors[9],
                       background=colors[0],
                       fontsize=12),
        widget.TextBox(font="Ubuntu Bold",
                       text="  ",
                       padding=5,
                       foreground=colors[2],
                       background=colors[0],
                       fontsize=16),
        widget.GenPollText(update_interval=10,
                           fmt=' {} ',
                           func=lambda: subprocess.check_output(
                               "/home/geir/.config/qtile/mem.sh").decode(
                                   "utf-8").replace('\n', ''),
                           foreground=colors[8],
                           background=colors[0]),
        widget.TextBox(font="Ubuntu Bold",
                       text="   |",
                       padding=5,
                       foreground=colors[9],
                       background=colors[0],
                       fontsize=12),
        widget.TextBox(font="Ubuntu Bold",
                       text="   ",
                       foreground=colors[2],
                       background=colors[0],
                       padding=5,
                       fontsize=16),
        widget.Clock(foreground=colors[2],
                     background=colors[0],
                     format="%A, %d %B - %H:%M"),
        widget.Sep(linewidth=0,
                   padding=5,
                   foreground=colors[2],
                   background=colors[0]),
    ]
    return widgets_list
Esempio n. 17
0
                    foreground=colors[7],
                    padding=0,
                    fontsize=37),
     # widget.Systray(),
     widget.TextBox(
         background=colors[7], foreground=colors[8], text=" ⟳"),
     widget.Pacman(background=colors[7],
                   foreground=colors[8],
                   execute="alacritty -e sudo pacman -Syyu",
                   update_interval=20000),
     widget.TextBox(text='',
                    background=colors[7],
                    foreground=colors[8],
                    padding=0,
                    fontsize=37),
     widget.CurrentLayout(
         background=colors[8], foreground=colors[2], padding=5),
     #widget.Clock(format='%Y-%m-%d %a %I:%M %p',
     #        background = colors[8],
     #        foreground = colors[2]
     #        ),
     # widget.QuickExit(),
     widget.TextBox(text='',
                    background=colors[8],
                    foreground=colors[7],
                    padding=0,
                    fontsize=37),
     widget.Clock(format='%Y-%m-%d %a %I:%M %p',
                  background=colors[7],
                  foreground=colors[8]),
     widget.Systray(background=colors[7], foreground=colors[8])
 ],
Esempio n. 18
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(my_term)},
        ),
        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.TextBox(
            text="|",
            font="Ubuntu Mono",
            background=colors[0],
            foreground="474747",
            padding=2,
            fontsize=14,
        ),
        widget.CurrentLayoutIcon(
            custom_icon_paths=[os.path.expanduser("~/.config/qtile/icons")],
            foreground=colors[2],
            background=colors[0],
            padding=0,
            scale=0.7,
        ),
        widget.CurrentLayout(foreground=colors[2],
                             background=colors[0],
                             padding=5),
        widget.TextBox(
            text="|",
            font="Ubuntu Mono",
            background=colors[0],
            foreground="474747",
            padding=2,
            fontsize=14,
        ),
        widget.WindowName(foreground=colors[6],
                          background=colors[0],
                          padding=0),
        widget.Systray(background=colors[0], padding=5),  # 9th element
        widget.Sep(linewidth=0,
                   padding=6,
                   foreground=colors[0],
                   background=colors[0]),
        # widget.TextBox(
        #     text="",
        #     font="Ubuntu Mono",
        #     background=colors[0],
        #     foreground=colors[3],
        #     padding=0,
        #     fontsize=37,
        # ),
        # widget.Net(
        #     interface="eth0",
        #     format="Net: {down} ↓↑ {up}",
        #     foreground=colors[1],
        #     background=colors[3],
        #     padding=5,
        # ),
        widget.TextBox(
            text="",
            font="Ubuntu Mono",
            background=colors[0],
            foreground=colors[4],
            padding=0,
            fontsize=37,
        ),
        widget.ThermalSensor(
            foreground=colors[1],
            background=colors[4],
            threshold=90,
            fmt="Temp: {}",
            padding=5,
        ),
        widget.TextBox(
            text="",
            font="Ubuntu Mono",
            background=colors[4],
            foreground=colors[5],
            padding=0,
            fontsize=37,
        ),
        widget.Memory(
            foreground=colors[1],
            background=colors[5],
            mouse_callbacks={
                "5utton1": lambda: qtile.cmd_spawn(my_term + " -e htop")
            },
            fmt="Mem: {}",
            padding=5,
        ),
        widget.TextBox(
            text="",
            font="Ubuntu Mono",
            background=colors[5],
            foreground=colors[6],
            padding=0,
            fontsize=37,
        ),
        widget.Volume(foreground=colors[1],
                      background=colors[6],
                      fmt="Vol: {}",
                      padding=5),
        widget.TextBox(
            text="",
            font="Ubuntu Mono",
            background=colors[6],
            foreground=colors[7],
            padding=0,
            fontsize=37,
        ),
        # widget.KeyboardLayout(
        #     foreground=colors[1], background=colors[8], fmt="Keyboard: {}", padding=5
        # ),
        # widget.TextBox(
        #     text="",
        #     font="Ubuntu Mono",
        #     background=colors[8],
        #     foreground=colors[9],
        #     padding=0,
        #     fontsize=37,
        # ),
        widget.Clock(foreground=colors[1],
                     background=colors[7],
                     format="%A, %B %d - %H:%M "),
    ]
    return widgets_list
Esempio n. 19
0
    widget.WindowName(**base(fg='focus'), fontsize=14, padding=5),
    separator(),
]

laptop_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/%Y - %H:%M '),
    powerline('dark', 'color1'),
    widget.Systray(background=colors['dark'], padding=5),
]

monitor_widgets = [
    *workspaces(),
    separator(),
    powerline('color1', 'dark'),
    widget.CurrentLayoutIcon(**base(bg='color1'), scale=0.65),
    widget.CurrentLayout(**base(bg='color1'), padding=5),
]
Esempio n. 20
0
widget_defaults = dict(
    font='sans',
    fontsize=12,
    padding=3,
)
extension_defaults = widget_defaults.copy()

screens = [
    Screen(top=bar.Bar(
        [
            widget.GroupBox(background=colors[0], padding=1.3, fontsize=15),
            widget.WindowName(background=colors[0], padding=6),
            widget.TextBox(
                padding=6, text="", background=colors[1], fontsize=18),
            widget.CurrentLayout(background=colors[1], fontsize=15, padding=6),
            widget.TextBox(
                background=colors[2], text="", padding=6, fontsize=18),
            widget.Memory(background=colors[2],
                          padding=6,
                          fontsize=15,
                          update_interval=5),
            widget.TextBox(
                padding=6, text="", fontsize=18, background=colors[3]),
            widget.Volume(fontsize=15, padding=6, background=colors[3]),
            widget.TextBox(background=colors[3], text="", fontsize=18),
            widget.ThermalSensor(background=colors[3], fontsize=15),
            widget.TextBox(
                text="", background=colors[4], fontsize=18, padding=6),
            widget.Battery(fontsize=15, background=colors[4]),
            widget.TextBox(
Esempio n. 21
0
def init_widgets_list():
    prompt = "{0}@{1}: ".format(os.environ["USER"], socket.gethostname())
    widgets_list = [
        widget.GroupBox(font="FontAwesome",
                        fontsize=12,
                        margin_y=-1,
                        margin_x=0,
                        padding_y=6,
                        padding_x=5,
                        borderwidth=0,
                        disable_drag=True,
                        active=colors[9],
                        inactive=colors[5],
                        rounded=False,
                        highlight_method="text",
                        this_current_screen_border=colors[8],
                        foreground=colors[2],
                        background=colors[1]),
        widget.Sep(linewidth=1,
                   padding=10,
                   foreground=colors[2],
                   background=colors[1]),
        widget.CurrentLayout(font="Noto Sans Bold",
                             foreground=colors[5],
                             background=colors[1]),
        widget.Sep(linewidth=1,
                   padding=10,
                   foreground=colors[2],
                   background=colors[1]),
        # widget.WindowName(font="Noto Sans",
        # fontsize = 12,
        # foreground = colors[5],
        # background = colors[1],
        # ),
        # widget.Net(
        # font="Noto Sans",
        # fontsize=12,
        # interface="enp0s25",
        # foreground=colors[2],
        # background=colors[1],
        # padding = 0,
        # ),
        # widget.Sep(
        #          linewidth = 1,
        #          padding = 10,
        #          foreground = colors[2],
        #          background = colors[1]
        #          ),
        # widget.NetGraph(
        #          font="Noto Sans",
        #          fontsize=12,
        #          bandwidth="down",
        #          interface="auto",
        #          fill_color = colors[8],
        #          foreground=colors[2],
        #          background=colors[1],
        #          graph_color = colors[8],
        #          border_color = colors[2],
        #          padding = 0,
        #          border_width = 1,
        #          line_width = 1,
        #          ),
        # widget.Sep(
        #          linewidth = 1,
        #          padding = 10,
        #          foreground = colors[2],
        #          background = colors[1]
        #          ),
        # # do not activate in Virtualbox - will break qtile
        # widget.ThermalSensor(
        #          foreground = colors[5],
        #          foreground_alert = colors[6],
        #          background = colors[1],
        #          metric = True,
        #          padding = 3,
        #          threshold = 80
        #          ),
        widget.TaskList(
            font="Noto Sans Bold",
            borderwidth=1,
            margin=3,
            padding=4,
        ),
        widget.TextBox(font="FontAwesome",
                       text="  ",
                       foreground=colors[3],
                       background=colors[1],
                       padding=0,
                       fontsize=16),
        widget.DF(
            warn_space=10,
            measure='G',
            format=' {p}:{uf}{m}',
            update_interval=60,
            visible_on_warn=False,
            foreground=colors[5],
            partition="/",
            background=colors[1],
        ),
        widget.TextBox(font="FontAwesome",
                       text="  ",
                       foreground=colors[4],
                       background=colors[1],
                       padding=0,
                       fontsize=16),
        widget.DF(
            warn_space=10,
            visible_on_warn=False,
            measure='G',
            format=' {p}:{uf}{m}',
            update_interval=60,
            foreground=colors[5],
            partition="/f",
            background=colors[1],
        ),
        widget.Sep(linewidth=1,
                   padding=10,
                   foreground=colors[2],
                   background=colors[1]),
        widget.TextBox(font="FontAwesome",
                       text="  ",
                       foreground=colors[4],
                       background=colors[1],
                       padding=0,
                       fontsize=16),
        widget.Memory(
            font="Noto Sans",
            format='{MemPercent}%',
            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[6],
                       background=colors[1],
                       padding=0,
                       fontsize=16),
        widget.CPU(format='{load_percent}%'),
        # widget.CPUGraph(
        # border_color = colors[2],
        # #fill_color = colors[1],
        # #graph_color = colors[5],
        # 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.Backlight(
            backlight_name='intel_backlight',
            brightness_file='/sys/class/backlight/intel_backlight/brightness',
            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.Volume(),
        widget.Sep(linewidth=1,
                   padding=10,
                   foreground=colors[2],
                   background=colors[1]),
        # battery option 2  from Qtile
        widget.Battery(
            font="Noto Sans",
            update_interval=10,
            fontsize=12,
            foreground=colors[5],
            background=colors[1],
            format="{char} {percent:2.0%} {hour:d}:{min:02d}",
        ),
        # # battery option 1  ArcoLinux Horizontal icons do not forget to import
        # # arcobattery at the top
        arcobattery.BatteryIcon(padding=0,
                                scale=0.7,
                                y_poss=2,
                                theme_path=home +
                                "/.config/qtile/icons/battery_icons_horiz",
                                update_interval=5,
                                background=colors[1]),
        widget.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(foreground=colors[5],
                     background=colors[1],
                     fontsize=12,
                     format="%Y-%m-%d %H:%M"),
        widget.Sep(linewidth=0,
                   padding=10,
                   foreground=colors[2],
                   background=colors[1]),
        widget.Systray(background=colors[1], icon_size=20, padding=4),
    ]
    return widgets_list
Esempio n. 22
0
    # layout.Zoomy(),
]

widget_defaults = dict(
    font='Ubuntu',
    fontsize=12,
    padding=3,
    background="#3B4252"
)
extension_defaults = widget_defaults.copy()

screens = [
    Screen(
        top=bar.Bar(
            [
                widget.CurrentLayout(background="88C0D0", foreground="D8DEE9"),
                widget.GroupBox(

                    borderwitdh=0,
                    disable_drag=True,
                    rounded=False,
                    highlight_method='line',
                    highlight_color="4C566A",
                    this_screen_border="88C0D0",
                    this_current_screen_border="88C0D0",

                    ),
                widget.TextBox("|", foreground="81A1C1"),
                widget.Prompt(),
                widget.WindowName(),
                widget.Chord(
Esempio n. 23
0
def init_widgets_list():
    prompt = "{0}@{1}: ".format(os.environ["USER"], socket.gethostname())
    widgets_list = [
        widget.GroupBox(font="FontAwesome",
                        fontsize=16,
                        margin_y=-1,
                        margin_x=0,
                        padding_y=6,
                        padding_x=5,
                        borderwidth=0,
                        disable_drag=True,
                        active=colors[9],
                        inactive=colors[5],
                        rounded=False,
                        highlight_method="text",
                        this_current_screen_border=colors[8],
                        foreground=colors[2],
                        background=colors[1]),
        widget.Sep(linewidth=1,
                   padding=10,
                   foreground=colors[2],
                   background=colors[1]),
        widget.CurrentLayout(font="Noto Sans Bold",
                             foreground=colors[5],
                             background=colors[1]),
        widget.Sep(linewidth=1,
                   padding=10,
                   foreground=colors[2],
                   background=colors[1]),
        widget.WindowName(
            font="Noto Sans",
            fontsize=12,
            foreground=colors[5],
            background=colors[1],
        ),
        # widget.Net(
        #          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]
        #          ),
        # # 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.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(foreground=colors[5],
                     background=colors[1],
                     fontsize=12,
                     format="%Y-%m-%d %H:%M"),
        widget.Sep(linewidth=1,
                   padding=10,
                   foreground=colors[2],
                   background=colors[1]),
        widget.Systray(background=colors[1], icon_size=20, padding=4),
    ]
    return widgets_list
Esempio n. 24
0
     foreground=colors[2],
     fontsize=13),
 widget.TextBox(text='',
                background=colors[5],
                foreground=colors[4],
                padding=-8,
                fontsize=49),
 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,
                      fontsize=12),
 widget.TextBox(text='',
                background=colors[4],
                foreground=colors[5],
                padding=-8,
                fontsize=49),
 widget.GenPollText(
     update_interval=1,
     func=lambda: subprocess.check_output(
         os.path.expanduser("~/.local/bin/statusbar/clock")).decode(
             "utf-8"),
     background=colors[5],
     foreground=colors[2],
     fontsize=13),
 widget.Sep(linewidth=0,
Esempio n. 25
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/arch1.png",
                        scale = "False",
                        mouse_callbacks = {'Button1': lambda: qtile.cmd_spawn(myterm)},
                        padding = 10
                        ), 
             widget.Sep(
                       linewidth = 0,
                       padding = 6,
                       foreground = colors[2],
                       background = colors[0]
                       ),

             #widget.TextBox(
             #          text = '∖',
             #          background = colors[0],
             #          foreground = colors[5],
             #          padding = 4,
             #          fontsize = 30
             #          ),

             widget.GroupBox(
                       font = "Ubuntu Bold",
                       fontsize = 10,
                       margin_y = 3,
                       margin_x = 0,
                       padding_y = 5,
                       padding_x = 3,
                       borderwidth = 3,
                       active = colors[7],
                       inactive = colors[2],
                       rounded = True,
                       highlight_color = colors[1],
                       highlight_method = "block",
                       this_current_screen_border = "#545454",
                       this_screen_border = "#44475a",
                       other_current_screen_border = "#545454",
                       other_screen_border = "#44475a",
                       urgent_border = colors[0],
                       urgent_alert_method = "block",
                       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 = 20,
                       foreground = colors[2],
                       background = colors[0]
                       ),
             widget.TextBox(
                       text = '',
                       background = colors[0],
                       foreground = colors[5],
                       padding = -1,
                       fontsize = 45
                       ),
             widget.CurrentLayout(
                       foreground = colors[0],
                       background = colors[5],
                       padding = 8,
                       fontsize = 15
                       ), 
             widget.TextBox(
                       text = '',
                       background = colors[5],
                       foreground = colors[0],
                       padding = -1,
                       fontsize = 45
                       ),

             widget.Sep(
                       linewidth = 0,
                       padding = 20,
                       foreground = colors[2],
                       background = colors[0]
                       ),
             #widget.WindowName(
             #          foreground = colors[6],
             #          background = colors[0],
             #          padding = 0
             #           ),
             widget.TaskList(
                       foreground = colors[6],
                       background = colors[0],
                       padding = 0,
                       margin = 5,
                       border = colors[4],
                       borderwidth = 1,
                       urgent_alert_method = "text",
                       urgent_border = colors[5]
                       ),
             widget.Sep(
                       linewidth = 0,
                       padding = 6,
                       foreground = colors[0],
                       background = colors[0]
                       ),
             widget.TextBox(
                       text = '',
                       background = colors[0],
                       foreground = colors[5],
                       padding = -1,
                       fontsize = 45
                       ),
             widget.Clock(
                       foreground = colors[0],
                       background = colors[5],
                       format = "  %A, %B %d/%Y - %H:%M ",
                       mouse_callbacks = {'Button1': lambda: qtile.cmd_spawn("yad --calendar")},
                       ),
             widget.KeyboardLayout(
                       foreground = colors[0],
                       background = colors[5],
                       configured_keyboards = ['us', 'se'],
                        padding = 10,
                       ),
             widget.TextBox(
                       text = '',
                       background = colors[5],
                       foreground = colors[0],
                       padding = -1,
                       fontsize = 45
                       ),

             widget.Sep(
                       linewidth = 100,
                       padding = 140,
                       foreground = colors[0],
                       background = colors[0]
                       ),
             #widget.Net(
             #         interface = "enp4s0",
             #         format = '{down} ↓↑ {up}',
             #         foreground = colors[2],
             #         background = colors[4],
             #         padding = 5
             #    ),
             widget.Chord(
                       background = colors[0],
                       foreground = colors[5],
                       padding = 1
                       ), 

             widget.TextBox(
                       text = '',
                       background = colors[0],
                       foreground = colors[0],
                       padding = -1,
                       fontsize = 45
                       ),
             widget.TextBox(
                       text = '🖴',
                       background = colors[0],
                       foreground = colors[4],
                       padding = 1,
                       fontsize = 13
                       ),
               
             widget.DF(
                        partition = "/media/vm",
                        visible_on_warn = False,
                        foreground = colors[4],
                        background = colors[0]
                        ),
             widget.TextBox(
                       text = '',
                       background = colors[0],
                       foreground = colors[0],
                       padding = -1,
                       fontsize = 45
                       ),
             widget.TextBox(
                       text = '★',
                       background = colors[0],
                       foreground = colors[5],
                       padding = -1,
                       ),
             widget.CPU(
                         foreground = colors[5],
                         background = colors[0],
                         padding = 8,
                         format = '{load_percent}%'
                          ),
             widget.TextBox(
                       text='',
                       background = colors[0],
                       foreground = colors[0],
                       padding = -1,
                       fontsize = 45
                       ),
             # widget.TextBox(
             #          text = " ⟳",
             #          padding = 2,
             #          foreground = colors[0],
             #          background = colors[4],
             #          fontsize = 14
             #          ),
             # widget.CheckUpdates(
             #          update_interval = 1800,
             #          distro = "Arch_checkupdates",
             #          display_format = "{updates} Updates",
             #          color_have_updates = colors[0],
             #          color_no_updates = colors[0],
             #          foreground = colors[0],
             #          mouse_callbacks = {'Button1': lambda: qtile.cmd_spawn(myterm + ' -e sudo pacman -Syu')},
             #          background = colors[4]
             #          ),
             widget.TextBox(
                         text = " 🌡",
                         padding = 6,
                         foreground = colors[4],
                         background = colors[0],
                         fontsize = 11,
                         tag_sensor =  "temp1"
                            ),

             widget.ThermalSensor(
                        background = colors[0],
                        foreground = colors[4],
                        tag_sensor = "Core 0",
                        threshold = 75,
                          ),
             widget.TextBox(
                       text = '',
                       background = colors[0],
                       foreground = colors[0],
                       padding = -1,
                       fontsize = 45
                       ),
             widget.TextBox(
                       text = " 🖬",
                       foreground = colors[5],
                       background = colors[0],
                       padding = 0,
                       fontsize = 14
                       ),
             widget.Memory(
                       foreground = colors[5],
                       background = colors[0],
                       mouse_callbacks = {'Button1': lambda: qtile.cmd_spawn(sysmon)},
                       padding = 5
                       ),
             widget.TextBox(
                       text='',
                       background = colors[0],
                       foreground = colors[0],
                       padding = -1,
                       fontsize = 45
                       ),
             widget.TextBox(
                       text = "♥  karl-x99 ",
                       padding = 0,
                       foreground = colors[4],
                       background = colors[0],
                       fontsize = 12
                       ),
             #widget.BitcoinTicker(
             #        foreground = colors[2],
             #        background = colors[4],
             #        padding = 5
             #      ),
             widget.TextBox(
                       text = '',
                       background = colors[0],
                       foreground = colors[0],
                       padding = -1,
                       fontsize = 45
                       ),
             widget.TextBox(
                      text = "♫  Vol:",
                      foreground = colors[5],
                      background = colors[0],
                      padding = 0,
                      mouse_callbacks = {'Button1': lambda: qtile.cmd_spawn("pavucontrol")}
                       ),
              widget.Volume(
                       foreground = colors[5],
                       background = colors[0],
                       padding = 5
                       ),
              widget.TextBox(
                       text = '',
                       background = colors[0],
                       foreground = colors[0],
                       padding = -1,
                       fontsize = 45
                       ),
             # widget.CurrentLayoutIcon(
             #          custom_icon_paths = [os.path.expanduser("~/.config/qtile/icons")],
             #          foreground = colors[0],
             #          background = colors[0],
             #          padding = 0,
             #          scale = 0.7
             #          ),
            widget.TextBox(
                       text = '',
                       background = colors[0],
                       foreground = colors[0],
                       padding = -1,
                       fontsize = 45
                       ),
            
            widget.TextBox(
                       text = '',
                      background = colors[0],
                       foreground = colors[5],
                       padding = 4,
                       fontsize = 15
                       ),
            widget.Sep(
                       linewidth = 0,
                       padding = 6,
                       foreground = colors[2],
                       background = colors[0]
                       ),
            widget.Systray(
                      background = colors[0],
                      padding = 5
                      ),
             widget.Sep(
                       linewidth = 0,
                       padding = 6,
                       foreground = colors[2],
                       background = colors[0]
                       ),


            
              ]


    return widgets_list
Esempio n. 26
0
def init_widgets_list():
	prompt = "{0}@{1}: ".format(os.environ["USER"], socket.gethostname())
	widgets_list = [widget.Sep(linewidth=0, 
								padding=6, 
								foreground=colors[1], 
								background=colors[0]),
					widget.GroupBox(font='ShureTechMono Nerd Font',
								fontsize=12,
								margin_y=0,
								margin_x=0,
								padding_y=5,
								padding_x=10,
								borderwitdh=1,
								active=colors[1],
								inactive=colors[1],
								rounded=False,
								highlight_method='block',
								this_current_screen_border=colors[3],
								this_screen_border=colors[3],
								other_current_screen_border=colors[0],
								other_screen_border=colors[0],
								background=colors[0]),
					widget.Sep(linewidth=0,
								padding=6,
								foreground=colors[1],
								background=colors[0]),
					widget.Prompt(prompt=prompt,
								background=colors[4],
								foreground=colors[15]),
					widget.WindowName(foreground=colors[7]),
					widget.Systray(padding=9,
								icon_size=20),
					widget.Sep(linewidth=0,
								padding=20,
								foreground=colors[1],
								background=colors[0]),
				#	widget.CPUGraph(graph_color=colors[5],
				#					border_color=colors[1],
				#					fill_color=colors[5],
				#					border_width=1),
				#	widget.MemoryGraph(graph_color=colors[3],
				#					border_color=colors[1],
				#					fill_color=colors[3],
				#					border_width=1),
				#	widget.Sep(linewidth=0,
				#				padding=20,
				#				foreground=colors[1],
				#				background=colors[0]),
					widget.CurrentLayout(font="ShureTechMono Nerd Font"),
					widget.Sep(linewidth=0,
								padding=20,
								foreground=colors[1],
								background=colors[0]),
					widget.Image(filename=HOMEDIR+"/Pictures/icons/whitepng/wifi.png", 
							background=colors[0]),
					widget.Sep(linewidth=0,
								padding=5,
								foreground=colors[1],
								background=colors[0]),
					widget.Wlan(interface='wlp58s0',
							font="ShureTechMono Nerd Font",
							format="{quality}/70"),
					widget.Sep(linewidth=0,
								padding=20,
								foreground=colors[1],
								background=colors[0]),
					widget.Volume(theme_path=HOMEDIR+"/Pictures/icons/whitepng/volume",
								volume_app="amixer",
								mute_command="Master toggle",
								volume_down_command="set Master 1%-",
								volume_up_command="set Master 1%+"),
					widget.Sep(linewidth=0,
								padding=20,
								foreground=colors[1],
								background=colors[0]),
					widget.BatteryIcon(theme_path=HOMEDIR+'/Pictures/icons/battery/',
									background=colors[0]),
					widget.Sep(linewidth=0,
								padding=20,
								foreground=colors[1],
								background=colors[0]),
					widget.KeyboardLayout(configured_keyboards=['us', 'us alt-intl']),
					widget.Sep(linewidth=0,
								padding=20,
								foreground=colors[1],
								background=colors[0]),
					widget.Image(filename=HOMEDIR+"/Pictures/icons/whitepng/clock.png", 
								background=colors[0]),
					widget.Clock(format='%d-%b %a %H:%M'),
					widget.Sep(linewidth=0,
								padding=10,
								foreground=colors[1],
								background=colors[0]),]
	return widgets_list
Esempio n. 27
0
File: config.py Progetto: qblays/cfg
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.TaskList(font="Ubuntu",
                        fontsize=14,
                        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[5],
                       padding=0,
                       fontsize=37),
        widget.Net(interface="enp3s0",
                   format='{down} ↓↑ {up}',
                   foreground=colors[2],
                   background=colors[5],
                   padding=5),
        # widget.ThermalSensor(
        #          foreground = colors[2],
        #          background = colors[5],
        #          threshold = 90,
        #          padding = 5
        #          ),
        widget.TextBox(text='',
                       background=colors[5],
                       foreground=colors[4],
                       padding=0,
                       fontsize=37),
        widget.TextBox(text=" ⟳",
                       padding=2,
                       foreground=colors[2],
                       background=colors[4],
                       fontsize=14),
        widget.CheckUpdates(
            update_interval=1800,
            distro="Arch_checkupdates",
            display_format="{updates} Updates",
            foreground=colors[2],
            mouse_callbacks={
                'Button1':
                lambda: qtile.cmd_spawn(myTerm + ' -e sudo pacman -Syu')
            },
            background=colors[4]),
        widget.TextBox(text='',
                       background=colors[4],
                       foreground=colors[5],
                       padding=0,
                       fontsize=37),
        widget.TextBox(text=" 🖬",
                       foreground=colors[2],
                       background=colors[5],
                       padding=0,
                       fontsize=14),
        widget.Memory(foreground=colors[2],
                      background=colors[5],
                      mouse_callbacks={
                          'Button1':
                          lambda: qtile.cmd_spawn(myTerm + ' -e htop')
                      },
                      padding=5),
        widget.TextBox(text='',
                       background=colors[5],
                       foreground=colors[4],
                       padding=0,
                       fontsize=37),
        widget.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
Esempio n. 28
0
def init_widgets_list():
    widgets_list = [
        widget.Sep(linewidth=0,
                   padding=5,
                   foreground=colors[2],
                   background=colors[0]),
        widget.TextBox(text='◥',
                       background=colors[0],
                       foreground=colors[7],
                       padding=-2,
                       font="Fira Code",
                       fontsize=50),
        widget.Image(
            filename="~/.config/qtile/icons/arco.png",
            scale="True",
            mouse_callbacks={
                'Button1':
                lambda: qtile.cmd_spawn(
                    "rofi -show drun -font 'JetBrainsMono Nerd Font 12'")
            }),
        widget.TextBox(text='◣',
                       background=colors[0],
                       foreground=colors[7],
                       padding=-2,
                       font="Fira Code",
                       fontsize=50),
        widget.Sep(linewidth=0,
                   padding=1,
                   foreground=colors[2],
                   background=colors[0]),
        widget.GroupBox(font="JetBrainsMono Nerd Font",
                        fontsize=14,
                        margin_y=3,
                        margin_x=1,
                        padding_y=5,
                        padding_x=3,
                        borderwidth=3,
                        active=colors[6],
                        inactive=colors[2],
                        rounded=False,
                        highlight_color=colors[1],
                        highlight_method="block",
                        urgent_border=colors[8],
                        this_current_screen_border=colors[1],
                        this_screen_border=colors[4],
                        other_current_screen_border=colors[1],
                        other_screen_border=colors[4],
                        foreground=colors[2],
                        background=colors[0]),
        widget.Prompt(prompt=prompt,
                      font="JetBrainsMono Nerd Font",
                      padding=10,
                      foreground=colors[3],
                      background=colors[1]),
        widget.Sep(linewidth=0,
                   padding=10,
                   foreground=colors[2],
                   background=colors[0]),
        widget.WindowName(foreground=colors[2],
                          background=colors[0],
                          padding=0,
                          font="JetBrainsMono Nerd Font"),
        widget.Sep(linewidth=0,
                   padding=6,
                   foreground=colors[0],
                   background=colors[0]),
        widget.TextBox(text='◥',
                       background=colors[0],
                       foreground=colors[5],
                       padding=-2,
                       font="Fira Code",
                       fontsize=50),
        widget.Net(interface="wlp0s20f3",
                   format='📡 ↓{down} ↑ {up}',
                   foreground=colors[2],
                   background=colors[5],
                   mouse_callbacks={
                       'Button1': lambda: qtile.cmd_spawn(myTerm + ' -e nmtui')
                   },
                   padding=0),
        widget.TextBox(text='◢',
                       background=colors[5],
                       foreground=colors[4],
                       padding=-2,
                       font="Fira Code",
                       fontsize=50),
        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=-2,
                       font="Fira Code",
                       fontsize=50),
        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 bpytop')
                      },
                      padding=5),
        widget.TextBox(text='◢',
                       background=colors[5],
                       foreground=colors[4],
                       padding=-2,
                       font="Fira Code",
                       fontsize=50),
        widget.TextBox(text=" 🎧 Vol:",
                       foreground=colors[2],
                       background=colors[4],
                       padding=0),
        widget.Volume(foreground=colors[2], background=colors[4], padding=5),
        widget.TextBox(text='◢',
                       background=colors[4],
                       foreground=colors[5],
                       padding=-2,
                       font="Fira Code",
                       fontsize=50),
        widget.CurrentLayoutIcon(
            custom_icon_paths=[os.path.expanduser("~/.config/qtile/icons")],
            foreground=colors[0],
            background=colors[5],
            padding=0,
            scale=0.7),
        widget.CurrentLayout(foreground=colors[2],
                             background=colors[5],
                             padding=5),
        widget.TextBox(text='◢',
                       background=colors[5],
                       foreground=colors[4],
                       padding=-2,
                       font="Fira Code",
                       fontsize=50),
        widget.Clock(foreground=colors[2],
                     background=colors[4],
                     format="📅 %A, %B %d, %H:%M:%S ",
                     mouse_callbacks={
                         'Button1':
                         lambda: qtile.cmd_spawn(myTerm + ' -e calcurse')
                     }),
        widget.TextBox(text='◣',
                       background=colors[0],
                       foreground=colors[4],
                       padding=-2,
                       font="Fira Code",
                       fontsize=50),
        widget.Systray(background=colors[0], padding=0),
    ]
    return widgets_list
Esempio n. 29
0
     this_current_screen_border=COLORS.LIGHT_PRIMARY,
     # Active Screen Bar > Inactive Screen Group
     this_screen_border=COLORS.PRIMARY,
     urgent_alert_method="block",
     urgent_border=COLORS.URGENT,
     urgent_text=COLORS.LIGHT_FONT,
     rounds=False,
 ),
 mid_sep,
 # widget.CurrentLayoutIcon(
 # scale=0.6,
 # background=widget_background,
 # foreground=widget_foreground
 # ),
 widget.CurrentLayout(
     background=widget_background,
     foreground=widget_foreground
 ),
 mid_sep,
 # widget.CurrentScreen(
 # active_color=COLORS.PRIMARY,
 # active_text="",
 # inactive_color=COLORS.BACKGROUND,
 # inactive_text="ﴹ",
 # font='SpaceMono Nerd Font Mono',
 # background=widget_background,
 # fontsize=25
 # ),
 widget.WindowCount(
     background=widget_background,
     foreground=widget_foreground,
     font='SpaceMono Nerd Font'
Esempio n. 30
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