def pacman(bgcolor): return widget.Pacman( execute="alacritty -e bash -c '~/.scripts/upgrading.sh'", update_interval=10, foreground=colors["light"], background=colors[bgcolor], )
def pacman(bgcolor): return widget.Pacman( execute="alacritty", update_interval=1800, foreground=colors["light"], background=colors[bgcolor] )
def init_top_bar_widgets_list(): colors_list = colors.get_colors() """ Init top bar widgets. """ widgets = [] widgets.append(widget.WindowName( font="Ubuntu", fontsize=11, )) #widgets.append(widget.Notify(font="Ubuntu", fontsize=11,)) #widgets.append(widget.PulseVolume()) #widgets.append(widget.Volume()) #widgets.append(widget.ThermalSensor()) #widgets.append(widget.TextBox(font="Ubuntu", text="NET:", padding=5, fontsize=14)) #widgets.append(widget.NetGraph(graph_color=colors_list[6][1], border_width=1, frequency=.1, line_width=1, type='box')) #widgets.append(widget.NetGraph(interface="enp0s20f0u7")) #widgets.append(widget.NetGraph(interface="enp0s31f6")) #widgets.append(widget.NetGraph(interface="enp0s20f0u4")) #widgets.append(widget.TextBox(font="Ubuntu", text="CPU:", padding=5, fontsize=14)) #widgets.append(widget.CPUGraph(graph_color=colors_list[6][1], border_width=1, frequency=.1, line_width=1, type='box')) #widgets.append(widget.TextBox(font="Ubuntu", text="HDD:", padding=5, fontsize=14)) #widgets.append(widget.HDDBusyGraph(graph_color=colors_list[6][1], border_width=1, frequency=.1, line_width=1, type='box')) #widgets.append(widget.HDDGraph(path='/home', graph_color=colors_list[6][1], border_width=1, frequency=.1, line_width=1, type='box')) #widgets.append(widget.TextBox(font="Ubuntu", text="MEM:", padding=5, fontsize=14)) #widgets.append(widget.MemoryGraph(graph_color=colors_list[6][1], border_width=1, frequency=.1, line_width=1, type='box')) widgets.append(widget.Systray(padding=5)) widgets.append( widget.TextBox(font="Ubuntu Bold", text=" ⟳", padding=5, fontsize=14)) widgets.append(widget.Pacman( execute="urxvtc", update_interval=1800, )) widgets.append(widget.TextBox( text="Updates", padding=5, )) widgets.append( widget.TextBox(font="Ubuntu Bold", text=" 🕒", padding=5, fontsize=14)) widgets.append(widget.Clock(format="%A, %B %d - %H:%M")) return widgets
**current_layout_icon), widget.CurrentLayout(**base(bg='secondary'), **current_layout), widget.Image(filename=img['primary']), widget.TextBox(**base(bg='primary'), **text_box, text=' 🕒'), widget.Clock(**base(bg='primary'), **clock) ] laptop_widgets = [ *workspaces(), widget.Sep(**separator), widget.Systray(**systray), widget.Sep(**separator), widget.Image(filename=img['bg-to-secondary']), widget.TextBox(**base(bg='secondary'), **text_box, text=' ⟳'), widget.Pacman(**base(bg='secondary'), **pacman), widget.Image(filename=img['primary']), widget.TextBox(**base(bg='primary'), **text_box, text=' ↯'), widget.Net(**base(bg='primary'), **net), widget.Image(filename=img['secondary']), *powerline_base() ] monitor_widgets = [ *workspaces(), widget.Image(filename=img['bg-to-secondary']), *powerline_base() ] widget_defaults = {'font': 'Ubuntu Mono', 'fontsize': 13, 'padding': 2} extension_defaults = widget_defaults.copy() # SCREENS
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[7], inactive=colors[1], rounded=False, highlight_method="text", this_current_screen_border=colors[4], 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[7], 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[1], background=colors[2], padding=0), widget.CPUGraph( foreground=colors[7], background=colors[2], border_color=colors[7], #fill_color = colors[1], graph_color=colors[7], 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[1], background=colors[2], padding=0), widget.MemoryGraph(background=colors[2], border_color=colors[7], foreground=colors[7], graph_color=colors[7], 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[1], background=colors[2], padding=0), widget.NetGraph(background=colors[2], border_color=colors[7], foreground=colors[7], graph_color=colors[7], border_width=1, frequency=1, samples=100, line_width=3, type='linefill', fill_color=colors[7], interface='enp0s3', start_pos='bottom', width=60), widget.Sep(linewidth=1, padding=10, foreground=colors[1], background=colors[2]), widget.TextBox(font="FontAwesome", text=" ", foreground=colors[7], background=colors[2], padding=0, fontsize=16), widget.Clock( foreground=colors[7], 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
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 = 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[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.Image( scale = True, filename = "~/.config/qtile/bar06.png", background = colors[6] ), widget.Systray( background=colors[10], padding = 5 ), widget.Image( scale = True, filename = "~/.config/qtile/bar02-b.png", background = colors[6] ), widget.TextBox( text=" ↯", foreground=colors[0], background=colors[6], padding = 0, fontsize=14 ), widget.Net( interface = "enp3s0", foreground = colors[0], background = colors[6], padding = 5 ), widget.Image( scale = True, filename = "~/.config/qtile/bar03.png", background = colors[3] ), widget.TextBox( font="Ubuntu Bold", text=" ☵", padding = 5, foreground=colors[0], background=colors[3], fontsize=14 ), widget.CurrentLayout( foreground = colors[0], background = colors[3], padding = 5 ), widget.Image( scale = True, filename = "~/.config/qtile/bar04.png", background = colors[7] ), widget.TextBox( font="Ubuntu Bold", text=" ⟳", padding = 5, foreground=colors[0], background=colors[7], fontsize=14 ), widget.Pacman( execute = "urxvtc", update_interval = 1800, foreground = colors[0], background = colors[7] ), widget.TextBox( text="Updates", padding = 5, foreground=colors[0], background=colors[7] ), widget.Image( scale = True, filename = "~/.config/qtile/bar05.png", background = colors[8] ), widget.TextBox( font="Ubuntu Bold", text=" ♫", padding = 5, foreground=colors[0], background=colors[8], fontsize=14 ), widget.Cmus( max_chars = 40, update_interval = 0.5, foreground=colors[0], background = colors[8] ), widget.Image( scale = True, filename = "~/.config/qtile/bar07.png", background = colors[9] ), widget.TextBox( font="Ubuntu Bold", text=" 🕒", foreground=colors[2], background=colors[9], padding = 5, fontsize=14 ), widget.Clock( foreground = colors[2], background = colors[9], format="%A, %B %d - %H:%M" ), widget.Sep( linewidth = 0, padding = 5, foreground = colors[0], background = colors[9] ), ] return widgets_list
def init_widgets_list(): widgets_list = [ widget.GroupBox( font="Ubuntu Bold", fontsize=9, margin_y=1, margin_x=0, padding_y=5, padding_x=5, borderwidth=3, active=colors[2], inactive=colors[2], rounded=False, highlight_color=colors[1], highlight_method="line", this_current_screen_border=colors[3], this_screen_border=colors[4], other_current_screen_border=colors[0], other_screen_border=colors[0], foreground=colors[2], background=colors[1], ), widget.Prompt(prompt=prompt, font="Ubuntu Mono", padding=10, foreground=colors[2], background=colors[1]), widget.WindowName( foreground=colors[3], background=colors[1], markup=True, # padding=1 ), widget.TextBox(text=" 🌡", padding=2, foreground=colors[2], background=colors[1], fontsize=11), widget.ThermalSensor(foreground=colors[2], background=colors[1], padding=5), widget.TextBox(text="", padding=2, foreground=colors[2], background=colors[1], fontsize=14), widget.Pacman(execute="termite -e 'yay -Syyuu --topdown --cleanafter'", update_interval=1800, foreground=colors[2], background=colors[1]), widget.TextBox(text="Updates", padding=5, foreground=colors[2], background=colors[1]), widget.TextBox(text=" 🖬", foreground=colors[2], background=colors[1], padding=0, fontsize=14), widget.Memory(foreground=colors[2], background=colors[1], padding=5), widget.TextBox(text="", foreground=colors[2], background=colors[1], padding=0, fontsize=14), widget.Wlan(foreground=colors[2], background=colors[1], padding=5), widget.TextBox(text="🔉", foreground=colors[2], background=colors[1], padding=0), widget.Volume( foreground=colors[2], background=colors[1], padding=5, emoji=False, ), widget.CurrentLayout(foreground=colors[2], background=colors[1], padding=5), widget.TextBox(text=" ", foreground=colors[2], background=colors[1], padding=0), widget.Clock(foreground=colors[2], background=colors[1], format="%Y-%M-%d %H:%M"), widget.Systray(background=colors[1], icon_size=18, padding=1), ] return widgets_list
this_current_screen_border=colors['focus'], this_screen_border=colors['grey'], other_current_screen_border=colors['dark'], other_screen_border=colors['dark'], disable_drag=True), separator(), widget.WindowName(**base(fg='focus'), fontsize=18, padding=5), separator(), ] primary_widgets = [ *workspaces(), separator(), powerline('color4', 'dark'), icon(bg="color4", text=' '), # Icon: nf-fa-download widget.Pacman(**base(bg='color4'), update_interval=1800), powerline('color3', 'color4'), icon(bg="color3", text=' '), # Icon: nf-fa-feed widget.Net(**base(bg='color3'), interface='wlp2s0'), powerline('color2', 'color3'), widget.CurrentLayoutIcon(**base(bg='color2'), scale=0.65), widget.CurrentLayout(**base(bg='color2'), padding=5), powerline('color1', 'color2'), icon(bg="color1", fontsize=17, text=' '), # Icon: nf-mdi-calendar_clock widget.Clock(**base(bg='color1'), format='%d/%m/%Y - %H:%M '), powerline('dark', 'color1'), widget.Systray(background=colors['dark'], padding=5), ] secondary_widgets = [ *workspaces(),
screens = [ Screen( top=bar.Bar( [ widget.GroupBox(), widget.CurrentLayout(foreground='#AE95C7', ), widget.CurrentLayoutIcon(foreground='#C0791C', ), widget.Prompt(foreground='#EE3C55', ), widget.WindowName(foreground='#C7CCD1', ), widget.TextBox('📦', font='JoyPixels', foreground='#C795AE', update_interval=30), widget.Pacman( execute='urxvt -e /home/danekikr/.local/bin/update.sh', update_interval=2, ), # widget.Sep( # linewidth = 1, # padding = 10, # foreground = colors[2], # background = colors[1] # ), widget.Battery(battery=0, ), widget.BatteryIcon( battery=0, update_interval=5, ), widget.Battery(battery=1, ), widget.BatteryIcon( battery=1,
def init_widgets_list(): widgets_list = [ widget.Sep(linewidth=0, padding=6, foreground=colors[2], background=colors[0]), widget.GroupBox(font="Roboto", fontsize=11, margin_y=2, margin_x=0, padding_y=2, padding_x=5, borderwidth=2, active=colors[5], inactive=colors[4], rounded=True, hide_unused=True, highlight_color=colors[9], highlight_method="box", this_current_screen_border=colors[9], this_screen_border=colors[4], other_current_screen_border=colors[0], other_screen_border=colors[0], foreground=colors[2], background=colors[0]), widget.Sep(linewidth=0, padding=40, foreground=colors[2], background=colors[0]), widget.Prompt(prompt=prompt, foreground=colors[5]), widget.WindowName(foreground=colors[7], background=colors[0], padding=0, fontsize=10), widget.TextBox(text='◥', background=colors[0], foreground=colors[7], padding=0, fontsize=37), widget.CPU(format="CPU {load_percent}%", foreground=colors[0], background=colors[7]), widget.TextBox(text='◥', background=colors[7], foreground=colors[8], padding=0, fontsize=37), widget.TextBox(text="🌡", padding=2, foreground=colors[0], background=colors[8], fontsize=11), widget.ThermalSensor(foreground=colors[0], background=colors[8], padding=5), widget.TextBox(text='◥', background=colors[8], foreground=colors[9], padding=0, fontsize=37), widget.TextBox(text="⟳", padding=0, foreground=colors[0], background=colors[9], fontsize=11), widget.Pacman(execute="kitty sudo pacman -Syu", update_interval=180, foreground=colors[0], background=colors[9]), widget.TextBox(text='◥', background=colors[9], foreground=colors[5], padding=0, fontsize=37), widget.TextBox(text="🖬", foreground=colors[0], background=colors[5], padding=0, fontsize=12), widget.Memory(foreground=colors[0], background=colors[5], padding=5), widget.TextBox(text='◥', background=colors[5], foreground=colors[9], padding=0, fontsize=37), widget.TextBox(text="📢", foreground=colors[0], background=colors[9], padding=0), widget.Volume(foreground=colors[0], background=colors[9], padding=5), widget.TextBox(text='◥', background=colors[9], foreground=colors[8], padding=0, fontsize=37), widget.TextBox(text="🔋", foreground=colors[0], background=colors[8], padding=0), widget.Battery(foreground=colors[0], background=colors[8], low_percentage=0.2, padding=5, format="{char} {percent:2.0%}"), widget.TextBox(text='◥', background=colors[8], foreground=colors[7], padding=0, fontsize=37), widget.Clock(foreground=colors[0], background=colors[7], format="%B %d %H:%M "), widget.TextBox(text='◥', background=colors[7], foreground=colors[0], padding=0, fontsize=37), widget.Sep(linewidth=0, padding=10, foreground=colors[0], background=colors[0]), widget.Systray(background=colors[0], padding=5), widget.Sep(linewidth=0, padding=10, foreground=colors[0], background=colors[0]), ] return widgets_list
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
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
other_current_screen_border=colors[0], other_screen_border=colors[0], foreground=colors[2], background=colors[0]), widget.Prompt(background=colors[0]), widget.WindowName(background=colors[0], foreground=colors[6]), widget.TextBox(text='', background=colors[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],
] # Get the icons at https://www.nerdfonts.com/cheat-sheet (you need a Nerd Font) laptop_widgets = [ *workspaces(), widget.Systray(background=colors['dark'], padding=5), widget.Sep(**separator), widget.Image(filename=img['bar4']), widget.TextBox( **base(bg='color4'), **text_box(25), text=' ' # Icon: nf-fa-download ), widget.Pacman(**base(bg='color4'), execute='alacritty', update_interval=1800), widget.Image(filename=img['bar3']), widget.TextBox( **base(bg='color3'), **text_box(25), text=' ' # Icon: nf-fa-feed ), widget.Net(**base(bg='color3'), interface='wlp2s0'), widget.Image(filename=img['bar2']), widget.CurrentLayoutIcon(**base(bg='color2'), scale=0.65), widget.CurrentLayout(**base(bg='color2'), padding=5), widget.Image(filename=img['bar1']), widget.TextBox( **base(bg='color1'), **text_box(fontsize=27),
padding=0, fontsize=45, width=17), widget.TextBox( text=" ⟳", mouse_callbacks={ 'Button1': lambda qtile: qtile.cmd_spawn(myTerm + ' -e sudo pacman -Syu') }, padding=2, foreground=["#f1ffff", "#f1ffff"], background=["#DF5838", "#DF5838"], fontsize=14), widget.Pacman( update_interval=1800, foreground=["#f1ffff", "#f1ffff"], background=["#DF5838", "#DF5838"], ), widget.TextBox(text='', foreground=["#FFBF00", "#FFBF00"], background=["#DF5838", "#DF5838"], padding=0, fontsize=45, width=17), widget.TextBox(text=" 🖬", foreground=["#f1ffff", "#f1ffff"], background=["#FFBF00", "#FFBF00"], padding=5, fontsize=20), widget.Memory(foreground=["#f1ffff", "#f1ffff"], background=["#FFBF00", "#FFBF00"],
def init_widgets_list(): widgets_list = [ widget.Sep( linewidth = 0, padding = 6, foreground = colors[2], background = colors[0] ), widget.Image( filename = "~/.config/qtile/icons/python.png", mouse_callbacks = {'Button1': lambda qtile: qtile.cmd_spawn('dmenu_run')} ), widget.GroupBox( font = "Ubuntu Bold", fontsize = 9, margin_y = 3, margin_x = 0, padding_y = 5, padding_x = 3, borderwidth = 3, active = colors[2], inactive = colors[2], rounded = False, highlight_color = colors[1], highlight_method = "line", this_current_screen_border = colors[3], this_screen_border = colors [4], other_current_screen_border = colors[0], other_screen_border = colors[0], foreground = colors[2], background = colors[0] ), widget.Prompt( prompt = prompt, font = "Ubuntu Mono", padding = 10, foreground = colors[3], background = colors[1] ), widget.Sep( linewidth = 0, padding = 40, foreground = colors[2], background = colors[0] ), widget.WindowName( foreground = colors[6], background = colors[0], padding = 0 ), widget.TextBox( text = '', background = colors[0], foreground = colors[4], padding = 0, fontsize = 37 ), widget.TextBox( text = " ₿", padding = 0, foreground = colors[2], background = colors[4], fontsize = 12 ), widget.BitcoinTicker( foreground = colors[2], background = colors[4], padding = 5 ), widget.TextBox( text = '', background = colors[4], foreground = colors[5], padding = 0, fontsize = 37 ), widget.TextBox( text = " 🌡", padding = 2, foreground = colors[2], background = colors[5], fontsize = 11 ), widget.ThermalSensor( foreground = colors[2], background = colors[5], threshold = 90, padding = 5 ), widget.TextBox( text='', background = colors[5], foreground = colors[4], padding = 0, fontsize = 37 ), widget.TextBox( text = " ⟳", padding = 2, foreground = colors[2], background = colors[4], fontsize = 14 ), widget.Pacman( update_interval = 1800, foreground = colors[2], mouse_callbacks = {'Button1': lambda qtile: qtile.cmd_spawn(myTerm + ' -e sudo pacman -Syu')}, background = colors[4] ), widget.TextBox( text = "Updates", padding = 5, mouse_callbacks = {'Button1': lambda qtile: qtile.cmd_spawn(myTerm + ' -e sudo pacman -Syu')}, foreground = colors[2], background = colors[4] ), widget.TextBox( text = '', background = colors[4], foreground = colors[5], padding = 0, fontsize = 37 ), widget.TextBox( text = " 🖬", foreground = colors[2], background = colors[5], padding = 0, fontsize = 14 ), widget.Memory( foreground = colors[2], background = colors[5], mouse_callbacks = {'Button1': lambda qtile: qtile.cmd_spawn(myTerm + ' -e htop')}, padding = 5 ), widget.TextBox( text='', background = colors[5], foreground = colors[4], padding = 0, fontsize = 37 ), widget.Net( interface = "enp6s0", format = '{down} ↓↑ {up}', foreground = colors[2], background = colors[4], padding = 5 ), widget.TextBox( text = '', background = colors[4], foreground = colors[5], padding = 0, fontsize = 37 ), widget.TextBox( text = " Vol:", foreground = colors[2], background = colors[5], padding = 0 ), widget.Volume( foreground = colors[2], background = colors[5], padding = 5 ), widget.TextBox( text = '', background = colors[5], foreground = colors[4], padding = 0, fontsize = 37 ), widget.CurrentLayoutIcon( custom_icon_paths = [os.path.expanduser("~/.config/qtile/icons")], foreground = colors[0], background = colors[4], padding = 0, scale = 0.7 ), widget.CurrentLayout( foreground = colors[2], background = colors[4], padding = 5 ), widget.TextBox( text = '', background = colors[4], foreground = colors[5], padding = 0, fontsize = 37 ), widget.Clock( foreground = colors[2], background = colors[5], format = "%A, %B %d [ %H:%M ]" ), widget.Sep( linewidth = 0, padding = 10, foreground = colors[0], background = colors[5] ), widget.Systray( background = colors[0], padding = 5 ), ] return widgets_list
this_screen_border=colors['grey'], other_current_screen_border=colors['dark'], other_screen_border=colors['dark'], disable_drag=True), separator(), widget.WindowName(**base(fg='focus'), fontsize=14, padding=5), separator(), ] primary_widgets = [ *workspaces(), separator(), #powerline('color3', 'dark'), icon(fg="light", text=' '), # Icon: nf-fa-download widget.Pacman(**base(fg='light'), update_interval=1800), #powerline('color3', 'color4'), #icon(bg="color3", text=' '), # Icon: nf-fa-feed #widget.Net(**base(bg='color3'), interface='wlp2s0'), #powerline('color2', 'color3'), #powerline('color1', 'color2'), separator(), icon(fg="light", fontsize=17, text=' '), # Icon: nf-mdi-calendar_clock widget.Clock(**base(fg='light'), format='%d/%m/%Y - %H:%M '), #powerline('dark', 'color2'),
urgent_border=colorsc[1], block_highlight_text_color=colorsc[0], this_current_screen_border=colorsc[2] ), widget.Prompt( # [1] --> Prompt foreground=colorsc[14] ), widget.WindowName( # [2] --> Window name indicator 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"
low_foreground=colors[6], notify_below=0.15, fontsize=14, format='{char} {percent:2.0%}', update_interval=1, **base(colors[2], colors[5])), powerline(colors[4], colors[5]), icon(colors[2], colors[4], 14, " "), widget.Volume(padding=5, fontsize=14, **base(colors[2], colors[4])), powerline(colors[5], colors[4]), widget.TextBox(text=" ", padding=2, fontsize=14, **base(colors[2], colors[5])), widget.Pacman(update_interval=1800, font="Ubuntu Bold", **base(colors[2], colors[5])), widget.TextBox(text="Updates", padding=5, font="Ubuntu Bold", **base(colors[2], colors[5])), powerline(colors[4], colors[5]), widget.Clock(format=" %A, %B %d %H:%M ", font="Ubuntu Bold", **base(colors[2], colors[4])), powerline(colors[0], colors[4]), widget.Systray(padding=5, **base(colors[2], colors[0])), widget.Sep(linewidth=0, padding=6, **base(colors[2], colors[0])) ] secondary_widgets = [
foreground=colors[4], background=colors[0], padding=5), widget.Sep(linewidth=0, padding=6, foreground=colors[2], background=colors[0]), widget.TextBox(font="Ubuntu Bold", text="", padding=5, foreground=colors[2], background=colors[4], fontsize=14), widget.Pacman(font="Ubuntu Bold", execute="alacritty", update_interval=1800, foreground=colors[2], background=colors[4]), widget.TextBox(font="Ubuntu Bold", text="Updates", padding=5, foreground=colors[2], background=colors[4]), widget.TextBox(font="Ubuntu Bold", text="", foreground=colors[2], background=colors[5], padding=5, fontsize=14), widget.Memory(font="Ubuntu Bold", foreground=colors[2],
def init_widgets_list(): widgets_list = [ widget.Sep( linewidth = 0, padding = 6, foreground = colors[2], background = colors[0] ), widget.GroupBox(font="Overpass Semi-Bold", fontsize = 12, 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[0] ), widget.Prompt( prompt=prompt, padding=10, foreground = colors[3], background = colors[1] ), widget.Sep( linewidth = 0, padding = 40, foreground = colors[2], background = colors[0] ), widget.WindowName( foreground = colors[6], background = colors[0], padding = 0 ), widget.TextBox( text='', background = colors[0], foreground = colors[4], padding=0, fontsize=25 ), widget.TextBox( text=" ", padding = 2, foreground=colors[2], background=colors[4], fontsize=20 ), widget.Pomodoro( foreground=colors[2], background=colors[4], color_inactive=colors[2], padding = 5 ), widget.TextBox( text='', background = colors[4], foreground = colors[5], padding=0, fontsize=25 ), widget.TextBox( text=" 🌡", padding = 2, foreground=colors[2], background=colors[5], fontsize=11 ), widget.ThermalSensor( foreground=colors[2], background=colors[5], padding = 5 ), widget.TextBox( text='', background = colors[5], foreground = colors[4], padding=0, fontsize=25 ), widget.TextBox( text=" ⟳", padding = 2, foreground=colors[2], background=colors[4], fontsize=14 ), widget.Pacman( execute = "pamac-manager", 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=25 ), 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=25 ), widget.CPU( foreground = colors[2], background = colors[4], padding = 5 ), widget.TextBox( text='', background = colors[4], foreground = colors[5], padding=0, fontsize=25 ), widget.TextBox( text=" Vol:", foreground=colors[2], background=colors[5], padding = 0 ), widget.Volume( foreground = colors[2], background = colors[5], padding = 5 ), widget.TextBox( text='', background = colors[5], foreground = colors[4], padding=0, fontsize=25 ), 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=25 ), 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
def init_widgets_list(): widgets_list = [ widget.Sep(linewidth=0, padding=6, foreground=colors[6], background=colors[6]), widget.Image(filename="~/.config/qtile/icons/qtile.png", mouse_callbacks={ 'Button1': lambda qtile: qtile.cmd_spawn('dmenu_run') }, background=colors[6], foreground=colors[6]), widget.Sep(linewidth=0, padding=10, foreground=colors[2], background=colors[6]), widget.GroupBox(font="Font Awesome 5 Free", fontsize=14, 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[3], 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[6]), widget.Prompt(prompt=prompt, font="mononoki Nerd Font", padding=10, foreground=colors[3], background=colors[1]), widget.Sep(linewidth=0, padding=40, foreground=colors[2], background=colors[0]), widget.WindowName(foreground=colors[6], background=colors[0], font="JetBrains Mono Medium", padding=0), # widget.Clipboard( # background = colors[5], # foreground = colors[2], # max_width = 15 # ), widget.TextBox(text='', font='Font Awesome 5 Free', background=colors[0], foreground=colors[5], padding=0, fontsize=48), widget.TextBox(text=" ", font='Font Awesome 5 Free', padding=2, foreground=colors[2], background=colors[5], fontsize=15), widget.Memory(background=colors[5], foreground=colors[2], partition='/', format='{MemUsed}M / {MemTotal}M'), widget.TextBox(text='', background=colors[5], font='Font Awesome 5 Free', foreground=colors[4], padding=0, fontsize=48), widget.TextBox(text=" ", foreground=colors[2], background=colors[4], font='Font Awesome 5 Free', padding=0), widget.Volume(foreground=colors[2], background=colors[4], padding=5), widget.TextBox(text='', background=colors[4], font='Font Awesome 5 Free', foreground=colors[5], padding=0, fontsize=48), widget.TextBox(text=" ", font='Font Awesome 5 Free', padding=2, foreground=colors[2], background=colors[5], fontsize=10), widget.Pacman( update_interval=1800, foreground=colors[2], mouse_callbacks={ 'Button1': lambda qtile: qtile.cmd_spawn(myTerm + ' -e sudo pacman -Syu') }, background=colors[5]), widget.TextBox( text="Updates", padding=5, mouse_callbacks={ 'Button1': lambda qtile: qtile.cmd_spawn(myTerm + ' -e sudo pacman -Syu') }, foreground=colors[2], background=colors[5]), widget.TextBox(text='', background=colors[5], font='Font Awesome 5 Free', foreground=colors[4], padding=0, fontsize=48), 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], font='Font Awesome 5 Free', foreground=colors[5], padding=0, fontsize=48), widget.Clock(foreground=colors[2], background=colors[5], mouse_callbacks={ 'Button1': lambda qtile: qtile.cmd_spawn( '/home/va/.rofi/rofi-music-downloader') }, format="%A, %B %d [ %H:%M ]"), widget.Sep(linewidth=0, padding=10, foreground=colors[0], background=colors[5]), widget.Systray(background=colors[5], foreground=colors[2], padding=5), widget.Sep(linewidth=0, padding=10, foreground=colors[2], background=colors[5]), ] return widgets_list
# graph_color="FFCD00", # fill_color="FFCD00.3", # border_color="000000", #), widget.Spacer(length=10), widget.TextBox(font="font-awesome", text=(""), padding=0, foreground="FFCD00"), widget.ThermalSensor(), widget.TextBox(font="font-awesome", text=(""), padding=5, foreground="FFCD00"), widget.Pacman( execute="termite", update_interval=1800, ), widget.TextBox(font="font-awesome", text=(""), foreground="FFCD00"), widget.CurrentLayout(), widget.TextBox(font="font-awesome", text=(""), foreground="FFCD00"), widget.Volume(device='default'), widget.Spacer(length=5), widget.TextBox(font="font-awesome", text=(""), padding=0, foreground="FFCD00"), widget.Clock(format='%a %d %b - %H:%M'),
rounded=False, highlight_color=colors[3], highlight_method="line", this_current_screen_border=colors[2], this_screen_border=colors[1], other_current_screen_border=colors[1], other_screen_border=colors[1], foreground=colors[0], background=colors[1]), widget.Spacer(background=colors[1], ), widget.Pacman( update_interval=3600, foreground=colors[0], background=colors[1], mouse_callbacks={ 'Button1': lambda qtile: qtile.cmd_spawn(my_term + ' -e sudo pacman -Syu') }, unavailable=colors[1], ), widget.Sep(linewidth=0, padding=8, foreground=colors[0], background=colors[1]), widget.Battery( format='{char} {percent:2.0%}', foreground=colors[0], background=colors[1], mouse_callbacks={ 'Button1':
def init_widgets_list(): return [ # List of groups. widget.GroupBox( # -*- FONT Config -*- font=fonts['mono-font'], fontsize=12, # -*- MARGINS and BORDERS -*- margin_x=0, margin_y=3.5, padding_x=5, # Gap between the frame and the letters: x-axis. padding_y=5, # Gap between the frame and the letters: y-axis. borderwidth=3, rounded=False, # Rounded frame or not. # -*- HIGHLIGHTING -*- highlight_method='block', urgent_alert_method='block', # -*- COLORS -*- active=colors['foreground-hc'], inactive=colors['foreground-hc'], this_current_screen_border=colors[ 'pink'], # Color of the selected workspace. # this_screen_border = colors['background'], # other_current_screen_border = colors['background'], # other_screen_border = colors['background'], background=colors['background']), # Systray. # widget.TextBox(text = '|'), widget.Systray(), # widget.TextBox(text = ' |'), # Prompt. widget.Prompt(prompt=prompt, font=fonts['mono-font'], padding=10, foreground=colors['foreground-hc'], background=colors['background']), # Separator. widget.Sep( linewidth=0, #To make it invisible. padding=6 #Length with respect to the left most border. ), # Window name. widget.WindowName(), ###################### # RIGHT-MOST WIDGETS # ###################### # Hardware USAGE. # Memory. widget.TextBox(text=' ', fontsize=15, foreground=colors['foreground-lc'], background=colors['yellow']), widget.Memory(foreground=colors['foreground-lc'], background=colors['yellow']), # CPU. widget.TextBox(text=' ', fontsize=15, foreground=colors['foreground-lc'], background=colors['yellow']), widget.CPU(format='{freq_current}GHz {load_percent}%', foreground=colors['foreground-lc'], background=colors['yellow'], padding=5), #Separation between widgets. widget.Sep(linewidth=0, padding=4), # Battery. widget.TextBox(text=' ', foreground=colors['foreground-lc'], background=colors['aqua']), widget.Battery(format='{percent:2.0%}', foreground=colors['foreground-lc'], background=colors['aqua'], update_delay=5, padding=5), #Separation between widgets. widget.Sep(linewidth=0, padding=4), # Volume. widget.TextBox(text=str(' '), fontsize=15, foreground=colors['foreground-lc'], background=colors['green']), widget.Volume(foreground=colors['foreground-lc'], background=colors['green'], padding=5), #Separation between widgets. widget.Sep(linewidth=0, padding=4), # Net. # widget.TextBox( # text = ' ', # foreground = colors['foreground-lc'], # background = colors['red'] # ), # widget.Net( # foreground = colors['foreground-lc'], # background = colors['red'], # format = '{down} ↓↑ {up}', # padding = 5 # ), # # Separation between widgets. # widget.Sep(linewidth = 0, padding = 6), # Packages to update. widget.TextBox(text=' ', fontsize=18, foreground=colors['foreground-lc'], background=colors['orange']), widget.Pacman(execute='alacritty', update_interval=1800, foreground=colors['foreground-lc'], background=colors['orange'], padding=5), #Separation between widgets. widget.Sep(linewidth=0, padding=4), # Clock. widget.TextBox(text=' ', foreground=colors['foreground-lc'], background=colors['pink']), widget.Clock(format='%A, %B %d [ %H:%M ]', foreground=colors['foreground-lc'], background=colors['pink'], padding=5), ]
prompt = "{0}@{1} ".format(os.environ["USER"], socket.gethostname()) my_widgets = [ *my_workspaces(), powerline("color4"), icon(bg="color4", text=" "), # nf-oct-diff_renamed widget.TextBox( #**base(bg = colors['color4']), font="UbuntuMono Nerd Font Bold", background=colors['color4'], text=prompt, ), powerline("color3", "color4"), icon(bg="color3", text=" "), # nf-fa-download widget.Pacman(background=colors["color3"], update_intervale=1800, padding=6), powerline("color2", "color3"), icon(bg="color2", text=" "), # nf-fa-feed widget.Net(background=colors["color2"], padding=4), powerline("color1", "color2"), widget.CurrentLayoutIcon(background=colors["color1"], scale=0.65), widget.CurrentLayout(background=colors["color1"], padding=4), powerline("color4", "color1"), icon(bg="color4", text=" "), widget.Clock(background=colors["color4"], format='%d/%m/%Y', padding=5), icon(bg="color4", text=" "), widget.Clock(background=colors["color4"], padding=5), powerline("dark", "color4"), widget.Systray(background=colors['dark'], padding=5), ]
def init_widgets_list(): widgets_list = [ widget.Sep(linewidth=0, padding=6, foreground=colors["foreground"][0], background=colors["background"][0]), widget.GroupBox( font="Hack Nerd Font", fontsize=10, margin_y=4, margin_x=10, padding_y=4, padding_x=10, borderwidth=0, active=colors["foreground"][1], inactive=colors["foreground"][1], rounded=False, highlight_color=colors["red"][0], highlight_method="block", this_current_screen_border=colors["red"][0], # this_screen_border = , #other_current_screen_border = colors[0], #other_screen_border = colors[0], foreground=colors["foreground_color"][0], background=colors["background"][1]), widget.Prompt(prompt=prompt, padding=10, foreground=colors["foreground"][0], background=colors["background"][0]), widget.Spacer( length=bar.STRETCH, background=colors["background"][0], ), # widget.TextBox( # text = '', # background = colors[0], # foreground = colors[4], # padding = 0, # fontsize = 37 # ), # widget.TextBox( # text = " ₿", # padding = 0, # foreground = colors[2], # background = colors[4], # fontsize = 12 # ), # widget.BitcoinTicker( # foreground = colors[2], # background = colors[4], # padding = 5 # ), widget.TextBox( text=" 🌡", padding=0, foreground=colors["foreground_color"][0], background=colors["red"][0], ), widget.ThermalSensor(foreground=colors["foreground_color"][0], background=colors["red"][0], threshold=90, padding=5), widget.TextBox( text=" ⟳", padding=2, foreground=colors["foreground_color"][0], background=colors["green"][0], ), widget.Pacman(update_interval=5, foreground=colors["foreground_color"][0], mouse_callbacks={ 'Button1': lambda qtile: qtile.cmd_spawn(terminal + ' -e sudo pacman -Syu') }, background=colors["green"][0]), widget.TextBox(text="Updates", padding=5, mouse_callbacks={ 'Button1': lambda qtile: qtile.cmd_spawn( terminal + ' -e sudo pacman -Syu') }, foreground=colors["foreground_color"][0], background=colors["green"][0]), widget.TextBox(text=" Vol:", foreground=colors["foreground_color"][0], background=colors["yellow"][0], padding=0), widget.Volume( background=colors["yellow"][0], padding=5, ), widget.CurrentLayoutIcon( custom_icon_paths=[os.path.expanduser("~/.config/qtile/icons")], background=colors["blue"][0], padding=0, scale=0.7), widget.CurrentLayout(background=colors["blue"][0], padding=5), widget.Clock(background=colors["purple"][0], format="%A, %B %d [ %H:%M ]", padding=5), widget.Sep(linewidth=0, padding=10, background=colors["purple"][0]), ] return widgets_list
widget.GroupBox( fonsize=10, padding_x=5, padding_y=5, highlight_method="block", inactive=colors["bright"]["black"], rounded=False, this_current_screen_border=colors["normal"]["blue"], foreground=colors["normal"]["red"], background=colors["primary"]["background"]), widget.WindowName(foreground=colors["bright"]["magenta"], ), widget.Clock(format='%A, %b %d %H:%M'), widget.Spacer(), widget.Notify(default_timeout=2, ), widget.Systray(icon_size=24), widget.Pacman(), widget.Volume( # padding = 100, # theme_path="/usr/share/icons/Parpirus-Dark", ), # widget.CapsNumLockIndicator(), widget.CurrentLayout(padding=10, ), ], 35, ), ), ] # Drag floating layouts. mouse = [ Drag([mod], "Button1",
foreground = color['light_blue'], text=" 🌡", padding = 1, fontsize=11 ), widget.ThermalSensor( padding = 5 ), widget.TextBox( foreground = color['light_blue'], text=" ⟳", padding = 1, fontsize=16 ), widget.Pacman( execute = "st -e sudo pacman -Syu", update_interval = 1800, ), widget.TextBox( text="Updates", padding = 5, ), widget.TextBox( text=" 🔊", foreground = color['light_blue'], fontsize = 16, padding = 0 ), widget.Volume( padding = 5 ), widget.TextBox(
def init_widgets_list(): widgets_list = [ widget.Sep(linewidth=0, padding=6, foreground=colors[2], background=colors[0]), widget.GroupBox(font="Ubuntu Bold", fontsize=9, margin_y=3, margin_x=0, padding_y=5, padding_x=5, borderwidth=3, active=colors[2], inactive=colors[2], rounded=False, highlight_color=colors[1], highlight_method="line", this_current_screen_border=colors[3], this_screen_border=colors[4], other_current_screen_border=colors[0], other_screen_border=colors[0], foreground=colors[2], background=colors[0]), widget.Prompt(prompt=prompt, font="Ubuntu Mono", padding=10, foreground=colors[3], background=colors[1]), widget.Sep(linewidth=0, padding=40, foreground=colors[2], background=colors[0]), widget.WindowName(foreground=colors[6], background=colors[0], padding=0), widget.TextBox(text='', background=colors[4], foreground=colors[5], padding=0, fontsize=37), widget.TextBox(text=" 🌡", padding=2, foreground=colors[2], background=colors[5], fontsize=11), widget.ThermalSensor(foreground=colors[2], background=colors[5], padding=5), widget.TextBox(text='', background=colors[5], foreground=colors[4], padding=0, fontsize=37), widget.TextBox(text=" ⟳", padding=2, foreground=colors[2], background=colors[4], fontsize=14), widget.Pacman(execute="alacritty", update_interval=1800, foreground=colors[2], background=colors[4]), widget.TextBox(text="Updates", padding=5, foreground=colors[2], background=colors[4]), widget.TextBox(text='', background=colors[4], foreground=colors[5], padding=0, fontsize=37), widget.TextBox(text=" 🖬", foreground=colors[2], background=colors[5], padding=0, fontsize=14), widget.Memory(foreground=colors[2], background=colors[5], padding=5), widget.TextBox(text='', background=colors[5], foreground=colors[4], padding=0, fontsize=37), widget.Net(interface="enp6s0", format='{down} ↓↑ {up}', foreground=colors[2], background=colors[4], padding=5), widget.TextBox(text='', background=colors[4], foreground=colors[5], padding=0, fontsize=37), widget.TextBox(text=" Vol:", foreground=colors[2], background=colors[5], padding=0), widget.Volume(foreground=colors[2], background=colors[5], padding=5), widget.TextBox(text='', background=colors[5], foreground=colors[4], padding=0, fontsize=37), widget.CurrentLayoutIcon( custom_icon_paths=[os.path.expanduser("~/.config/qtile/icons")], foreground=colors[0], background=colors[4], padding=0, scale=0.7), widget.CurrentLayout(foreground=colors[2], background=colors[4], padding=5), widget.TextBox(text='', background=colors[4], foreground=colors[5], padding=0, fontsize=37), widget.Clock(foreground=colors[2], background=colors[5], format="%A, %B %d [ %H:%M ]"), widget.Sep(linewidth=0, padding=10, foreground=colors[0], background=colors[5]), widget.Systray(background=colors[0], padding=5), ] return widgets_list