def init_widgets_list(): widgets_list = [ ##### -------------------------------------------------------------------------- ### Display Groups ############################################################# ##### -------------------------------------------------------------------------- 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[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], ), ##### -------------------------------------------------------------------------- ### Display Active Window ###################################################### ##### -------------------------------------------------------------------------- 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), ##### -------------------------------------------------------------------------- ### Display System Temps ####################################################### ##### -------------------------------------------------------------------------- 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=11, ), widget.ThermalSensor(foreground=colors[2], background=colors[4], threshold=90, padding=5), ##### -------------------------------------------------------------------------- ### Display CPU Usage ########################################################## ##### -------------------------------------------------------------------------- widget.TextBox( text="", background=colors[4], foreground=colors[5], padding=0, fontsize=37, ), widget.CPU( update_interval="1.0", foreground=colors[2], background=colors[5], threshold=90, padding=5, ), ##### -------------------------------------------------------------------------- ### Display RAM Usage ########################################################## ##### -------------------------------------------------------------------------- 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, ), ##### -------------------------------------------------------------------------- ### Display Current Volume ##################################################### ##### -------------------------------------------------------------------------- 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), ##### -------------------------------------------------------------------------- ### Display Current Layout ##################################################### ##### -------------------------------------------------------------------------- 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=10), ##### -------------------------------------------------------------------------- ### Display Current Date/Time ################################################## ##### -------------------------------------------------------------------------- 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 ]", padding=5, ), widget.Sep(linewidth=0, padding=5, foreground=colors[0], background=colors[5]), widget.Systray(background=colors[0], padding=0), ] return widgets_list
layouts = [layout.Max(), layout.Stack(num_stacks=2)] widget_defaults = dict( font='sans', fontsize=12, padding=3, ) extension_defaults = widget_defaults.copy() screens = [ Screen(bottom=bar.Bar( [ widget.GroupBox(), widget.Prompt(), widget.WindowName(), widget.TextBox("default config", name="default"), widget.Systray(), widget.Clock(format='%Y-%m-%d %a %I:%M %p'), ], 24, ), ), ] # Drag floating layouts. mouse = [ Drag([mod], "Button1", lazy.window.set_position_floating(), start=lazy.window.get_position()), Drag([mod], "Button3",
# pylint: disable=invalid-name from libqtile.config import Screen from libqtile import widget, bar screens = [ Screen(bottom=bar.Bar( [ widget.GroupBox(), widget.Prompt(), widget.WindowName(), widget.TextBox("Mike's config", name="default"), widget.Systray(), widget.Clock(format='%Y-%m-%d %a %I:%M %p'), widget.CurrentLayout(), ], 24, ), ), ]
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=9, 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.Sep(linewidth=0, padding=10, foreground=colors[2], background=colors[0]), widget.Prompt(prompt=prompt, font="Ubuntu Mono", padding=10, foreground=colors[3], background=colors[1]), widget.TextBox( "◢", fontsize=55, font='TerminessTTF Nerd Font', foreground="#ffffff", background=colors[0], padding=-2, ), widget.TextBox( "◤ ", fontsize=55, font='TerminessTTF Nerd Font', foreground="#ffffff", background=colors[0], padding=-5, ), widget.Prompt( fontsize=12, max_history=20, record_history=True, prompt='run: ', font='TerminessTTF Nerd Font', ), widget.WindowName(font="Ubuntu", fontsize=11, foreground=colors[5], background=colors[0], padding=6), widget.Systray(background=colors[0], padding=6), widget.TextBox( "◢", fontsize=55, font='TerminessTTF Nerd Font', foreground="#ffffff", background=colors[0], padding=-2, ), widget.CurrentLayout( padding=0, fontsize=12, background="#ffffff", foreground="#282828", font='TerminessTTF Nerd Font', ), widget.TextBox( "◤", fontsize=55, font='TerminessTTF Nerd Font', foreground="#ffffff", padding=-5, ), widget.TextBox( "◢", fontsize=55, font='TerminessTTF Nerd Font', foreground="#ffffff", padding=-2, ), widget.Battery(format='{char} {percent:1.0%}', low_foreground="#c33027", charge_char='', discharge_char='', low_percentage=0.2, update_delay=60, fontsize=12, font='TerminessTTF Nerd Font', background="#ffffff", padding=5, foreground="#282828"), widget.TextBox( "◤", font='TerminessTTF Nerd Font', fontsize=55, foreground="#ffffff", padding=-5, ), widget.TextBox( "◢", font='TerminessTTF Nerd Font', fontsize=55, foreground="#ffffff", padding=-2, ), widget.TextBox( " ", background="#ffffff", padding=0, fontsize=15, ), widget.Clock( format='%a %d %b | %H:%M', foreground="#282828", font="TerminessTTF Nerd Font", fontsize=12, padding=0, background="#ffffff", ), widget.Sep(linewidth=1, padding=6, foreground=colors[0], background=colors[9]), ] return widgets_list
padding=3) extension_defaults = widget_defaults.copy() screens = [ Screen(bottom=bar.Bar( [ widget.GroupBox( borderwidth=5, inactive=["#ffffff", "#ffffff"], this_current_screen_border=["037bfc", "037bfc"], highlight_method='block', margin_y=3.2, fontsize=35, font='sans', ), widget.TextBox(text="Window:"), widget.WindowName(foreground="037bfc"), widget.CurrentLayout(fontsize=16), widget.Systray(), widget.Clock(format='%d-%m-%Y %a %I:%M %p', ), widget.Image(filename="~/.wallpapers/logo.png") ], 24, ), ), ] mouse = [] dgroups_key_binder = None dgroups_app_rules = [] main = None
screens = [ Screen( top=bar.Bar( [ widget.CurrentLayout(), widget.GroupBox(), widget.Prompt(), widget.WindowName(), widget.Chord( chords_colors={ 'launch': ("#ff0000", "#ffffff"), }, name_transform=lambda name: name.upper(), ), widget.Systray(), widget.TextBox("VOL:", mouse_callbacks = {'Button1': open_pavucontrol}), widget.Volume(), widget.TextBox("WIFI:", mouse_callbacks = {'Button1': open_nmtui}), widget.Wlan(interface='wlp1s0', mouse_callbacks={'Button1': open_nmtui}), widget.BatteryIcon(), #widget.CPUGraph(width=25), #widget.MemoryGraph(width=25, fill_color='#9e0000', graph_color='#ff5757'), widget.CPU(background=['#f2d81a'], foreground='#000000'), widget.Memory(background=['#f2d81a'], foreground='#000000'), widget.Clock(format='%a, %d-%b %R', background=['#33ff6b'], foreground='#000000') ], 24, #background=['#4a65ec', '#98a8fc'], #List in background makes a gradient of colors #opacity=0.5,
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[2], rounded=False, highlight_color=colors[1], highlight_method="line", this_current_screen_border=colors[6], this_screen_border=colors[4], other_current_screen_border=colors[6], other_screen_border=colors[4], foreground=colors[2], background=colors[0]), widget.Prompt(prompt=prompt, font="Ubuntu Mono", padding=10, foreground=colors[3], background=colors[1]), widget.Sep(linewidth=0, padding=40, foreground=colors[2], background=colors[0]), widget.WindowName(foreground=colors[6], background=colors[0], padding=0), widget.Systray(background=colors[0], padding=5), widget.Sep(linewidth=0, padding=6, foreground=colors[0], background=colors[0]), widget.TextBox(text='', background=colors[0], foreground=colors[5], padding=0, fontsize=37), widget.TextBox(text="", padding=2, foreground=colors[2], background=colors[5], fontsize=11), widget.Battery(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.TextBox(text=" ", foreground=colors[2], background=colors[4], padding=0, fontsize=14), widget.CPU(format='{freq_current}GHz {load_percent}%', foreground=colors[2], background=colors[4], mouse_callbacks={ 'Button1': lambda: 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='', 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, step=2, ), 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
def powerline(fg="light", bg="dark"): return widget.TextBox( **base(fg, bg), text="", # Icon: nf-oct-triangle_left fontsize=37, padding=-2)
) extension_defaults = widget_defaults.copy() screens = [ Screen(bottom=bar.Bar( [ widget.GroupBox(), widget.Prompt(), widget.WindowName(), widget.CPUGraph(core=0, width=21, line_width=2), widget.CPUGraph(core=1, width=21, line_width=2), widget.CPUGraph(core=2, width=21, line_width=2), widget.CPUGraph(core=3, width=21, line_width=2), widget.MemoryGraph(width=50, line_width=2), widget.Volume(update_interval=1, emoji=True), widget.TextBox("", name="default"), widget.Systray(), widget.Clock(format='%Y-%m-%d %a %I:%M %p'), ], 24, ), ), Screen(bottom=bar.Bar( [ widget.GroupBox(), widget.Prompt(), widget.WindowName(), widget.CPUGraph(core=0, width=21, line_width=2), widget.CPUGraph(core=1, width=21, line_width=2), widget.CPUGraph(core=2, width=21, line_width=2), widget.CPUGraph(core=3, width=21, line_width=2), widget.MemoryGraph(width=50, line_width=2),
widget.Image(filename='~/.config/qtile/icons/arch.png'), widget.CurrentLayout(foreground=colors[5], ), widget.GroupBox( rounded=True, active=colors[3], inactive=colors[2], highlight_color=colors[1], highlight_method='line', hide_unused=True, this_current_screen_border=colors[6], ), widget.Prompt(foreground=colors[6]), widget.WindowName(foreground=colors[6], ), widget.TextBox(text='Vol: ', foreground=colors[5], mouse_callbacks={ 'Button3': lambda: qtile.cmd_spawn('pavucontrol') }), widget.PulseVolume(foreground=colors[5], ), widget.Battery( foreground=colors[6], format='{percent:2.0%} {watt:.2f} W', mouse_callbacks={ 'Button1': lambda: qtile.cmd_spawn('xfce4-power-manager-settings') }), widget.Systray(), widget.Clock( format='%a %H:%M:%S %d/%m/%Y', foreground=colors[5], ),
def icon(fg='text', bg='dark', fontsize=16, text="?"): return widget.TextBox(**base(fg, bg), fontsize=fontsize, text=text, padding=3)
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=9, 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[0]), 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=6), widget.Systray(background=colors[0]), widget.Sep(linewidth=0, padding=10, foreground=colors[2], background=colors[0]), widget.TextBox(text=" ↯", foreground=colors[6], background=colors[0], padding=0, fontsize=14), widget.Net(interface="enp3s0", foreground=colors[5], background=colors[0]), widget.TextBox(font="Ubuntu Bold", text=" ☵", padding=6, foreground=colors[6], background=colors[0], fontsize=14), widget.CurrentLayout(foreground=colors[5], background=colors[0]), widget.TextBox(font="Ubuntu Bold", text=" 🕒", foreground=colors[6], background=colors[0], padding=6, fontsize=14), widget.Clock(foreground=colors[5], background=colors[0], format="%A, %B %d - %H:%M"), widget.Sep(linewidth=0, padding=6, foreground=colors[2], background=colors[0]), ] return widgets_list
widget_defaults = dict( font='TerminessTTF Nerd Font', fontsize=12, padding=2, ) extension_defaults = widget_defaults.copy() screens = [ Screen( top=bar.Bar( [ widget.TextBox( "◢", fontsize=55, font='TerminessTTF Nerd Font', foreground="#ffffff", padding=-2, ), widget.GroupBox( highlight_method='line', fontsize=12, foreground="#282828", active="#dc322f", inactive="#000000", padding=0, highlight_color="#ffffff", background="#ffffff", font='TerminessTTF Nerd Font', borderwidth=2, disable_drag=True,
other_screen_border=colors[4], foreground=colors[2], background=colors[0]), widget.Sep(linewidth=0, padding=40, foreground=colors[2], background=colors[0]), widget.WindowName( foreground=colors[6], background=colors[0], padding=0), widget.Systray(background=colors[0], padding=5), widget.Sep(linewidth=0, padding=6, foreground=colors[0], background=colors[0]), widget.TextBox(background=colors[0], foreground=colors[5], padding=0, fontsize=37), widget.Net(interface="wlp58s0", format='{down} ↓↑ {up}', foreground=colors[2], background=colors[5], padding=5), widget.TextBox(background=colors[5], foreground=colors[4], padding=0, fontsize=37), widget.TextBox(text=" 🌡", padding=2, foreground=colors[2], background=colors[4], fontsize=11),
elif hasattr(monitor, "num_preferred"): preferred = monitor.num_preferred if preferred: num_monitors += 1 except Exception as e: # always setup at least one monitor return 1 else: return num_monitors num_monitors = get_num_monitors() screens = [ Screen( top=bar.Bar( [widget.TextBox(text = "Can")] bar_size=24, opacity=0.8, ), ) ] if num_monitors > 1: for m in range(num_monitors - 1): screens.append( Screen( top=bar.Bar( [...], # other screens widgets bar_size=24, opacity=0.8, ),
rounded=False, borderwidth=0, highlight_method='line', highlight_color=[blue, blue1], block_highlight_text_color=bg, this_current_screen_border=blue1, this_screen_border=blue1, active=fg, inactive=fg_alt, padding=8), widget.WindowName(background=bg, foreground=purple, format='{state}{name}', max_chars=20, padding=10), widget.TextBox(text='{', foreground=fg_alt), widget.Net(padding=5, foreground=blue1, format='{down} ↓↑ {up}', update_interval=1), widget.TextBox(text='|', padding=5, foreground=fg_alt), widget.TextBox( text='', padding=5, fontsize=14, foreground=green), widget.CPU(foreground=green, update_interval=5.0, format='CPU {freq_current}GHz {load_percent}%'), widget.TextBox(text='|', padding=5, foreground=fg_alt), widget.TextBox( text='', padding=5, fontsize=16, foreground=blue1), widget.Volume(padding=5, foreground=blue1,
widget.Prompt(), widget.WindowName(), widget.Chord( chords_colors={ 'launch': ("#ff0000", "#ffffff"), }, name_transform=lambda name: name.upper(), ), widget.CheckUpdates( distro='Ubuntu', update_interval=3600, execute=terminal + ' -e "/home/javi/.config/qtile/bin/sysupdate.sh"', colour_have_updates='ff0000' ), #(Added "/usr/bin/aptitude update &" in /etc/cron.daily/aptitude" widget.TextBox("Net"), widget.NetGraph(interface='auto'), widget.TextBox("Mem"), widget.MemoryGraph(graph_color='27DA99'), widget.TextBox("CPU"), widget.CPUGraph(graph_color='A563EB'), widget.ThermalSensor(), #widget.TextBox("default config", name="default"), #widget.TextBox("Press <M-r> to spawn", foreground="#d75f5f"), #widget.KeyboardLayout(configured_keyboards=['gb','es']), keyboard_widget, volume_widget, widget.Systray(), #widget.Net(interface='eno1'), widget.Clock(format='%Y-%m-%d %a %H:%M'), widget.QuickExit(),
# this_current_screen_border = colors[3], # this_screen_border = colors [4], # other_current_screen_border = colors[0], # other_screen_border = colors[0], ), widget.WindowName(), widget.Chord( chords_colors={ "launch": ("#ff0000", "#ffffff"), }, name_transform=lambda name: name.upper(), ), widget.TextBox( text="\u25C0", fontsize=65, padding=-9, background=colorBlack, foreground=colorBlue, ), widget.BitcoinTicker( currency="", background=colorBlue, foreground=colorBlack, ), widget.TextBox( text="\u25C0", fontsize=65, padding=-9, background=colorBlue, foreground=colorBlack, ),
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.Sep( linewidth = 0, padding = 6, foreground = colors[2], background = colors[0] ), widget.TextBox( text = '◥', background = colors[0], foreground = colors[4], #"#81A1C1", padding = -2, font= "Fira Code", fontsize = 50 ), widget.TextBox( text = '', background = colors[4], foreground = colors[2], padding = 0, fontsize = 28, mouse_callbacks = {'button1': lambda: qtile.cmd_spawn(myterm)} ), widget.TextBox( text = '◣', background = colors[0], foreground = colors[4], #"#81A1C1", padding = -2, font = "Fira Code", fontsize = 50 ), widget.Sep( linewidth = 0, padding = 1, 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 = 10, foreground = colors[2], background = colors[0] ), widget.WindowName( foreground = colors[6], background = colors[0], padding = 0 ), widget.Sep( linewidth = 0, padding = 6, foreground = colors[0], background = colors[0] ), widget.TextBox( text = '◥', background = colors[0], foreground = colors[4], padding = -2, font = "Fira Code", fontsize = 50 ), widget.Net( interface = "bond0", format = '{down} ↓↑ {up}', 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.TextBox( text = "💻", padding = 2, foreground = colors[4], background = colors[5], 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[5] ), widget.TextBox( text = '◢', background = colors[5], foreground = colors[4], padding = -2, font = "Fira Code", fontsize = 50 ), widget.TextBox( text = "💾", foreground = colors[2], background = colors[4], padding = 0, fontsize = 14 ), widget.Memory( foreground = colors[2], background = colors[4], measure_mem = "g", mouse_callbacks = {'Button1': lambda: qtile.cmd_spawn(myTerm + ' -e gotop')}, padding = 5 ), widget.TextBox( text = '◢', background = colors[4], foreground = colors[5], padding = -2, font = "Fira Code", fontsize = 50 ), 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 = -2, font = "Fira Code", fontsize = 50 ), 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 = -2, font = "Fira Code", fontsize = 50 ), widget.Clock( foreground = colors[2], background = colors[5], format = "📅 %Y-%m-%d, %H:%M:%S ", timezone = "America/Argentina/Buenos_Aires", mouse_callbacks = {'Button1': lambda: qtile.cmd_spawn(myTerm + ' -e cal')} ), widget.TextBox( text= '◣', background = colors[0], foreground = colors[5], padding = -2, font = "Fira Code", fontsize = 50 ), widget.Systray( background = colors[0], padding = 0 ), ] return widgets_list
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
def make_screen(systray=False): """Defined as a function so that I can duplicate this on other monitors""" blocks = [ # Marker for the start of the groups to give a nice bg: ◢■■■■■■■◤ widget.TextBox( font="Arial", foreground=COLOR_SCHEME["foreground"], text="◢", fontsize=50, padding=-1, ), widget.GroupBox( other_current_screen_border=COLOR_SCHEME["selected"], this_current_screen_border=COLOR_SCHEME["selected"], other_screen_border=COLOR_SCHEME["foreground"], this_screen_border=COLOR_SCHEME["foreground"], highlight_color=COLOR_SCHEME["selected"], urgent_border=COLOR_SCHEME["urgent"], background=COLOR_SCHEME["foreground"], highlight_method="line", inactive=COLOR_SCHEME["inactive_group"], active=COLOR_SCHEME["active_group"], disable_drag=True, borderwidth=3, **FONT_PARAMS, ), # Marker for the end of the groups to give a nice bg: ◢■■■■■■■◤ widget.TextBox( font="Arial", foreground=COLOR_SCHEME["foreground"], text="◤ ", fontsize=50, padding=-5, ), # Show the title for the focused window widget.WindowName(**FONT_PARAMS), # Allow for quick command execution widget.Prompt( cursor_color=COLOR_SCHEME["foreground"], bell_style="visual", prompt="λ : ", **FONT_PARAMS, ), # widget.Sep(linewidth=2, foreground=COLOR_SCHEME["background"]), # Resource usage graphs # IP information # ShellScript( # fname="ipadr.sh", # update_interval=10, # markup=True, # padding=1, # **FONT_PARAMS # ), # Available apt upgrades # ShellScript( # fname="aptupgrades.sh", # update_interval=600, # markup=True, # padding=1, # **FONT_PARAMS # ), # Available pacman upgrades # widget.TextBox("┊", **FONT_PARAMS), # widget.TextBox("⟳", # padding=0, # mouse_callbacks={ # "Button1": lambda qtile: qtile.cmd_spawn(TERMINAL + " -e sudo pacman -Syu") # }, # **FONT_PARAMS), # widget.Pacman( # update_interval=600, # mouse_callbacks={ # "Button1": lambda qtile: qtile.cmd_spawn(TERMINAL + " -e sudo pacman -Syu") # }, # **FONT_PARAMS), widget.TextBox("┊", **FONT_PARAMS), # Check Updates using YAY, every 5min ArchCheckUpdates( distro="Arch_yay", update_interval=300, display_format="聯", mouse_callbacks={ "Button1": lambda qtile: qtile.cmd_spawn(TERMINAL + " -e yay -Syu") }, colour_no_updates=COLOR_SCHEME["foreground"], colour_have_updates=COLOR_SCHEME["focus"], no_update_string="聯", **FONT_PARAMS, ), widget.TextBox("┊", **FONT_PARAMS), # Volume % : scroll mouse wheel to change volume widget.TextBox("", **FONT_PARAMS), widget.Volume(**FONT_PARAMS), widget.TextBox("┊", **FONT_PARAMS), # Current time widget.Clock(format="%I:%M %p, %a %d de %b %Y", **FONT_PARAMS), # Keyboard layout widget.TextBox("┊", **FONT_PARAMS), widget.KeyboardLayout(configured_keyboards=K_LAYOUTS, **FONT_PARAMS), widget.TextBox("┊", **FONT_PARAMS), # Visual indicator of the current layout for this workspace. widget.CurrentLayoutIcon( custom_icon_paths=[os.path.expanduser("~/.config/qtile/icons")], **FONT_PARAMS, ), ] if systray: # Add in the systray and additional separator blocks.insert(-1, widget.Systray()) blocks.insert( -1, widget.Sep(linewidth=2, foreground=COLOR_SCHEME["background"]) ) # return Screen(top=bar.Bar(blocks, 25, background=COLS["deus_1"])) return Screen( top=bar.Bar( widgets=blocks, opacity=0.9, size=25, background=COLOR_SCHEME["background"] ) )
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(), ], 24, ), ), ] # Drag floating layouts. mouse = [ Drag([mod], "Button1", lazy.window.set_position_floating(), start=lazy.window.get_position()),
def init_widgets_list(): widgets_list = [ widget.Image( filename="~/.config/qtile/icons/arcolinux.png", background=COLORS["background"], margin=2, #margin_x = 0, #margin_y = 0, mouse_callbacks={'Button1': toggle_rofi}), #widget.Sep( #linewidth = 0, #padding = 0+, #foreground = COLORS["white"], #background = COLORS["background"] #), widget.GroupBox(font="Ubuntu Bold", fontsize=9, margin_y=3, margin_x=0, padding_y=5, padding_x=5, borderwidth=3, active=COLORS["white"], inactive=COLORS["white"], rounded=False, highlight_color=COLORS['active_background'], highlight_method="line", this_current_screen_border=COLORS["group_highlight"], this_screen_border=COLORS["border_line"], other_current_screen_border=COLORS["background"], other_screen_border=COLORS["background"], foreground=COLORS["white"], background=COLORS["background"], disable_drag=True), widget.TextBox(text='⟋', background=COLORS["background"], foreground=COLORS["frost1"], padding=0, fontsize=50), widget.Prompt(prompt=prompt, font="Ubuntu Mono", padding=10, foreground=COLORS["group_highlight"], background=COLORS["active_background"]), widget.Sep(linewidth=0, padding=2, foreground=COLORS["white"], background=COLORS["background"]), widget.TaskList( background=COLORS["background"], foreground="#d8dee9", font="Ubuntu Mono", fontsize=12, icon_size=8, border=COLORS["active_background"], highlight_method="block", max_title_width=120, txt_floating="🗗 ", txt_maximized="🗖 ", margin=0, padding=5, ), widget.CurrentLayoutIcon( custom_icon_paths=[os.path.expanduser("~/.config/qtile/icons")], background=COLORS["background"], padding=0, scale=0.7), widget.CurrentLayout(foreground=COLORS["white"], background=COLORS["background"], padding=5), bar_transition(COLORS["background"], COLORS["frost0"]), widget.GenPollText(background=COLORS["frost0"], func=get_mails, update_interval=600, mouse_callbacks={'Button1': open_mail}), bar_transition(COLORS["frost0"], COLORS["frost1"]), widget.TextBox(text="", foreground=COLORS["white"], background=COLORS["frost1"], mouse_callbacks={'Button1': open_feeds}), widget.GenPollText(background=COLORS["frost1"], func=get_feeds, update_interval=600, mouse_callbacks={'Button1': open_feeds}), bar_transition(COLORS["frost1"], COLORS["frost2"]), widget.CPU(foreground=COLORS["white"], background=COLORS["frost2"], padding=0, format="CPU {load_percent}% | ", mouse_callbacks={ 'Button1': open_htop, 'Button3': open_sys_monitor }), widget.Memory(foreground=COLORS["white"], background=COLORS["frost2"], measure_mem="G", measure_swap="G", format='RAM {MemUsed: .1f}/{MemTotal: .1f}GB', padding=0, mouse_callbacks={ 'Button1': open_htop, 'Button3': open_sys_monitor }), bar_transition(COLORS["frost2"], COLORS["frost3"]), widget.ThermalSensor( foreground=COLORS["white"], background=COLORS["frost3"], padding=0, update_interval=10, ), bar_transition(COLORS["frost3"], COLORS["frost0"]), widget.TextBox(text="", foreground=COLORS["white"], background=COLORS["frost0"], mouse_callbacks={'Button1': open_audio_settings}), widget.Volume(foreground=COLORS["white"], background=COLORS["frost0"], padding=0, volume_app="pulseaudio", device="pulse"), bar_transition(COLORS["frost0"], COLORS["frost1"]), widget.CheckUpdates(update_interval=1800, foreground=COLORS["white"], background=COLORS["frost1"], color_have_updates=COLORS["aurora0"], display_format='{updates} ⟳', distro="Arch_checkupdates", mouse_callbacks={'Button1': open_pamac}), bar_transition(COLORS["frost1"], COLORS["frost2"]), #widget.Systray( #background=COLORS["frost2"], #padding = 5 #), #bar_transition(COLORS["frost2"], COLORS["frost3"]), widget.Clock(foreground=COLORS["white"], background=COLORS["frost2"], format="%d-%b-%Y [%H:%M] ", padding=2, mouse_callbacks={'Button1': toggle_calendar}), # bar_transition(COLORS["frost3"], COLORS["frost0"]), #widget.Battery( #font="Ubuntu Mono", #update_interval = 10, #fontsize = 12, #foreground = COLORS["white"], #background = COLORS["frost3"], #), widget.TextBox(text="[⏻]", background=COLORS["frost3"], mouse_callbacks={'Button1': logout}), #widget.QuickExit( #background = COLORS["frost3"], #countdown_format = "[{}s]", #default_text = "[⏼]" # ⏻ ⏼ ⏽ ⭘ ⏾ #) ] return widgets_list
widget.CurrentLayout(), widget.DF( visible_on_warn=False, partition="/var", format="[ {p} ({uf}{m}|{r:.0f}%) ]", ), widget.Battery( font="Ubuntu", charge_char="🗲", discharge_char="▼", format="{char} {percent:2.0%}", ), 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,
def get_bar(): return bar.Bar([ widget.GroupBox( active = "5e81ac", inactive = "b48ead", this_current_screen_border = "bf616a", highlight_method = "line", highlight_color=["2e3440", "2e3440"], center_aligned=True, ), widget.Prompt( prompt='Run:', ), widget.TextBox( text='|', foreground="bf6a6a" ), #widget.TaskList( # foreground = "2e3440", # border = "5e81ac", # fontsize = 11, # unfocused_border = "b48ead", # highlight_method = "block", # max_title_width=100, # title_width_method="uniform", # icon_size = 13, # rounded=False, #), widget.Spacer(bar.STRETCH), widget.Systray( ), widget.TextBox( text='|', foreground="8fbcbb", ), widget.TextBox( text='', foreground="8fbcbb", ), widget.KeyboardLayout( foreground="8fbcbb", ), widget.TextBox( text='|', foreground="5e81ac", ), widget.TextBox( text='', foreground="5e81ac", ), widget.Battery( format = '{percent:2.0%}' ), widget.TextBox( text='|', foreground="ebcb8b", ), widget.TextBox( text='', foreground="ebcb8b", ), widget.Volume( foreground="ebcb8b", ), widget.TextBox( text='|', foreground="88c0d0", ), widget.TextBox( text='', foreground="88c0d0", ), widget.Backlight( foreground="88c0d0", backlight_name="intel_backlight", ), widget.TextBox( text='|', foreground="a3be8c", ), widget.TextBox( text='', foreground="a3be8c", ), widget.Clock( format='%a %I:%M', foreground = "a3be8c", ), widget.TextBox( text='|', foreground="bf6a6a", ), widget.TextBox( text='', foreground="bf6a6a", ), widget.Wlan( foreground="bf6a6a", interface="wlp3s0", format="{essid}", ), ], 26, background="2e3440")
top=bar.Bar( [ widget.GroupBox(background='#808080', foreground='#ffffff', active='#ffffff', this_current_screen_border="#470000", borderwidth=1, highlight_method='block', font='JetBrainsMono-Bold', fontsize=12), widget.WindowName(background='#808080', foreground='#ffffff'), widget.Net(background='#470000', foreground='#ffffff', interface='eth0'), widget.TextBox(u"\U0001F5AE", background='#808080', foreground='#ffffff', font='JetBrainsMono-Bold'), widget.KeyboardKbdd(configured_keyboards=['us', 'ru'], update_interval=1, background='#470000'), widget.TextBox(u"\U0001F50A", background='#808080', foreground='#ffffff', font='JetBrainsMono-Bold'), widget.Volume(background='#808080', foreground='#ffffff'), widget.Systray(background='#808080', foreground='#ffffff'), widget.Clock(background='#808080', foreground='#ffffff', format='%a, %d.%m.%Y, %H:%M %p'), ], 24,
padding=12 ), widget.GroupBox( hide_unused=True, margin=2.5, highlight_method='block', urgent_alert_methods='block', this_current_screen_border=colors['color2'], this_screen_border=colors['color2'] ), widget.WindowName(padding=12,background=colors['color0']), widget.Prompt(), widget.TextBox(text="🌡",padding=0), widget.ThermalSensor(update_interval=10), widget.Pomodoro(prefix_inactive="🍅", prefix_active="🍅 "), widget.GenPollText( func=funk, interval=4*60 ), widget.CPU( format = "💻 {freq_current}Gz {load_percent}%", foreground = colors['color7'], interval = 4 ),
def init_widgets_list(): prompt = "{0}@{1}: ".format(os.environ["USER"], socket.gethostname()) widgets_list = [ widget.GroupBox(font="FontAwesome", fontsize=14, margin_y=1, margin_x=0, padding_y=6, padding_x=5, borderwidth=0, disable_drag=True, active=colours[5], inactive=colours[9], rounded=False, highlight_method="block", this_current_screen_border=colours[8], this_screen_border=colours[7], foreground=colours[2], background=colours[1]), widget.Sep(linewidth=1, padding=10, foreground=colours[5], background=colours[1]), widget.CurrentLayout(font="Noto Sans Bold", foreground=colours[5], background=colours[1]), widget.Sep(linewidth=1, padding=10, foreground=colours[2], background=colours[1]), widget.WindowName( font="Noto Sans", fontsize=12, foreground=colours[5], background=colours[1], ), # widget.Net( # font="Noto Sans", # fontsize=12, # interface="enp0s31f6", # foreground=colours[2], # background=colours[1], # padding = 0, # ), # widget.Sep( # linewidth = 1, # padding = 10, # foreground = colours[2], # background = colours[1] # ), # widget.NetGraph( # font="Noto Sans", # fontsize=12, # bandwidth="down", # interface="auto", # fill_color = colours[8], # foreground=colours[2], # background=colours[1], # graph_color = colours[8], # border_color = colours[2], # padding = 0, # border_width = 1, # line_width = 1, # ), # widget.Sep( # linewidth = 1, # padding = 10, # foreground = colours[2], # background = colours[1] # ), # # do not activate in Virtualbox - will break qtile # widget.ThermalSensor( # foreground = colours[5], # foreground_alert = colours[6], # background = colours[1], # metric = True, # padding = 3, # threshold = 80 # ), # widget.Sep( # linewidth = 1, # padding = 10, # foreground = colours[2], # background = colours[1] # ), # 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 = colours[1] # ), # widget.Sep( # linewidth = 1, # padding = 10, # foreground = colours[2], # background = colours[1] # ), # # battery option 2 from Qtile # widget.Battery( # font="Noto Sans", # update_interval = 10, # fontsize = 12, # foreground = colours[5], # background = colours[1], # ), # widget.BitcoinTicker( # currency = "AUD", # update_interval = 60, # foreground = colours[5], # background = colours[1] # ), widget.Sep(linewidth=1, padding=10, foreground=colours[5], background=colours[1]), widget.TextBox(font="FontAwesome", text=" ", foreground=colours[5], background=colours[1], padding=0, fontsize=16), widget.CPUGraph(border_color=colours[9], fill_color=colours[10], graph_color=colours[7], background=colours[1], border_width=0, line_width=2, core="all", type="linefill", samples=20), widget.Sep(linewidth=1, padding=10, foreground=colours[5], background=colours[1]), widget.TextBox(font="FontAwesome", text=" ", foreground=colours[5], background=colours[1], padding=0, fontsize=16), widget.MemoryGraph(border_color=colours[9], fill_color=colours[11], graph_color=colours[8], background=colours[1], border_width=0, line_width=2, core="all", type="linefill", samples=20), widget.Sep(linewidth=1, padding=10, foreground=colours[5], background=colours[1]), widget.TextBox(font="FontAwesome", text=" ", foreground=colours[5], background=colours[1], padding=0, fontsize=16), widget.Clock(foreground=colours[5], background=colours[1], fontsize=12, format="%Y-%m-%d %H:%M"), widget.Sep(linewidth=1, padding=10, foreground=colours[5], background=colours[1]), widget.Systray(background=colours[1], icon_size=20, padding=4), ] return widgets_list
padding=6, ), widget.WindowName( # foreground = colors[6], background=colors[0], padding=0), widget.CPUGraph( samples=30, line_width=1, graph_color=colors[2], fill_color=colors[2], margin_x=0, border_width=0, ), widget.CPU(format='{freq_current} GHz', background=colors[0]), widget.TextBox( text="", foreground=colors[4], padding=0, fontsize=24), widget.MemoryGraph(width=40, samples=30, line_width=1, border_width=0, graph_color=colors[2], fill_color=colors[2], background=colors[4]), widget.Memory(background=colors[4]), widget.Sep(linewidth=0, padding=6, foreground=colors[0], background=colors[4]), widget.TextBox(text="", background=colors[4], foreground=colors[5],