def init_bottom_bar_widgets_list(): """ Init bottom bar widgets. """ colors_list = colors.get_colors() widgets = [] prompt = "{0}@{1}: ".format(os.environ["USER"], socket.gethostname()) widgets.append( widget.GroupBox(padding=3, active=colors_list[7][1], inactive=colors_list[6][1])) widgets.append(widget.TaskList()) #widgets.append(widget.WindowTabs()) widgets.append( widget.Prompt( prompt=prompt, font="Ubuntu Mono", padding=10, )) widgets.append(widget.Spacer()) widgets.append(widget.CapsNumLockIndicator()) widgets.append(widget.KeyboardLayout(configured_keyboards=["us", "ir"])) widgets.append(widget.CurrentLayoutIcon(scale=.7)) widgets.append(widget.CurrentLayout(fmt="{:<8}")) widgets.append( widget.TextBox(font="Ubuntu Bold", text=" ♫", padding=5, fontsize=14)) widgets.append(widget.Cmus( max_chars=40, update_interval=0.5, )) return widgets
def wid_bottom_main_screen(): return [ widget.Cmus(play_color=hard_color, noplay_color=soft_color), widget.Sep(linewidth=0), widget.Spacer(), widget.TextBox(text="", fontsize=18), widget.CheckUpdates(update_interval=3600, distro='Arch', display_format='Updates: {updates}', custom_command='checkupdates', no_update_string='N/A'), widget.TextBox(text='', fontsize=18, mouse_callbacks={'Button1': launch_stacer}), widget.CPU(format='CPU: {load_percent}%'), widget.TextBox(text='', fontsize=18, mouse_callbacks={'Button1': launch_htop}), widget.Memory(format='Mem: {MemUsed}M'), widget.TextBox(text='', fontsize=18, mouse_callbacks={'Button1': launch_fe}), widget.DF(format='({uf}{m}|{r:.0f}%)', visible_on_warn=False), widget.TextBox(text='墳', fontsize=18, mouse_callbacks={'Button1': launch_pavucontrol}), widget.PulseVolume(), widget.TextBox(text='', fontsize=18), widget.Backlight(backlight_name='amdgpu_bl0', brightness_file=br_path, max_brightness_file=br_max_path, change_command='brightnessctl set {0}', step=5), ]
def get_top_bar(): return bar.Bar( [ widget.Spacer(length=8), get_groupbox(), # widget.WindowName(font="Noto Sans", fontsize=13), widget.Spacer(), # widget.Notify(), widget.Cmus( noplay_color=colors["black"], play_color=colors["green"], fontsize=10, ), get_line_sep(), widget.TextBox(fmt=fa.icons["monero"], foreground=colors["white"]), widget.GenPollText( func=get_xmr_price, update_interval=60, ), widget.GenPollText( func=get_xmr_btc, update_interval=60, fontsize=10, ), get_line_sep(), widget.TextBox(fmt=fa.icons["bitcoin"], foreground=colors["white"]), widget.GenPollText( func=get_btc_price, update_interval=60, ), get_line_sep(), get_diskinfo(), get_line_sep(), widget.TextBox(fmt=fa.icons["hdd"]), get_cpu(), get_line_sep(), widget.TextBox(fmt=fa.icons["server"]), get_netstats(), # get_updates(), # not working properly get_line_sep(), widget.TextBox(fmt=fa.icons["headphones"]), get_volume(), get_line_sep(), widget.Systray(), get_line_sep(), get_battery(), get_line_sep(), get_keyboard(), get_line_sep(), get_clock(), widget.Spacer(length=8), ], 34, background=colors["background"], )
}), widget.Sep(**separator_options), widget.CurrentLayout(foreground=colors['highlight'], ), widget.GroupBox(**groupbox_options), widget.Sep(**separator_options), widget.Prompt(prompt='☉ ', ), widget.Sep(**separator_options), widget.WindowName(foreground=colors['highlight']), widget.CPUGraph(**graph_monitor_options), widget.MemoryGraph(**graph_monitor_options), widget.NetGraph(**graph_monitor_options), widget.HDDBusyGraph(device='sdb', **graph_monitor_options), widget.HDDBusyGraph(device='sda', **graph_monitor_options), widget.Spacer(bar.STRETCH), widget.Cmus( foreground=colors['text_normal'], play_color=colors['highlight'], ), widget.Sep(**separator_options), widget.Systray(icon_size=14), widget.Sep(**separator_options), widget.TextBox('', fontsize=18), widget.Volume(), widget.Sep(**separator_options), widget.Clock(**clock_options), widget.Sep(**separator_options), #widget.BatteryIcon(), ] widgets_bar2 = [ widget.Sep(**separator_options), widget.WindowName(foreground=colors['highlight']),
widget.Spacer(length=36), ### dark 2 blue ### widget.TextBox(background=color_dark, foreground=color_blue, fontsize=17, text='', padding=0), widget.Prompt(background=color_blue, foreground=color_yellow, cursor_color=color_yellow, prompt='{prompt} ', cursor=True, cursorblink=0.25), widget.Cmus(background=color_blue, play_color=color_white, noplay_color=color_gray, max_chars=10), widget.Moc(background=color_blue, play_color=color_white, noplay_color=color_gray, max_chars=10), widget.Systray(background=color_blue, icon_size=16), widget.Spacer(background=color_blue, length=8), ### blue 2 lightwhite ### widget.TextBox(background=color_blue, foreground=color_lightwhite, fontsize=17, text='', padding=0), widget.Spacer(background=color_lightwhite, length=6), # +0
# foreground=color['edge'][0], # background=color['edge'][1], # ), widget.HDDBusyGraph(background=color['transparent'], ), ], text_closed=' ', text_open=' ', fontsize='26', background=color['transparent'], foreground=color['click'], ), widget.CheckUpdates( display_format=' :{updates} ', background=color['transparent'], ), widget.Cmus(background=color['transparent'], ), widget.Volume(fmt=':{} ', background=color['transparent'], foreground=color['scroll']), widget.Wallpaper( fmt=' ', background=color['transparent'], foreground=color['click'], ), # widget.TaskList(highlight_method='border', background=color['transparent'],), widget.Clock(background=color['transparent'], format='%Y-%m-%d %H:%M'), # widget.QuickExit(default_text='蘆 ', foreground=color['click'],), ] screens = [ Screen(top=bar.Bar(transparent, 28, background="#000000.1",
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
update_interval=2.0), widget.DF(font="Ubuntu Bold", format='({uf}{m} / {f}{m} - {r:.0f}%)', padding=5, visible_on_warn=False, foreground=colors[2], background=colors[5]), widget.TextBox(font="Ubuntu Bold", text=" ♫", padding=5, foreground=colors[2], background=colors[4], fontsize=14), widget.Cmus(font="Ubuntu Bold", max_chars=40, update_interval=0.5, background=colors[4], play_color=colors[2], noplay_color=colors[2]), widget.TextBox(font="Ubuntu Bold", text=" ", foreground=colors[2], background=colors[5], padding=5, fontsize=14), widget.Volume(font="Ubuntu Bold", foreground=colors[2], background=colors[5], padding=10), widget.TextBox(font="Ubuntu Bold", text=" ", padding=5,
padding_x=4, borderwidth=4, active=colors[2], inactive=colors[1], rounded=True, highlight_color=colors[1], highlight_method="line", this_current_screen_border=colors[7], this_screen_border=colors[4], other_current_screen_border=colors[7], other_screen_border=colors[4], foreground=colors[2], background=colors[0]), widget.WindowName(), widget.Cmus(foreground=colors[2], noplay_color=colors[4], play_color=colors[8]), widget.Systray(), widget.Clock(format='%Y-%m-%d %a %I:%M %p'), widget.CurrentLayoutIcon(custom_icon_paths=[ os.path.expanduser("~/.config/qtile/icons") ], scale=0.7), ], 22, ), ), Screen(top=bar.Bar( [ widget.GroupBox(font="JetBrainsMono NF", fontsize=13, margin_y=4,
highlight_method='line', highlight_color=['000000', '000000'], this_current_screen_border='466bb0', ), widget.Image(filename="~/.config/qtile/whiteOnBlack.png", ), widget.currentlayout.CurrentLayout( background='FFFFFF', foreground='000000', ), widget.Image(filename="~/.config/qtile/blackOnWhite.png", ), widget.WindowName(), widget.Image(filename="~/.config/qtile/whiteOnBlack.png", ), widget.Cmus( max_chars=40, update_interval=0.5, background='FFFFFF', play_color='000000', noplay_color='CECECE', ), widget.Image(filename="~/.config/qtile/blackOnWhite.png", ), widget.CPU(format="{load_percent}%", ), widget.Sep(), widget.ThermalSensor(tag_sensor='Core 0', ), widget.Sep(), widget.Memory( format="{MemUsed}M", update_interval=2.0, ), widget.Sep(), widget.Net( interface="wlp4s0",
filename = '/usr/share/backgrounds/vim.png', margin = 3, ), widget.CurrentLayout(background = background_color), widget.GroupBox( background = background_color, block_highlight_text_color = "#00FF00", this_current_screen_border = foreground_color, use_mouse_wheel = False, disable_drag = True, rounded = True, highlight_method = "line", ), # Hack: Not used to display the window name, but to separate the bar widget.WindowName(fmt=''), widget.Cmus(fmt = ''), widget.TextBox( text = "", padding = 0, fontsize = 45, foreground = volume_bg_color, ), widget.PulseVolume(background = volume_bg_color, fmt = " {}"), widget.TextBox( text = "", padding = 0, fontsize = 45, foreground = time_bg_color, background = volume_bg_color, ), widget.Clock(background = time_bg_color, format='%Y/%m/%d %a %I:%M %p'),
), widget.Chord( chords_colors={ 'launch': ("#ff0000", "#ffffff"), }, name_transform=lambda name: name.upper(), ), widget.TextBox(), widget.TextBox(), widget.Cmus( font='fontawesome', fontsize=13, fontshadow=None, foreground='ffffff', markup=True, max_chars=0, mouse_callbacks={}, noplay_color='cecece', padding=None, play_color='00ff00', update_interval=0.5, ), widget.KeyboardLayout( configured_keyboards=['br'], display_map={}, fmt='{}', font='fontawesome', fontsize=13, foreground="#f0ec0a", mouse_callbacks={}, option=None,
#Widgets Config widget_defaults = dict( borderwidth=15, font='sans', fontsize=17, padding=3, ) extension_defaults = widget_defaults.copy() #Screens screens = [ Screen(top=bar.Bar([ widget.GroupBox(hide_unused=True), widget.Systray(), widget.Cmus(play_color='e691ff', max_chars=70), widget.Prompt(), widget.Spacer(), widget.TextBox(text='Volume:'), widget.Volume(), widget.Battery(), widget.Wlan(interface='wlo1'), widget.CPUGraph(), widget.Clock(format='%d-%m-%Y %a %H:%M'), ], 30, background=["#000000", "#2f4f4f"]), ), ] # Drag floating layouts. mouse = [
# foreground = colors[8], # padding=-5, # fontsize=37, # ), # widget.TextBox( # text="♫", # padding = 4, # foreground=colors[0], # background=colors[8], # fontsize=14 # ), widget.Cmus( font="SF Pro Display Regular", background=colors[8], foreground=colors[7], play_color=colors[7], noplay_color=colors[0], update_interval=1, padding=2, ), widget.Mpris2( name='spotify', objname="org.mpris.MediaPlayer2.spotify", display_metadata=['xesam:title', 'xesam:artist'], scroll_chars=None, stop_pause_text='', # font='System Font', padding=2, background=colors[8], foreground=colors[7], ),
screens = [ Screen(top=bar.Bar( [ widget.GroupBox(**base(), margin_y=2, margin_x=0, active=colors['Foreground'], inactive=colors['Inactive'], highlight_method='block', rounded=False, highlight_color=colors['Background'], this_current_screen_border=colors['Background2'], borderwidth=2), widget.Spacer(**base(), ), widget.Cmus(**base(), ), icon(text=' ', fg='Inactive'), widget.CheckUpdates( background=colors['Background'], colour_have_updates=colors['Foreground'], colour_no_updates=colors['Inactive'], display_format='{updates}', distro='Arch_checkupdates', mouse_callbacks={ 'Button1': lambda: qtile.cmd_spawn(terminal + ' -e ' + aur) }, update_interval=60, no_update_string='0'), pipe(), icon(text=' ', fg='Green'), widget.Memory(**base(fg='Green'),
fontsize=12, padding=3, ) extension_defaults = widget_defaults.copy() screens = [ Screen( top=bar.Bar( [ widget.CurrentLayoutIcon(padding=5), #widget.CurrentLayout(), widget.GroupBox(), widget.Sep(linewidth=2), #widget.Prompt(), widget.WindowName(), widget.Cmus(padding=5), widget.TextBox('Updates-', mouse_callbacks = {'Button1': lambda qtile: qtile.cmd_spawn(term + ' -e sudo pacman -Syu')}), widget.Pacman(mouse_callbacks = {'Button1': lambda qtile: qtile.cmd_spawn(term + ' -e sudo pacman -Syu')}), widget.Sep(), widget.TextBox(text=''), widget.ThermalSensor(metric=False, threshold=160, padding=3), widget.TextBox(text='', padding=5), widget.Memory(mouse_callbacks ={'Button1': lambda qtile: qtile.cmd_spawn(term + ' -e htop')}), widget.MemoryGraph(mouse_callbacks ={'Button1': lambda qtile: qtile.cmd_spawn(term + ' -e htop')}), widget.CPU(padding=5, mouse_callbacks ={'Button1': lambda qtile: qtile.cmd_spawn(term + '- e htop')}), widget.CPUGraph(type='box',
backgroundEven = "#1A1D39" backgroundOdd = "#635088" 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.Cmus(fmt="{}", font="iosevka", max_chars=25), widget.Systray(), widget.Notify(action=True, font="isoveka"), widget.Volume(fmt='vol: {}', background=backgroundOdd), widget.Clock(format='%d-%b-%Y %H:%M', background=backgroundEven), widget.Memory(background=backgroundOdd) ], 24, background="#2E2E2E", )), Screen( top=bar.Bar( [ # widget.CurrentLayout(), widget.GroupBox(), widget.Prompt(),
wallpaper_mode='fill', top =bar.Bar( [ widget.CPU(format="CPU {load_percent}%" ,foreground = "70ff70",), widget.Memory(foreground = "ffff00",), widget.Sep(), widget.Spacer(bar.STRETCH), widget.Chord( chords_colors={ 'launch': ("#ff0000", "#ffffff"), }, name_transform=lambda name: name.upper(), ), widget.Notify(), widget.PulseVolume(foreground = "70ff70",), widget.Cmus(), widget.Systray(), widget.QuickExit(), ], 24, ), bottom=bar.Bar( [ widget.CurrentLayout(), widget.GroupBox(), widget.Prompt(), widget.WindowName(), widget.Chord( chords_colors={ 'launch': ("#ff0000", "#ffffff"),
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=0, 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.WindowName(font="Ubuntu", fontsize=10, foreground=colors[5], background=colors[0], padding=5), widget.Sep(linewidth=0, padding=10, foreground=colors[2], background=colors[0]), widget.Image(scale=True, filename="~/.config/qtile/images/bar02-b.png", background=colors[6]), widget.TextBox(text=" ↯", foreground=colors[0], background=colors[6], padding=0, fontsize=10), widget.Net(interface="wlan0", foreground=colors[0], background=colors[6], padding=5), widget.TextBox(font="Ubuntu Bold", text=" ☵", padding=5, foreground=colors[0], background=colors[3], fontsize=10), widget.CurrentLayout(foreground=colors[0], background=colors[3], padding=5), widget.Image(scale=True, filename="~/.config/qtile/images/bar04.png", background=colors[7]), widget.TextBox(font="Ubuntu Bold", text=" ⟳", padding=5, foreground=colors[0], background=colors[7], fontsize=10), widget.CheckUpdates(custom_command="check-all-updates.sh", update_interval=21600, foreground=colors[0], background=colors[7]), widget.TextBox(text="", padding=5, foreground=colors[0], background=colors[7]), widget.Image(scale=True, filename="~/.config/qtile/images/bar05.png", background=colors[8]), widget.TextBox(font="Ubuntu Bold", text=" ♫", padding=5, foreground=colors[0], background=colors[8], fontsize=10), widget.Cmus(max_chars=40, update_interval=0.5, foreground=colors[0], background=colors[8]), widget.Systray(background=colors[10], padding=5), widget.TextBox(font="Ubuntu Bold", text=" 🕒", foreground=colors[2], background=colors[9], padding=5, fontsize=10), widget.Clock(foreground=colors[2], background=colors[9], format="%a, %b %d %H:%M"), widget.Sep(linewidth=0, padding=2, foreground=colors[0], background=colors[9]), ] 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(): prompt = "{0}@{1}: ".format(os.environ["USER"], socket.gethostname()) widgets_list = [ widget.TextBox(text='', background=colors[10], foreground=colors[0], padding=0, fontsize=37), widget.GroupBox(font="UbuntuMono Nerd Font", disable_drag=True, fontsize=14, margin_y=0, margin_x=0, padding_y=5, padding_x=5, borderwidth=1, active=colors[2], inactive=colors[2], rounded=False, highlight_method="block", this_current_screen_border=colors[5], this_screen_border=colors[1], other_current_screen_border=colors[0], other_screen_border=colors[0], foreground=colors[2], background=colors[10]), widget.TextBox(text='', background=colors[0], foreground=colors[10], padding=0, fontsize=37), widget.Prompt(prompt=prompt, font="Iosevka", padding=5, foreground=colors[3], background=colors[1]), widget.Sep(linewidth=0, padding=10, foreground=colors[2], background=colors[0]), widget.WindowName(font="Iosevka", fontsize=11, foreground=colors[5], background=colors[0], padding=5), widget.TextBox(text=' ', background=colors[0], foreground=colors[5], padding=0, fontsize=37), widget.TextBox(text='', background=colors[10], foreground=colors[0], padding=0, fontsize=37), widget.Systray(background=colors[10], padding=0, icon_size=13), widget.TextBox(text='', background=colors[5], foreground=colors[10], padding=0, fontsize=40), widget.TextBox(text=" ", foreground=colors[2], background=colors[5], padding=0, fontsize=13), widget.Net(interface="enp2s0", update_interval=1, foreground=colors[2], background=colors[5], padding=5), widget.TextBox(text='', background=colors[7], foreground=colors[5], padding=0, fontsize=40), # widget.TextBox( # font="Google Sans Bold", # text=" ", # padding = 0, # foreground=colors[2], # background=colors[5], # fontsize=20 # ), widget.CurrentLayout(foreground=colors[2], background=colors[7], padding=5, fontsize=18), widget.TextBox(text='', background=colors[7], foreground=colors[5], padding=0, fontsize=40), widget.TextBox(font="UbuntuMono Nerd Font", text=" ", padding=0, foreground=colors[2], background=colors[5], fontsize=14), widget.Volume(font="Google Sans", background=colors[5], foreground=colors[2], fontsize=12), widget.TextBox(text=' ', background=colors[5], foreground=colors[7], padding=0, fontsize=14), widget.TextBox(text='', background=colors[5], foreground=colors[7], padding=0, fontsize=40), widget.TextBox(font="UbuntuMono Nerd Font", text=" ﱘ ", padding=0, foreground=colors[2], background=colors[7], fontsize=14), widget.Cmus(font="Google Sans", fontsize=12, max_chars=30, update_interval=1, foreground=colors[2], noplay_color=colors[2], play_color='dcdde1', background=colors[7]), widget.TextBox(text=' ', background=colors[7], foreground=colors[5], padding=0, fontsize=14), widget.TextBox(text='', background=colors[7], foreground=colors[5], padding=0, fontsize=40), widget.TextBox(font="UbuntuMono Nerd Font", text=" ", foreground=colors[2], background=colors[5], padding=0, fontsize=14), widget.Clock(foreground=colors[2], background=colors[5], format="%d/%m/%y • %H:%M"), widget.TextBox(text=' ', background=colors[5], foreground=colors[5], padding=0, fontsize=14), widget.Sep(linewidth=0, padding=5, foreground=colors[0], background=colors[5]), ] return widgets_list
screens = [ Screen(top=bar.Bar([ widget.GroupBox(disable_drag=True, active=colours["green"], inactive=colours["fg_normal"], this_current_screen_border=colours["blue"], this_screen_border=colours["blue"], other_current_screen_border=colours["yellow"], other_screen_border=colours["yellow"], urgent_border=colours["red"]), widget.TaskList(icon_size=0, border=colours["green"], urgent_border=colours["red"]), widget.Spacer(), widget.Cmus(play_color=colours["green"], noplay_color=colours["fg_dim"]), widget.Sep(), widget.TextBox(text="", fontsize="32", foreground=colours["yellow"]), widget.ThermalSensor(foreground=colours["fg_normal"], forground_alert=colours["red"], tag_sensor="Tdie"), widget.Sep(), widget.TextBox(text="", fontsize="32", foreground=colours["yellow"]), widget.CPU(foreground=colours["fg_normal"], format="{load_percent}% {freq_current}GHz", update_interval=3.0), widget.Sep(), widget.TextBox(text="", fontsize="32", foreground=colours["yellow"]), widget.Memory(foreground=colours["fg_normal"], format="{MemUsed}/{MemTotal}MiB", update_interval=3.0),
), widget.TextBox( text="", fontsize=16, mouse_callbacks={ 'Button1': lambda qtile: qtile.cmd_spawn( os.path.expanduser( "~/.config/qtile/wallpaper_cycle.sh --next")), 'Button3': lambda qtile: qtile.cmd_spawn( os.path.expanduser( "~/.config/qtile/wallpaper_cycle.sh --prev")), }), widget.Net(format="{down} ↓ {up} ↑", background="#2191FB"), widget.Cmus(background="#76B041"), widget.Systray(), widget.Volume(background="#C33C54"), widget.Clock(format='%a %d %b %H:%M', background="#76B041"), widget.CurrentLayoutIcon(scale=0.75), ], 24, background=colors['bg'], ), ), ] # Drag floating layouts. mouse = [ Drag([mod], "Button1", lazy.window.set_position_floating(),