def init_widgets_list(): widgets_list = [ # ----- Separador ----- widget.Sep( linewidth=0, padding=6, foreground=colors[2], background=colors[0] ), # ----- Imagen (Icono de Python) ----- widget.Image( filename="~/.config/qtile/icons/python.png", scale="False", mouse_callbacks={'Button1': lambda: qtile.cmd_spawn( 'rofi -show drun -show-icons')} ), # ----- Separador ----- widget.Sep( linewidth=0, padding=6, foreground=colors[2], background=colors[0] ), # ----- Grupos ----- 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[17], this_screen_border=colors[16], other_current_screen_border=colors[17], other_screen_border=colors[16], foreground=colors[2], background=colors[0], urgent_alert_method = 'border', urgent_border = colors[17] ), # ----- Prompt ----- widget.Prompt( prompt=prompt, font="Ubuntu Mono", padding=10, foreground=colors[3], background=colors[1] ), # ----- Separador ----- widget.Sep( linewidth=0, padding=20, foreground=colors[2], background=colors[0] ), # ----- Nombres de Ventanas ----- widget.WindowName( foreground=colors[2], background=colors[0], padding=0 ), # ----- Separador ----- widget.Sep( linewidth=0, padding=6, foreground=colors[0], background=colors[0] ), # ----- Texto (inicio Caja de Widgets) ----- widget.TextBox( text='', background=colors[0], foreground=colors[16], padding=0, fontsize=37 ), # ----- Caja de Widgets ----- widget.WidgetBox( background = colors[16], text_closed = '🞀 ', text_open = '🞂', fontsize = 15, widgets=[ # ----- Texto (inicio de Temperatura PC) ----- widget.TextBox( text='', background=colors[16], foreground=colors[16], padding=0, fontsize=37 ), # ----- Texto (Icono de Temperatura PC) ----- widget.TextBox( text=" 🌡", padding=2, foreground=colors[2], background=colors[16], fontsize=11 ), # ----- Temperatura PC ----- widget.ThermalSensor( foreground=colors[2], background=colors[16], threshold=90, padding=5 ), # ----- Texto (inicio Actualizaciones) ----- widget.TextBox( text='', background=colors[16], foreground=colors[17], padding=0, fontsize=37 ), # ----- Texto (Icono de Actualizaciones) ----- widget.TextBox( text=" ⟳", padding=2, foreground=colors[2], background=colors[17], fontsize=14 ), # ----- Actualizaciones ----- widget.CheckUpdates( update_interval=900, distro="Arch", background=colors[17], foreground=colors[2], #colour_have_updates=colors[3], # #colour_no_updates=colors[2], display_format="{updates} Updates", #mouse_callbacks = {'Button1': lambda: qtile.cmd_spawn(terminal + '-e sudo pacman -Syu')} execute="terminator -x sudo pacman -Syyu" ), # ----- Texto (inicio de Red Cableada) ----- widget.TextBox( text='', background=colors[17], foreground=colors[16], padding=0, fontsize=37 ), # ----- Red Cableada ----- widget.Net( interface="eno1", format='{down} ↓↑ {up}', foreground=colors[2], background=colors[16], #padding = 5 ), ] ), # ----- Texto (inicio Iconos Layout) ----- widget.TextBox( text='', background=colors[16], foreground=colors[17], padding=0, fontsize=37 ), # ----- Iconos Layout ----- widget.CurrentLayoutIcon( custom_icon_paths=[os.path.expanduser("~/.config/qtile/icons")], foreground=colors[0], background=colors[17], padding=0, scale=0.7 ), # ----- Layouts ----- widget.CurrentLayout( foreground=colors[2], background=colors[17], padding=5 ), # ----- Texto (inicio de Volumen) ----- widget.TextBox( text='', background=colors[17], foreground=colors[16], padding=0, fontsize=37 ), # ----- Texto (Icono de Volumen) ----- widget.TextBox( text=" Vol:", foreground=colors[2], background=colors[16], padding=0 ), # ----- Volumen ----- widget.Volume( foreground=colors[2], background=colors[16], padding=5 ), # ----- Texto (inicio de Brillo) ----- widget.TextBox( text='', background=colors[16], foreground=colors[17], padding=0, fontsize=37 ), # ----- Texto (Icono de Brillo) ----- widget.TextBox( text="☀", foreground=colors[2], background=colors[17], padding=0, fontsize=18 ), # ----- Brillo ----- widget.Backlight( backlight_name = 'intel_backlight', brightness_file = '/sys/class/backlight/intel_backlight/brightness', foreground=colors[2], background=colors[17], padding=5 ), # ----- WLAN ----- #widget.Wlan( # interface="wlan0", # format='I:{essid} S:{percent:2.0%}', # foreground=colors[2], # background=colors[17], # padding=0 #), # ----- Texto (inicio de Bandeja del Sistema) ----- widget.TextBox( text='', background=colors[17], foreground=colors[16], padding=0, fontsize=37 ), # ----- Bandeja del Sistema ----- widget.Systray( background=colors[16], padding=10 ), # ----- Texto (inicio del Reloj y Fecha) ----- widget.TextBox( text='', background=colors[16], foreground=colors[17], padding=0, fontsize=37 ), # ----- Texto (Reloj y Fecha) ----- widget.Clock( foreground=colors[2], background=colors[17], format="%a, %x - %X" ), ] return widgets_list
text_closed=fa.icons['dragon'], text_open=fa.icons['docker'], ), widget.Spacer(length=bar.STRETCH), widget.TextBox( text="\uf0d9", fontsize=37, padding=0, foreground=colors[1], background="#00000000", ), widget.Backlight( font='Font Awesome 6 Free', backlight_name='intel_backlight', brightness_file='brightness', fmt=fa.icons['sun'] + ' {}', padding=5, foreground=blanco, background=colors[1], ), widget.TextBox( text="\uf0d9", fontsize=37, padding=0, foreground=colors[6], background=colors[1], ), widget.ThermalSensor( font='Font Awesome 6 Free', foreground=negro, padding=5,
# 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'), icon(bg="dark", fg="light", fontsize=17, text='墳 '), widget.PulseVolume( background=colors['dark'], limit_max_volume=True, ), icon(bg="dark", fg="light", fontsize=15, text=' '), widget.Backlight( backlight_name='intel_backlight', background=colors['dark'], ), widget.KeyboardLayout(**base(bg='dark', fg='light'), padding=10, configured_keyboards=['latam', 'us']), widget.Battery( **base(bg='dark', fg='light'), format='{char}{percent:2.0%} ', charge_char='↑', discharge_char='↓', ), widget.Systray(background=colors['dark'], padding=5), ] secondary_widgets = [ *workspaces(),
def my_widgets3(): return [ widget.GroupBox( active = colors_custom[7], background = colors_standard[5], borderwidth = 4, font = 'Sans Mono Bold', fontsize = 12, highlight_color = colors_standard[6], highlight_method = 'line', inactive = colors_custom[6], margin_x = 0, margin_y = 4, other_current_screen_border = colors_standard[1], other_screen_border = colors_standard[1], padding_x = 3, padding_y = 5, rounded = False, this_current_screen_border = colors_custom[6], this_screen_border = colors_standard[6], use_mouse_wheel = False ), my_sep(b=colors_custom[0]), widget.Prompt( background = colors_custom[0], font = 'SourceCodePro', fontsize = 16, foreground = colors_custom[7], prompt = ': ' ), widget.Spacer(bar.STRETCH, background=colors_custom[0]), widget.Systray( background = colors_custom[0], icon_size = 20, padding = 2 ), my_sep(b=colors_custom[0], p=5), my_sep(b=colors_standard[5], p=10), widget.TextBox( foreground = colors_custom[4], mouse_callbacks = { 'Button1': nm_applet, 'Button3': close_nm_applet, }, padding = 0, text = 'Wifi: ' ), widget.Wlan( foreground = colors_custom[7], format = '{essid}', interface = 'wlp1s0', mouse_callbacks = { 'Button1': nm_applet, 'Button3': close_nm_applet, }, padding = 0 ), widget.TextBox( fontsize = 16, foreground = colors_custom[4], padding = 0, text = ' Brightness: ' ), widget.Backlight( backlight_name = 'intel_backlight', foreground = colors_custom[7], format = '{percent:2.0%}', padding = 0 ), widget.TextBox( fontsize = 16, foreground = colors_custom[4], padding = 0, text = ' Volume: ' ), widget.Volume( foreground = colors_custom[7], volume_app = 'alsamixer', update_interval = 0.1 ), widget.TextBox( fontsize = 16, foreground = colors_custom[4], padding = 0, text = ' Battery: ' ), widget.Battery( foreground = colors_custom[7], format = '{percent:2.0%}', fontsize = 16, low_percentage = 0.21, padding = 0, show_short_text = False, update_interval = 1, ), my_sep(b=colors_standard[5], p=10), my_sep(b=colors_custom[6], p=10), widget.Clock( background = colors_custom[6], foreground = colors_custom[0], format = '%a, %b %d (%Y) %H:%M ', padding = 0 ), widget.CurrentLayoutIcon( # custom_icon_paths = [ os.path.join(qtile_root, 'icons_cyan_outline/') ], foreground = '#000000', padding = 0, scale = 0.5 ), ]
foreground=theme['fg']), widget.Sep(), widget.CPUGraph(**graph_defaults), widget.MemoryGraph( graph_color="0ae855", fill_color="0bffa3.3", **graph_defaults), widget.NetGraph( graph_color="b2a400", fill_color="fff36c.3", **graph_defaults), widget.GenPollUrl( url='http://sandia.local:2017/pango/', json=False, update_interval=5, parse=lambda r: r, markup=True, ), widget.Sep(), widget.Backlight(backlight_name='intel_backlight'), widget.Sep(), widget.Battery(battery_name='BAT0'), widget.BatteryIcon(battery_name='BAT0'), widget.Battery(battery_name='BAT1'), widget.BatteryIcon(battery_name='BAT1'), ], 30, ), ), Screen(top=bar.Bar( [ widget.WindowName(fontsize=12, padding=5, foreground=theme['fg']), widget.GroupBox(), widget.Sep(), widget.Prompt(), ],
theme_path=TELA_ICONS+"24/panel/", background=colors["battery_bg"], mouse_callbacks={ 'Button4': lambda qtile: qtile.cmd_spawn('xbacklight -inc 10'), 'Button5': lambda qtile: qtile.cmd_spawn('xbacklight -dec 10'), }, update_interval=1 ), widget.Backlight( backlight_name="intel_backlight", brightness_file="brightness", max_brightness_file="max_brightness", # fmt="{0} ", format='{percent:2.0%}', background=colors["battery_bg"], step=10, # change_command='xbacklight -set {0}', change_command="xbacklight -set {0}", update_interval=0.2, # mouse_callbacks={ # 'Button4': lambda qtile: qtile.cmd_spawn('xbacklight -inc 10'), # 'Button5': lambda qtile: qtile.cmd_spawn('xbacklight -dec 10'), # } ), widget.TextBox( **separator_defaults, text=sep, foreground=colors["sep"], background=colors["battery_bg"], ), widget.Volume( step=5,
scale=0.65, foreground=colorsc[0] ), widget.CurrentLayout( # [6] --> Layout name background=colorsc[1], foreground=colorsc[0], ), widget.Volume( # [7] --> Volume percentage background=colorsc[4], format='{percent: 2.0%}', foreground=colorsc[0], volume_app="alsamixer" ), widget.Backlight( # [8] --> Brightness percentage background=colorsc[3], backlight_name='intel_backlight', format='{percent: 2.0%}', foreground=colorsc[0] ), widget.Battery( # [9] --> Battery percentage background=colorsc[2], format='{char} {percent:2.0%}', foreground=colorsc[0], charge_char=' ', empty_char=' ', full_char=' ', discharge_char='', low_foreground=colorsc[1], update_interval=5, show_short_text=False ), widget.CapsNumLockIndicator( # [10] --> Caps/Num indicator
tag_sensor = "Package id 0" ), widget.Image( filename = '/home/black/.config/qtile/src/sep/i5.png', background = "#212B30", margin = 0 ), widget.Prompt(background = "#212B30"), widget.WindowName(background = "#212B30"), widget.Image( filename = '/home/black/.config/qtile/src/sep/i6.png', background = "#263035", margin = 0 ), widget.Backlight( backlight_name='intel_backlight', background = "#263035" ), widget.Image( filename = '/home/black/.config/qtile/src/sep/i5.png', background = "#2B353A", margin = 0 ), widget.Volume( background = "#2B353A" ), widget.Image( filename = '/home/black/.config/qtile/src/sep/i4.png', background = "#303A3F", margin = 0 ), widget.Wlan(
}, _t_factory={ 'background': 'KBLayout.bg', 'foreground': 'KBLayout.fg' }), PwrLine(rtl=True, fontsize=N_BAR_HEIGHT, _t_factory={ 'left_color': 'KBLayout.bg', 'right_color': 'Trailer.bg' }), w.Backlight(name='internal_brightness_indicator', change_command='light -S {0}', fmt='{}', format='{percent:2.0%}', backlight_name='intel_backlight', update_interval=30, _t_factory={ 'foreground': 'Trailer.fg', 'background': 'Trailer.bg' }), w.Battery( notify_below=30, charge_char='↑', discharge_char='↓', error_message='⚠', hide_threshold=0.99, low_percentage=0.15, markup=True, fontsize=10, update_delay=30, format=('<b>{char}{percent:2.0%}\n{hour:d}:{min:02d}</b>'),
widget.TextBox( text="|", background=bar_colors["black"], padding=2, ), widget.TextBox( text="", foreground=bar_colors["purple"], background=bar_colors["black"], padding=6, ), widget.Backlight( format='{percent:0.0%}', backlight_name='intel_backlight', brightness_file='actual_brightness', max_brightness_file='max_brightness', foreground=bar_colors["purple"], background=bar_colors["black"], padding=2, update_interval=5, ), widget.TextBox( text="", foreground=bar_colors["purple"], background=bar_colors["black"], padding=2, ), widget.Volume( foreground=bar_colors["purple"], background=bar_colors["black"], padding=2, update_interval=5,
widget.Chord( chords_colors={ 'launch': ("#ffff00", "#ffffff"), }, name_transform=lambda name: name.upper(), ), widget.Sep(foreground='4B0082'), widget.Notify(), widget.PulseVolume(fmt='🔊 {}'), widget.KeyboardLayout( fmt='⌨️ {}', configured_keyboards=['us altgr-intl', 'latam'], option='grp:win_space_toggle'), widget.Battery(format='🔋 {char} {percent:2.0%}'), widget.Backlight(fmt='💡 {}', backlight_name='nv_backlight', change_command='light -S {0}'), widget.Net(interface="wlo1", format='📶 {down} 🠃🠁 {up}'), widget.Systray(), widget.Clock(format='🗓️ %a %d-%m-%Y 🕦 %I:%M %p'), ], 24, ), ), ] # Drag floating layouts. mouse = [ Drag([mod], "Button1", lazy.window.set_position_floating(), start=lazy.window.get_position()),
def make_widgets(): top_widgets = [ left_corner(**colorset1), widget.CurrentScreen(active_color=colors['magenta'], inactive_color=colors['BGbase'], inactive_text='N', **colorset2), right_corner(**colorset1), separator(), left_corner(**colorset1), widget.CurrentLayout(fmt='{:.3}', **colorset2), right_corner(**colorset1), separator(), left_corner(**colorset4), widget.GroupBox(this_current_screen_border=colors['cyan'], borderwidth=BORDERWIDTH, **colorset3, active=colors['white']), right_corner(**colorset4), ] if not laptop: top_widgets += [ separator(), left_corner(**colorset1), widget.CPU(format=' {load_percent:0=4.1f}%', **colorset2), right_corner(**colorset1), widget.Memory(format=' {MemUsed:0=4.1f}{mm}/{MemTotal: .1f}{mm}', measure_mem='G', measure_swap='G', **colorset1), right_corner(**colorset2), widget.DF(format=" {uf}{m}/{s}{m} ({r:.0f}%)", visible_on_warn=False, partition='/home', **colorset2), right_corner(**colorset1), ] top_widgets += [ separator(), widget.Chord(**colorset6), widget.Spacer(), left_corner(**colorset1), widget.Clock(format='%Y-%m-%d %a %H:%M:%S', **colorset2), right_corner(**colorset1), ] if laptop: top_widgets += [widget.Spacer()] else: top_widgets += [ separator(), left_corner(**colorset4), widget.TaskList(border=colors['BGbase'], borderwidth=BORDERWIDTH, max_title_width=120, **colorset3), right_corner(**colorset4), separator() ] top_widgets += [ left_corner(**colorset1), widget.Net(format='{down} ↓↑ {up}', **colorset2), right_corner(**colorset1), widget.PulseVolume(fmt=' {}', limit_max_volume=True, volume_app='pavucontrol', update_interval=0.1, **colorset1), right_corner(**colorset2), ] if laptop: backlight = list(Path('/sys/class/backlight/').glob('*')) top_widgets += [ widget.Backlight(fmt=' {}', backlight_name=backlight[0], **colorset2), right_corner(**colorset1), widget.Battery(format='{char} {percent:2.0%}', charge_char='', discharge_char='', empty_char='', **colorset1), right_corner(**colorset2), ] top_widgets += [ widget.CheckUpdates(display_format=' {updates}', distro='Arch_checkupdates', colour_have_updates=colors['magenta'], colour_no_updates=colors['BGbase'], update_interval=60 * 60, no_update_string=' 0', **colorset2), right_corner(**colorset1) ] if laptop: bottom_bar = bar.Bar( [ separator(), left_corner(**colorset7), widget.CPU(format=' {load_percent:0=4.1f}%', **colorset2), right_corner(**colorset1), widget.Memory( format=' {MemUsed:0=4.1f}{mm}/{MemTotal: .1f}{mm}', measure_mem='G', measure_swap='G', **colorset1), right_corner(**colorset2), widget.DF(format=" {uf}{m}/{s}{m} ({r:.0f}%)", visible_on_warn=False, partition='/home', **colorset2), right_corner(**colorset7), widget.Spacer(), left_corner(**colorset5), widget.TaskList(border=colors['cyan'], borderwidth=BORDERWIDTH, max_title_width=120, **colorset6), right_corner(**colorset5), widget.Spacer(), ], font_size, background=colors['clear'], border_color=colors['cyan'], opacity=1, ) else: bottom_bar = None return top_widgets, bottom_bar
Screen( bottom=bar.Bar( [ widget.GroupBox(font='tewi', fontsize=10, borderwidth=1, padding=1.5), widget.Prompt(font='tewi', fontsize=10), widget.WindowName(font='tewi', fontsize=10), # widget.TextBox("default config", name="default"), widget.Systray(icon_size=12), # widget.Volume(), # widget.Wlan(interface='wlp7s0'), # widget.Sep(), # widget.LaunchBar(progs=('logout', 'qshell:self.qtile.cmd_shutdown', 'logout from qtile')), widget.TextBox(text='%s'%(subprocess.check_output(['mpc', 'current']))[:-1], font='tewi', fontsize=10), widget.Sep(size_percent=70), # widget.Image(filename='/home/jordan/.icons/sun.png'), widget.Backlight(backlight_name='intel_backlight', brightness_file='brightness', font='tewi', fontsize=10), widget.Sep(size_percent=70), widget.BatteryIcon(), widget.Battery(font='tewi', fontsize=10), widget.Sep(size_percent=70), widget.Clock(format='%m-%d %a %I:%M %p', font='tewi', fontsize=10), ], 18, ), ), ] # Drag floating layouts. mouse = [ Drag([mod], "Button1", lazy.window.set_position_floating(), start=lazy.window.get_position()),
widget.TextBox('🔋', padding=0, fontsize=fontsize), widget.Battery(foreground=colors[2]), widget.Sep(linewidth=0, padding=padding), widget.TextBox('📢', padding=0, fontsize=fontsize), widget.PulseVolume(foreground=colors[3]), widget.Sep(linewidth=0, padding=padding), widget.Sep(linewidth=0, padding=padding), widget.TextBox('💻', padding=0, fontsize=fontsize), widget.CPU(foreground=colors[1]), widget.Sep(linewidth=0, padding=padding), widget.TextBox( ' 🖬', padding=0, fontsize=fontsize, foreground=colors[7]), widget.Memory(foreground=colors[7]), widget.Sep(linewidth=0, padding=padding), widget.TextBox('🔅', padding=0, fontsize=fontsize), widget.Backlight(backlight_name='intel_backlight', foreground=colors[0]), widget.Sep(linewidth=0, padding=padding), widget.TextBox('📶', padding=0, fontsize=fontsize), widget.Wlan(interface="wlp44s0", foreground=colors[4]), widget.Sep(linewidth=0, padding=padding), widget.TextBox('🚄', padding=0, fontsize=fontsize), widget.Net(interface="wlp44s0", format='{down} ↓↑ {up}', foreground=colors[5]), widget.Sep(linewidth=0, padding=padding), widget.TextBox('📅 ', padding=0, fontsize=fontsize), widget.Clock(format='%d-%m-%Y %a %I:%M %p', foreground=colors[3]), widget.Sep(linewidth=1, padding=padding), widget.Systray(), ], 24,
), widget.Battery( background=color_main, format='{percent:2.0%}', ), widget.TextBox( text = ' ', background = color_main, padding = 0, fontsize = 14, mouse_callbacks={'Button1': lambda: qtile.cmd_spawn("xbacklight = 1")}, ), widget.Backlight( background=color_main, brightness_file='/sys/class/backlight/intel_backlight/brightness', max_brightness_file='/sys/class/backlight/intel_backlight/max_brightness', mouse_callbacks={'Button1': lambda: qtile.cmd_spawn("xbacklight = 1")}, update_interval=2, ), widget.TextBox( text = ' ', background = color_main, padding = 0, fontsize = 14, mouse_callbacks={'Button1': lambda: qtile.cmd_spawn("tilix -e alsamixer -V all")}, ), widget.Volume( background=color_main, step=1, update_interval=.5, mouse_callbacks={'Button1': lambda: qtile.cmd_spawn("tilix -e alsamixer -V all")},
urgent_border=colors[2], urgent_text=colors[3]), widget.Sep(linewidth=0, padding=7, foreground=colors[1], background=colors[0]), widget.WindowName( foreground=colors[6], background=colors[0], padding=0), widget.TextBox( foreground=colors[2], background=colors[0], text="BRIGHTNESS ", ), widget.Backlight( foreground=colors[2], background=colors[0], backlight_name="intel_backlight", ), widget.Sep(linewidth=0, padding=15, foreground=colors[2], background=colors[0]), widget.Volume( fmt=" {}", emoji=True, foreground=colors[2], background=colors[0], ), widget.Volume( foreground=colors[2], background=colors[0],
margin_x=3 ), widget.Volume( step=5, foreground="#ff6663", mouse_callbacks={'Button2': lambda: qtile.cmd_spawn("pavucontrol")}, ), widget.Image( filename="~/.config/qtile/icons/icon-brightness.png", margin_y=6, margin_x=3 ), widget.Backlight( backlight_name="intel_backlight", update_interval=0.5, step=5, foreground="#FEB144", mouse_callbacks={'Button1': lambda: qtile.cmd_spawn("xbacklight -set 100")} ), widget.Image( filename="~/.config/qtile/icons/icon-battery.png", margin_y=6, margin_x=3 ), widget.Battery( charge_char='+', discharge_char='', full_char='+', format='{char}{percent:1.0%}', show_short_text=False, update_interval=1,
**style), widget.Battery(battery_name=battery, foreground=base16_chalk["magenta"], format="{percent:2.0%}", low_foreground=colors["red"], **style), widget.Sep(**sep), # Light widget.TextBox(text=icons["light"], foreground=base16_chalk["blue"], **style), widget.Backlight( brightness_file= "/sys/class/backlight/intel_backlight/actual_brightness", max_brightness_file= "/sys/class/backlight/intel_backlight/max_brightness", foreground=base16_chalk["blue"], **style), widget.Sep(**sep), # Volume widget.TextBox(text=icons["volume"], foreground=base16_chalk["green"], **style), widget.Volume(get_volume_command=vol_cur.split(), foreground=base16_chalk["green"], **style), widget.Sep(**sep), # Unread news count
def init_widgets_list(): prompt = "{0}@{1}: ".format(os.environ["USER"], socket.gethostname()) widgets_list = [ widget.GroupBox(font="FontAwesome", fontsize=12, margin_y=-1, margin_x=0, padding_y=6, padding_x=5, borderwidth=0, disable_drag=True, active=colors[9], inactive=colors[5], rounded=False, highlight_method="text", this_current_screen_border=colors[8], foreground=colors[2], background=colors[1]), widget.Sep(linewidth=1, padding=10, foreground=colors[2], background=colors[1]), widget.CurrentLayout(font="Noto Sans Bold", foreground=colors[5], background=colors[1]), widget.Sep(linewidth=1, padding=10, foreground=colors[2], background=colors[1]), # widget.WindowName(font="Noto Sans", # fontsize = 12, # foreground = colors[5], # background = colors[1], # ), # widget.Net( # font="Noto Sans", # fontsize=12, # interface="enp0s25", # foreground=colors[2], # background=colors[1], # padding = 0, # ), # widget.Sep( # linewidth = 1, # padding = 10, # foreground = colors[2], # background = colors[1] # ), # widget.NetGraph( # font="Noto Sans", # fontsize=12, # bandwidth="down", # interface="auto", # fill_color = colors[8], # foreground=colors[2], # background=colors[1], # graph_color = colors[8], # border_color = colors[2], # padding = 0, # border_width = 1, # line_width = 1, # ), # widget.Sep( # linewidth = 1, # padding = 10, # foreground = colors[2], # background = colors[1] # ), # # do not activate in Virtualbox - will break qtile # widget.ThermalSensor( # foreground = colors[5], # foreground_alert = colors[6], # background = colors[1], # metric = True, # padding = 3, # threshold = 80 # ), widget.TaskList( font="Noto Sans Bold", borderwidth=1, margin=3, padding=4, ), widget.TextBox(font="FontAwesome", text=" ", foreground=colors[3], background=colors[1], padding=0, fontsize=16), widget.DF( warn_space=10, measure='G', format=' {p}:{uf}{m}', update_interval=60, visible_on_warn=False, foreground=colors[5], partition="/", background=colors[1], ), widget.TextBox(font="FontAwesome", text=" ", foreground=colors[4], background=colors[1], padding=0, fontsize=16), widget.DF( warn_space=10, visible_on_warn=False, measure='G', format=' {p}:{uf}{m}', update_interval=60, foreground=colors[5], partition="/f", background=colors[1], ), widget.Sep(linewidth=1, padding=10, foreground=colors[2], background=colors[1]), widget.TextBox(font="FontAwesome", text=" ", foreground=colors[4], background=colors[1], padding=0, fontsize=16), widget.Memory( font="Noto Sans", format='{MemPercent}%', update_interval=1, fontsize=12, foreground=colors[5], background=colors[1], ), widget.Sep(linewidth=1, padding=10, foreground=colors[2], background=colors[1]), widget.TextBox(font="FontAwesome", text=" ", foreground=colors[6], background=colors[1], padding=0, fontsize=16), widget.CPU(format='{load_percent}%'), # widget.CPUGraph( # border_color = colors[2], # #fill_color = colors[1], # #graph_color = colors[5], # background= colors[1], # border_width = 1, # line_width = 1, # core = "all", # type = "box" # ), widget.Sep(linewidth=1, padding=10, foreground=colors[2], background=colors[1]), widget.TextBox(font="FontAwesome", text=" ", foreground=colors[4], background=colors[1], padding=0, fontsize=16), widget.Backlight( backlight_name='intel_backlight', brightness_file='/sys/class/backlight/intel_backlight/brightness', foreground=colors[5], background=colors[1], ), widget.Sep(linewidth=1, padding=10, foreground=colors[2], background=colors[1]), widget.TextBox(font="FontAwesome", text=" ", foreground=colors[3], background=colors[1], padding=0, fontsize=16), widget.Volume(), widget.Sep(linewidth=1, padding=10, foreground=colors[2], background=colors[1]), # battery option 2 from Qtile widget.Battery( font="Noto Sans", update_interval=10, fontsize=12, foreground=colors[5], background=colors[1], format="{char} {percent:2.0%} {hour:d}:{min:02d}", ), # # battery option 1 ArcoLinux Horizontal icons do not forget to import # # arcobattery at the top arcobattery.BatteryIcon(padding=0, scale=0.7, y_poss=2, theme_path=home + "/.config/qtile/icons/battery_icons_horiz", update_interval=5, background=colors[1]), widget.Sep(linewidth=1, padding=10, foreground=colors[2], background=colors[1]), widget.TextBox(font="FontAwesome", text=" ", foreground=colors[3], background=colors[1], padding=0, fontsize=16), widget.Clock(foreground=colors[5], background=colors[1], fontsize=12, format="%Y-%m-%d %H:%M"), widget.Sep(linewidth=0, padding=10, foreground=colors[2], background=colors[1]), widget.Systray(background=colors[1], icon_size=20, padding=4), ] return widgets_list
), ] if IS_LAPTOP: widget_list += [ widget.Battery(background=theme.cursor, foreground=theme.color0, format='{char} {percent:2.0%} {hour:d}:{min:02d}', charge_char='', discharge_char='', full_char=''), make_icon("", background=theme.color11, foreground=theme.inactive_tab_foreground), widget.Backlight( background=theme.color11, foreground=theme.color0, brightness_file='/sys/class/backlight/intel_backlight/brightness', max_brightness_file= '/sys/class/backlight/intel_backlight/max_brightness'), ] widget_list += [ make_icon("", background=theme.color2, foreground=theme.inactive_tab_foreground), widget.Wlan(background=theme.color2, foreground=theme.color0), widget.Sep(**sep_args, background=theme.color4), # make_sep_icon(), MyVolume(fontsize="25", background=theme.color4, foreground=theme.color0), widget.Sep(**sep_args, background=theme.color5), # make_sep_icon(), make_icon("", background=theme.color5, foreground=theme.inactive_tab_foreground),
def my_widgets(): return [ widget.TextBox( background = colors_standard[1], fontsize = 16, foreground = colors_custom[1], mouse_callbacks = { 'Button1': xmenu, 'Button3': xmenu }, padding = 10, text = '\U0000F111 ' ), widget.GroupBox( active = colors_custom[7], background = colors_standard[1], borderwidth = 4, font = 'Sans Mono Bold', fontsize = 12, foreground = colors_standard[3], highlight_color = colors_standard[2], highlight_method = 'block', inactive = colors_custom[8], margin_x = 0, margin_y = 3, other_current_screen_border = colors_standard[1], other_screen_border = colors_standard[1], padding_x = 3, padding_y = 5, rounded = False, this_current_screen_border = colors_custom[9], this_screen_border = colors_custom[13], use_mouse_wheel = False ), my_sep(), widget.Prompt( font = 'SourceCodePro', fontsize = 16, foreground = colors_custom[7], prompt = ': ' ), widget.Spacer(bar.STRETCH), my_sep(), widget.TextBox( background = colors_standard[1], fontsize = 35, foreground = colors_custom[1], padding = 0, text = '\U0000E0B2' ), widget.TextBox( background = colors_custom[1], font = 'Icons', fontsize = 16, foreground = '#000000', padding = 0, text = '\U0000F109 ' ), widget.Memory( background = colors_custom[1], foreground = '#000000', format = 'RAM: {MemPercent}%', padding = 0, update_interval = 1 ), widget.CPU( background = colors_custom[1], foreground = '#000000', format = ' | CPU: {load_percent}%', padding = 0, update_interval = 1 ), my_sep(b=colors_custom[1], p=15), widget.TextBox( background = colors_custom[1], fontsize = 35, foreground = colors_custom[6], padding = 0, text = '\U0000E0B2' ), widget.CurrentLayoutIcon( background = colors_custom[6], custom_icon_paths = [ os.path.join(qtile_root, 'icons_black_outline/') ], foreground = '#000000', padding = 0, scale = 0.5 ), widget.CurrentLayout( background = colors_custom[6], foreground = '#000000', padding = 2 ), my_sep(b=colors_custom[6], p=10), widget.TextBox( background = colors_custom[6], fontsize = 35, foreground = colors_custom[5], padding = 0, text = '\U0000E0B2' ), widget.TextBox( background = colors_custom[5], font = 'Icons', fontsize = 14, foreground = '#000000', mouse_callbacks = { 'Button1': nm_applet, 'Button3': close_nm_applet, }, padding = 0, text = '\U0000F09E ' ), widget.Wlan( background = colors_custom[5], foreground = '#000000', format = '{essid}', interface = 'wlp1s0', mouse_callbacks = { 'Button1': nm_applet, 'Button3': close_nm_applet, }, padding = 0 ), my_sep(b=colors_custom[5], p=10), widget.TextBox( background = colors_custom[5], fontsize = 35, foreground = colors_custom[2], padding = 0, text = '\U0000E0B2' ), widget.TextBox( background = colors_custom[2], font = 'Icons', fontsize = 20, foreground = '#000000', padding = 0, text = '\U0000F2E4' ), widget.Backlight( background = colors_custom[2], backlight_name = 'intel_backlight', foreground = '#000000', format = '{percent:2.0%}', padding = 5 ), widget.TextBox( background = colors_custom[2], fontsize = 16, foreground = '#000000', padding = 5, text = '|' ), widget.TextBox( background = colors_custom[2], fontsize = 16, foreground = '#000000', padding = 5, text = '\U0000F028 ' ), widget.Volume( background = colors_custom[2], foreground = '#000000', volume_app = 'alsamixer', update_interval = 0.1 ), widget.TextBox( background = colors_custom[2], fontsize = 16, foreground = '#000000', padding = 0, text = ' | ' ), widget.Battery( background = colors_custom[2], charge_char = '\U0000F583', discharge_char = '\U0000F57E', empty_char = '\U0000F58D', foreground = '#000000', format = '{char} {percent:2.0%}', fontsize = 16, full_char = '\U0000F578', low_percentage = 0.21, padding = 0, show_short_text = False, update_interval = 1, unknown_char = '\U0000F590' ), my_sep(b=colors_custom[2], p=10), widget.TextBox( background = colors_custom[2], fontsize = 35, foreground = colors_custom[3], padding = 0, text = '\U0000E0B2' ), widget.TextBox( background = colors_custom[3], fontsize = 16, foreground = '#000000', padding = 2, text = '\U0000F5ED ' ), widget.Clock( background = colors_custom[3], foreground = '#000000', format = '%a, %b %d - %Y', padding = 0 ), widget.TextBox( background = colors_custom[3], fontsize = 16, foreground = '#000000', padding = 0, text = ' | ' ), widget.TextBox( background = colors_custom[3], fontsize = 16, foreground = '#000000', padding = 0, text = '\U0000E384 ' ), widget.Clock( background = colors_custom[3], foreground = '#000000', format = '%H:%M', padding = 5 ), my_sep(b=colors_custom[3], p=5), ]
# Key([mod, "shift"], group.name, lazy.window.togroup(group.name), # desc="move focused window to group {}".format(group.name)), ]) ################################################################################ # Setup Screens # Will automatically detect the number of attached monitors and add a screen for each ################################################################################ num_monitors = get_num_monitors() # Check if backlight is available backlight_dir = os.listdir('/sys/class/backlight/') if len(backlight_dir) == 0: backlight_widget = widget.TextBox('') else: backlight_widget = widget.Backlight(backlight_name=backlight_dir[0], format='Backlight: {percent: 2.0%}') for m in range(num_monitors): # 10 Groups are created initially. However the bar is set only to show occupied groups. # Consequently, <num_monitors> groups are shown. # To simulate i3-like workspaces, for each screen, one group is set to be displayed. #groups_on_screens[str(m+1)] = (m, False) # Groups start at index 1, screens at index 0 screens.append( Screen(top=bar.Bar( [ widget.CurrentLayout(width=60), widget.GroupBox(hide_unused=True), widget.Sep(padding=5), widget.TaskList(), widget.Prompt(),
widget.WindowCount( background=widget_background, foreground=widget_foreground, font='SpaceMono Nerd Font' ), mid_sep, widget.Spacer( background=widget_background, ), mid_sep, widget.Backlight( brightness_file="/sys/class/backlight/intel_backlight/brightness", max_brightness_file="/sys/class/backlight/intel_backlight/"\ "max_brightness", step=2, padding=5, font='SpaceMono Nerd Font', background=widget_background, foreground=widget_foreground, format=' {percent:2.0%}' ), mid_sep, # widget.PulseVolume( # background=widget_background, # foreground=widget_foreground, # # theme_path='/usr/share/icons/Papirus-Dark/22x22/panel/', # emoji=True, # font='SpaceMono Nerd Font', # padding=2, # update_interval=0.1 # ),
# Current window name. widget.Battery( energy_now_file='charge_now', energy_full_file='charge_full', power_now_file='current_now', update_delay=5, foreground="7070ff", ), widget.sep.Sep(foreground='7b5830'), widget.windowtabs.WindowTabs(), widget.CurrentLayout(foreground='7b5830'), widget.sep.Sep(foreground='7b5830'), #NetworkStatus(theme_path='/home/deewakar/.config/qtile/icons/'), widget.Volume( theme_path='/usr/share/icons/AwOkenWhite/clear/24x24/status/'), widget.Backlight(foreground="ff3300"), widget.sep.Sep(foreground='7b5830'), widget.Systray(), #widget.Clock('%H:%M', foreground='00ff00'), widget.sep.Sep(foreground='7b5830'), #Ping(word='ping',foreground="7070ff"), #Ping(word='mem',foreground="7070ff"), #Ping(word='cpu',foreground="7070ff"), widget.sep.Sep(foreground='7b5830'), #Wlan(foreground="ff3300") ], 22, opacity=0.1)), Screen(top=bar.Bar( [ widget.GroupBox(urgent_alert_method='text',
) primary_screen = Screen( bottom=bar.Bar( [ widget.GroupBox( disable_drag=True, ), widget.Prompt(), widget.WindowName(fontsize=12), widget.Sep(), widget.Backlight( foreground='1d1f21', initial_background='f1ce4f', background='f1ce4f', backlight_name="intel_backlight", brightness_file='brightness', update_interval=0.1, format='{percent: 2.0%} ' ), widget.Sep(), widget.Volume(emoji=False), widget.Volume(emoji=True), widget.Sep(), widget.TextBox(text=""), widget.Pacman(), widget.TextBox(text="Updates Available"), widget.Sep(), widget.TextBox( text='', foreground='f44165'
**color_scheme, ), widget.Volume(**widget_defaults, **color_scheme, device="sysdefault", format='[{percent:2.0%}] '), separator(right_looking=False), # Brightness icon and widget widget.TextBox( u'\ue8cf', **icon_defaults, **color_scheme, ), widget.Backlight(**widget_defaults, **color_scheme, backlight_name='intel_backlight', format='[{percent:2.0%}] '), separator(right_looking=False), # Battery icon and widget widget.TextBox(u'\ue832', **icon_defaults, **color_scheme), widget.Battery(**widget_defaults, **battery_widget_defaults, **color_scheme, battery=0), separator(right_looking=False), # Battery icon and widget widget.TextBox( u'\ue832', **icon_defaults,
Screen(bottom=bar.Bar( [ widget.GroupBox(), widget.Prompt(), widget.WindowName(), widget.Chord( chords_colors={ "launch": ("#ff0000", "#ffffff"), }, name_transform=lambda name: name.upper(), ), widget.Systray(), widget.CurrentLayout(), widget.Clock(format="%Y-%m-%d %a %I:%M %p"), widget.Volume(), widget.Backlight(backlight_name="intel_backlight", ), widget.QuickExit(), ], 24, ), ), ] # Drag floating layouts. mouse = [ Drag( [mod], "Button1", lazy.window.set_position_floating(), start=lazy.window.get_position(), ), Drag([mod],
def get_two_screens(colors): groupbox_defaults = dict( margin_y=3, margin_x=0, padding_y=5, padding_x=7, borderwidth=3, active=colors[2], inactive=colors[7], rounded=False, highlight_color=colors[1], highlight_method="line", this_current_screen_border=colors[6], this_screen_border=colors[4], other_current_screen_border=colors[6], other_screen_border=colors[4], foreground=colors[2], background=colors[0], ) screens = [ Screen( bottom=bar.Bar( [ widget.CurrentLayoutIcon( custom_icon_paths=[ os.path.expanduser("~/.config/qtile/icons") ], foreground=colors[0], background=colors[1], padding=0, scale=0.7, ), widget.Sep( linewidth=0, padding=6, foreground=colors[2], background=colors[0], ), widget.GroupBox( visible_groups=["SYS"], font= "FiraCode Nerd Font", # ? using the font is vital for loading the icon fontsize=15, **groupbox_defaults), widget.GroupBox(visible_groups=["DEV"], font="FiraCode Nerd Font", fontsize=17, **groupbox_defaults), widget.GroupBox(visible_groups=["WWW"], font="Font Awesome 5 Free", fontsize=25, **groupbox_defaults), widget.GroupBox(visible_groups=["DIS"], font="FiraCode Nerd Font", fontsize=16, **groupbox_defaults), widget.GroupBox(visible_groups=["TEAMS"], font="FiraCode Nerd Font", fontsize=17, **groupbox_defaults), widget.GroupBox(visible_groups=["DOC"], font="Font Awesome 5 Free", fontsize=20, **groupbox_defaults), widget.GroupBox(visible_groups=["MUS"], font="Font Awesome 5 Free", fontsize=27, **groupbox_defaults), widget.GroupBox(visible_groups=["VID"], font="Font Awesome 5 Free", fontsize=20, **groupbox_defaults), widget.GroupBox(visible_groups=["VBOX"], font="Font Awesome 5 Free", fontsize=20, **groupbox_defaults), widget.Spacer(10), # WindowName widget.WindowName( format=" {name}", max_chars=80, background=colors[0], foreground=colors[6], ), widget.Chord( chords_colors={ "launch": ("#0000ff", "#ffffff"), }, name_transform=lambda name: name.upper(), ), widget.Systray( icon_size=16, background=colors[0], padding=5), widget.Spacer(10), # Backlight widget.TextBox( text="", padding=8, foreground=colors[3], fontsize=25), widget.Backlight( foreground=colors[3], change_command="light -S {0}", backlight_name="intel_backlight", ), widget.Spacer(10), widget.CheckUpdates( update_interval=1800, distro="Arch", display_format="{updates} Updates", mouse_callbacks={ "Button1": lambda: qtile.cmd_spawn( "alacritty -e sudo pacman -Syu") }, foreground=colors[3], ), widget.Spacer(10), # Volume widget.TextBox( text="墳", foreground=colors[3], padding=6, fontsize=23), widget.Volume(foreground=colors[3]), widget.Spacer(10), # Time widget.TextBox( text="", fontsize=21, padding=6, foreground=colors[3]), widget.Clock(foreground=colors[3], format="%d-%m-%Y | %a %I:%M %p"), widget.Spacer(10), # CPU widget.TextBox( text="", fontsize=23, padding=8, foreground=colors[3]), widget.CPU(format="{load_percent}%", foreground=colors[3]), widget.Spacer(10), # Battery widget.TextBox(text="", fontsize=14, foreground=colors[3]), widget.Battery( foreground=colors[3], low_foreground="d08770", format="{percent:2.0%}", ), widget.Spacer(10), ], 24, background=colors[0], ), ), Screen( bottom=bar.Bar( [ widget.CurrentLayoutIcon( custom_icon_paths=[ os.path.expanduser("~/.config/qtile/icons") ], foreground=colors[0], background=colors[1], padding=0, scale=0.7, ), widget.Sep( linewidth=0, padding=6, foreground=colors[2], background=colors[0], ), widget.GroupBox( visible_groups=["SYS"], font= "FiraCode Nerd Font", # ? using the font is vital for loading the icon fontsize=15, **groupbox_defaults), widget.GroupBox(visible_groups=["DEV"], font="FiraCode Nerd Font", fontsize=17, **groupbox_defaults), widget.GroupBox(visible_groups=["WWW"], font="Font Awesome 5 Free", fontsize=25, **groupbox_defaults), widget.GroupBox(visible_groups=["DIS"], font="FiraCode Nerd Font", fontsize=16, **groupbox_defaults), widget.GroupBox(visible_groups=["TEAMS"], font="FiraCode Nerd Font", fontsize=17, **groupbox_defaults), widget.GroupBox(visible_groups=["DOC"], font="Font Awesome 5 Free", fontsize=20, **groupbox_defaults), widget.GroupBox(visible_groups=["MUS"], font="Font Awesome 5 Free", fontsize=27, **groupbox_defaults), widget.GroupBox(visible_groups=["VID"], font="Font Awesome 5 Free", fontsize=20, **groupbox_defaults), widget.GroupBox(visible_groups=["VBOX"], font="Font Awesome 5 Free", fontsize=20, **groupbox_defaults), widget.Spacer(10), # WindowName widget.WindowName( format=" {name}", max_chars=80, background=colors[0], foreground=colors[6], ), widget.Chord( chords_colors={ "launch": ("#0000ff", "#ffffff"), }, name_transform=lambda name: name.upper(), ), widget.Systray( icon_size=16, background=colors[0], padding=5), widget.Spacer(10), # Backlight widget.TextBox( text="", padding=8, foreground=colors[3], fontsize=25), widget.Backlight( foreground=colors[3], change_command="light -S {0}", backlight_name="intel_backlight", ), widget.Spacer(10), # Volume widget.TextBox( text="墳", foreground=colors[3], padding=6, fontsize=23), widget.Volume(foreground=colors[3]), widget.Spacer(10), # Time widget.TextBox( text="", fontsize=21, padding=6, foreground=colors[3]), widget.Clock(foreground=colors[3], format="%d-%m-%Y | %a %I:%M %p"), widget.Spacer(10), # CPU widget.TextBox( text="", fontsize=23, padding=8, foreground=colors[3]), widget.CPU(format="{load_percent}%", foreground=colors[3]), widget.Spacer(10), # Battery widget.TextBox(text="", fontsize=14, foreground=colors[3]), widget.Battery( foreground=colors[3], low_foreground="d08770", format="{percent:2.0%}", ), widget.Spacer(10), ], 24, background=colors[0], ), ), ] return screens
] elif os.uname()[1] == 'trailer': screens = [ Screen( bottom=bar.Bar( common_bar_prefix + [ widget.Sep(padding=12, size_percent=80, foreground="504945"), widget.Battery( format='⚡ {percent:2.0%} {hour:d}:{min:02d} {watt:.2f} W'), widget.Sep(padding=12, size_percent=80, foreground="504945"), widget.TextBox("💡:"), widget.Backlight( brightness_file="/sys/class/backlight/intel_backlight/brightness", max_brightness_file="/sys/class/backlight/intel_backlight/max_brightness" ), ] + common_bar_suffix, 24, ), ), ] elif os.uname()[1] == 'camper': screens = [ Screen( bottom=bar.Bar( common_bar_prefix + [ widget.Sep(padding=12, size_percent=80, foreground="504945"), widget.Battery( format='⚡ {percent:2.0%} {hour:d}:{min:02d} {watt:.2f} W'),
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=10, active=colors[3], block_highlight_text_color='#fdfdfd', borderwidth=3, highlight_color='#cbb9b5', highlight_method="block", inactive=colors[2], this_current_screen_border='#a42d3d', this_screen_border=colors[3], other_current_screen_border=colors[0], other_screen_border=colors[3], margin_x=0, margin_y=3, padding_x=3, padding_y=5, rounded=False, foreground=colors[2], background=colors[0] #use_mouse_wheel = False ), widget.Sep(linewidth=0, padding=5, foreground=colors[2], background=colors[0]), widget.WindowName(foreground=colors[2], padding=5), widget.Sep(linewidth=0, padding=10, background=colors[0]), widget.CurrentLayoutIcon( font='Font Awesome 5 Free Solid', custom_icon_paths=[os.path.expanduser("~/.config/qtile/icons")], background=colors[0], foreground=colors[2], padding=0, scale=0.6), widget.CurrentLayout(foreground=colors[2], padding=3), # widget.TextBox( # font = 'Font Awesome 5 Free Solid', # text = '', # background = colors[0], # padding = 2 # ), # widget.Memory( # format = '{MemUsed}M / {MemTotal}M', # interval = 5.0 # ), # widget.TextBox( # font = 'Font Awesome 5 Free Solid', # text = '', # background = colors[0], # padding = 0 # ), # widget.CPU( # format = '{load_percent}%', # update_interval = 5.0, # padding = 2 # ), widget.TextBox(font='Font Awesome 5 Free Solid', text=' ', background=colors[0], padding=0), widget.Net(format='Down: {down} Up: {up}', update_interval=5, foreground=colors[2], padding=3), # widget.TextBox( # font = 'Font Awesome 5 Free Solid', # text = '', # background = colors[0], # padding = 2 # ), # widget.TextBox("Tushar Mohod", name="default"), widget.TextBox(font='Font Awesome 5 Free Solid', text='', background=colors[0], padding=3), widget.Backlight(backlight_name='intel_backlight', format='{percent:2.0%}', foreground=colors[2], step=5, padding=3), widget.TextBox(font='Font Awesome 5 Free Solid', text='', background=colors[0], padding=3), widget.PulseVolume(fmt='{}', padding=3, foreground=colors[2]), widget.TextBox(font='Font Awesome 5 Free Solid', text='', background=colors[0], padding=3), widget.Battery(battery=0, charge_char='Chr', discharge_char='Dis', full_char='Full', unknown_char='Unk', update_interval=5, format='{char} {percent:2.0%}', foreground=colors[2], padding=3), widget.TextBox(font='Font Awesome 5 Free Solid', text='', background=colors[0], padding=3), widget.Clock(format='%a, %b %d', foreground=colors[2]), widget.TextBox(font='Font Awesome 5 Free Solid', text='', background=colors[0], padding=3), widget.Clock(format='%I:%M %p', foreground=colors[2]), widget.Sep(linewidth=0, padding=3, background=colors[0]), # widget.QuickExit(), widget.Systray(background=colors[0], padding=1), widget.Sep(linewidth=0, padding=6, foreground=colors[2], background=colors[0]), ] return widgets_list