def widget_stack(): gmail_config = { 'update_interval': 50, 'fmt': 'in[%s] unread(%s)', **get_gmail_config() } return [ widget.CurrentScreen(), widget.GroupBox(), widget.Prompt(), widget.TaskList(), widget.GmailChecker(**gmail_config), widget.Sep(), widget.CheckUpdates(), widget.Sep(), widget.Wlan(interface=auto_detect_interface()), widget.Sep(), widget.DF(visible_on_warn=False, format="Disk free {r:.1f}%"), widget.Sep(), widget.CPUGraph(), widget.Memory(), widget.Sep(), widget.Battery(update_interval=1, format="🔋 {char} {percent:2.0%}"), widget.Sep(), widget.Systray(), widget.Notify(), widget.Clock(), widget.CurrentLayoutIcon(), ]
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 updater(bg=theme.background, fg=theme.foreground): return [ widget.TextBox( text="", font=theme.font_awesome, fontsize=theme.icon_size - 3, padding_x=2, foreground=fg, background=bg, mouse_callbacks={ "Button1": lambda: qtile.cmd_spawn(apps.myTerminal + " -e sudo pacman -Syu"), }, ), widget.CheckUpdates( distro="Arch_checkupdates", display_format="{updates}", no_update_string="n/a", update_interval="1800", font=theme.font_bold, colour_have_updates=fg, colour_no_updates=fg, background=bg, ), widget.CheckUpdates( distro="Arch", custom_command="pacman -Qu | grep -e nvidia -e linux", update_interval="1800", display_format="", font=theme.font_awesome, fontsize=theme.icon_size - 3, colour_have_updates=theme.alert, # colour_no_updates=theme.foreground, background=bg, ), widget.CheckUpdates( distro="Arch", custom_command="pacman -Qu | grep -e nvidia -e linux", update_interval="1800", display_format="{updates}", font=theme.font_bold, colour_have_updates=theme.alert, colour_no_updates=fg, background=bg, ), ]
def init_widgets_list(): widgets_list = [ widget.Sep(linewidth=0, padding=3), widget.CurrentScreen( active_text="◉", active_color=colors[3], inactive_text="◉", inactive_color=colors[1], padding=2, ), widget.CurrentLayoutIcon(scale=0.57, padding=2), widget.GroupBox( margin_x=2, padding_y=2, padding_x=3, borderwidth=1, disable_drag=True, active=colors[5], inactive=colors[2], rounded=True, hide_unused=True, highlight_color=colors[1], highlight_method="border", this_current_screen_border=colors[2], this_screen_border=colors[4], other_current_screen_border=colors[1], other_screen_border=colors[1], ), widget.Sep(linewidth=0, padding=20), widget.WindowTabs(), widget.Sep(linewidth=0, padding=20), widget.Notify(audiofile=qtile_dir + "/.sounds/notify-sound.mp3"), widget.Sep(linewidth=0, padding=20), widget.Spacer(length=bar.STRETCH), widget.CheckUpdates(), widget.Sep(linewidth=0, padding=20), widget.Battery( discharge_char="-", charge_char="+", unknown_char="*", update_interval=30, format="{char}{percent:2.0%}", ), widget.Sep(linewidth=0), widget.Wlan( interface="wlp0s20f3", disconnected_message="W: N/A", format="{essid}", ), widget.Sep(linewidth=0), widget.Volume(), widget.Sep(linewidth=0), widget.Clock(format="%a, %H:%M (%d/%m)", update_interval=60), widget.Sep(linewidth=0), ] return widgets_list
def get_updates(): # not showing correctly in bar return widget.CheckUpdates( update_interval=1800, distro="Arch_checkupdates", format="{updates} " + fa.icons["cubes"], foreground=colors["white"], colour_have_updates=colors["green"], colour_no_updates=colors["foreground"], mouse_callbacks={ "Button1": lambda: qtile.cmd_spawn(terminal + " -e sudo paru") }, )
def get_widgets(start_range=None, end_range=None): widgets_list = [ put_separator(), put_image('~/.config/qtile/python.png', 'Button1', qtile.cmd_spawn, 'alacritty -e code /home/nazgo/.config/qtile'), put_separator(), put_group_layout(), widget.Prompt(), put_current_window_name(), widget.Systray(background='ffdab9'), put_text_box('volume: ', 'Button1', qtile.cmd_spawn, 'alacritty -e alsamixer'), widget.Volume(foreground=main_color, mouse_callbacks={ 'Button1': lambda: qtile.cmd_spawn('alacritty -e alsamixer') }), put_text_box('clock: '), put_clock(), put_text_box('kb: '), put_keyboard_indicator(), put_text_box('[]=:'), put_current_layout(), put_image('~/.config/qtile/pacman.png', 'Button1', qtile.cmd_spawn, 'alacritty -e sudo pacman -Syyu'), widget.CheckUpdates( distro='Arch', display_format='{updates}', colour_have_updates=main_color, mouse_callbacks={ 'Button1': lambda: qtile.cmd_spawn('alacritty -e sudo pacman -Syyu') }), put_separator(), ] if start_range is not None and end_range is not None: return widgets_list[start_range:end_range] return widgets_list
def init_widgets_list(): widgets_list = [ widget.Sep(linewidth=0, padding=5, foreground=colors[2], background=colors[0]), widget.TextBox(text='◥', background=colors[0], foreground="#81A1C1", padding=-2, font="Fira Code", fontsize=50), widget.Image( filename="~/.config/qtile/icons/arco.png", scale="True", mouse_callbacks={ 'Button1': lambda: qtile.cmd_spawn( "rofi -show drun -font 'JetBrainsMono Nerd Font 12'") }), widget.TextBox(text='◣', background=colors[0], foreground="#81A1C1", padding=-2, font="Fira Code", fontsize=50), widget.Sep(linewidth=0, padding=1, foreground=colors[2], background=colors[0]), widget.GroupBox(font="JetBrainsMono Nerd Font", fontsize=12, 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="JetBrainsMono Nerd Font", padding=10, foreground=colors[3], background=colors[1]), widget.Sep(linewidth=0, padding=10, foreground=colors[2], background=colors[0]), widget.WindowName(foreground=colors[2], background=colors[0], padding=0, font="JetBrainsMono Nerd Font"), widget.Sep(linewidth=0, padding=6, foreground=colors[0], background=colors[0]), widget.TextBox(text='◥', background=colors[0], foreground=colors[5], padding=-2, font="Fira Code", fontsize=50), widget.Net(interface="wlp0s20f3", format='📡 ↓{down} ↑ {up}', foreground=colors[2], background=colors[5], mouse_callbacks={ 'Button1': lambda: qtile.cmd_spawn(myTerm + ' -e nmtui') }, padding=0), widget.TextBox(text='◢', background=colors[5], foreground=colors[4], padding=-2, font="Fira Code", fontsize=50), widget.TextBox(text="💻", padding=2, foreground=colors[2], background=colors[4], fontsize=14), widget.CheckUpdates( update_interval=1800, distro="Arch_checkupdates", display_format="{updates} Updates", foreground=colors[2], mouse_callbacks={ 'Button1': lambda: qtile.cmd_spawn(myTerm + ' -e sudo pacman -Syu') }, background=colors[4]), widget.TextBox(text='◢', background=colors[4], foreground=colors[5], padding=-2, font="Fira Code", fontsize=50), widget.TextBox(text="💾", foreground=colors[2], background=colors[5], padding=0, fontsize=14), widget.Memory(foreground=colors[2], background=colors[5], mouse_callbacks={ 'Button1': lambda: qtile.cmd_spawn(myTerm + ' -e gotop') }, padding=5), widget.TextBox(text='◢', background=colors[5], foreground=colors[4], padding=-2, font="Fira Code", fontsize=50), widget.TextBox(text=" 🎧 Vol:", foreground=colors[2], background=colors[4], padding=0), widget.Volume(foreground=colors[2], background=colors[4], padding=5), widget.TextBox(text='◢', background=colors[4], foreground=colors[5], padding=-2, font="Fira Code", fontsize=50), widget.CurrentLayoutIcon( custom_icon_paths=[os.path.expanduser("~/.config/qtile/icons")], foreground=colors[0], background=colors[5], padding=0, scale=0.7), widget.CurrentLayout(foreground=colors[2], background=colors[5], padding=5), widget.TextBox(text='◢', background=colors[5], foreground=colors[4], padding=-2, font="Fira Code", fontsize=50), widget.Clock(foreground=colors[2], background=colors[4], format="📅 %A, %B %d, %H:%M:%S ", mouse_callbacks={ 'Button1': lambda: qtile.cmd_spawn(myTerm + ' -e calcurse') }), widget.TextBox(text='◣', background=colors[0], foreground=colors[4], padding=-2, font="Fira Code", fontsize=50), widget.Systray(background=colors[0], padding=0), ] return widgets_list
def init_widgets_list(): prompt = "{0}@{1}: ".format(os.environ["USER"], socket.gethostname()) widgets_list = [ # workspaces ########################################################## widget.GroupBox( margin_y=3, margin_x=0, padding_y=6, padding_x=5, borderwidth=0, disable_drag=True, highlight_method="text", fontsize=16, this_current_screen_border=colors[4], active=colors[5], inactive=colors[8], ), widget.Sep( linewidth=sep_linewidth, padding=sep_padding, ), # layout section ###################################################### widget.CurrentLayoutIcon(scale=0.7, ), widget.CurrentLayout(font="Noto Sans Bold", ), widget.Sep( linewidth=sep_linewidth, padding=sep_padding, ), # window name section ################################################# widget.CurrentScreen( font="FontAwesome", active_text="", inactive_text="", active_color=colors[8], inactive_color=colors[8], ), widget.WindowName(), # updates ############################################################# # widget.TextBox( # font = "FontAwesome", # fontsize = 16, # text = " ", # padding = 0, # foreground = colors[5], # ), widget.Image( filename="~/.config/qtile/icons/updates.png", margin=icon_margin, ), widget.CheckUpdates( custom_command="checkupdates", display_format="{updates}", no_update_string="0", update_interval=1800, ), widget.Sep( linewidth=sep_linewidth, padding=sep_padding, ), # # battery ############################################################# # widget.TextBox( # # font = "FontAwesome", # # fontsize = 16, # # text = " ", # # padding = 0, # # foreground = colors[4], # # ), # widget.Image( # filename = "~/.config/qtile/icons/battery.png", # margin = icon_margin, # ), # widget.Battery( # #hide_threshold = 0.9, # doesnt hide icon # low_percentage = 0.2, # notify_below = 0.25, # charge_char = "∧", # discharge_char = "∨", # full_string = "full", # update_interval = 10, # background = colors[9], # ), # widget.Sep( # linewidth = sep_linewidth, # padding = sep_padding, # ), # cpu ################################################################# # widget.TextBox( # font = "FontAwesome", # fontsize = 16, # text = " ", # padding = 0, # foreground = colors[5], # ), widget.Image( filename="~/.config/qtile/icons/cpu.png", margin=icon_margin, ), widget.CPU( format="{load_percent}%", update_interval=2, ), widget.Sep( linewidth=sep_linewidth, padding=sep_padding, ), # temperature ######################################################### # widget.TextBox( # font = "FontAwesome", # fontsize = 16, # text = " ", # padding = 0, # foreground = colors[5], # ), widget.Image( filename="~/.config/qtile/icons/temperature.png", margin=icon_margin, ), widget.ThermalSensor( threshold=70, foreground=colors[8], foreground_alert=colors[1], ), widget.Sep( linewidth=sep_linewidth, padding=sep_padding, ), # memory ############################################################## # widget.TextBox( # font = "FontAwesome", # fontsize = 16, # text = " ", # padding = 0, # foreground = colors[4], # ), widget.Image( filename="~/.config/qtile/icons/memory.png", margin=icon_margin, ), widget.Memory( format="{MemUsed:.1f}G", measure_mem="G", update_interval=1, ), widget.Sep( linewidth=sep_linewidth, padding=sep_padding, ), # clock ############################################################### # widget.TextBox( # font = "FontAwesome", # fontsize = 16, # text = " ", # padding = 0, # foreground = colors[4], # ), widget.Image( filename="~/.config/qtile/icons/clock.png", margin=icon_margin, ), widget.Clock(format="%H:%M", ), widget.Sep( linewidth=sep_linewidth, padding=sep_padding, ), # systray ############################################################# widget.Systray(icon_size=20, ), ] 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-white.png", scale = "False", mouse_callbacks = {'Button1': lambda: qtile.cmd_spawn(myTerm)} ), widget.Sep( linewidth = 0, padding = 6, foreground = colors[2], background = colors[0] ), widget.GroupBox( font = "Ubuntu Bold", fontsize = 9, margin_y = 3, margin_x = 0, padding_y = 5, padding_x = 3, borderwidth = 3, active = colors[2], inactive = colors[7], rounded = False, highlight_color = colors[1], highlight_method = "line", this_current_screen_border = colors[6], this_screen_border = colors [4], other_current_screen_border = colors[6], other_screen_border = colors[4], foreground = colors[2], background = colors[0] ), widget.Prompt( prompt = prompt, font = "Ubuntu Mono", padding = 10, foreground = colors[3], background = colors[1] ), widget.Sep( linewidth = 0, padding = 40, foreground = colors[2], background = colors[0] ), widget.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[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 = " 🌡", 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.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 = " ₿", 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 = " 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 " ), ] return widgets_list
# foreground="ffffff", # background="303040", # prompt=">$ " # ), widget.Prompt( foreground="ffffff", background="a9a9a9", prompt=">$ " ), widget.Spacer(), widget.CheckUpdates( padding=0, color_have_updates=color_default, color_no_updates=color_highlight, ), widget.Sep(padding=16), widget.Battery(discharge_char="", charge_char="+"), widget.Sep(padding=16), widget.Clock(format="%F %H:%M"), ], 30, # background="252017", background="FFAAAA", foreground="11EE11", ),
foreground=color1, background=bg_color), widget.CurrentLayoutIcon( custom_icon_paths=[os.path.expanduser("~/.config/qtile/icons")], padding=0, scale=0.5, background=color1, ), widget.CurrentLayout(background=color1, ), widget.Sep(linewidth=0, padding=8, background=color1), widget.TextBox(text="", fontsize=20, padding=0, foreground=color3, background=color1), widget.CheckUpdates(no_update_string="No updates", background=color3), widget.Sep(linewidth=0, padding=8, background=color3), widget.TextBox(text="", fontsize=20, padding=0, foreground=color1, background=color3), widget.CPU(background=color1, format='CPU {freq_current}GHz {load_percent}%'), widget.Sep(linewidth=0, padding=8, background=color1), widget.ThermalSensor(background=color1, ), widget.Sep(linewidth=0, padding=8, background=color1), widget.TextBox(text="", fontsize=20, padding=0, foreground=color3,
def make_screen(systray=False): """Defined as a function so that I can duplicate this on other monitors""" def _separator(): # return widget.Sep(linewidth=2, foreground=COLS["dark_3"]) return widget.Sep(linewidth=2, foreground=WAL_COLS['special']['foreground']) blocks = [ # Marker for the start of the groups to give a nice bg: ◢■■■■■■■◤ widget.TextBox(font="Arial", foreground=WAL_COLS['special']['foreground'], text="◢", fontsize=66, padding=-20), widget.GroupBox( other_current_screen_border=WAL_COLS['colors']['color5'], this_current_screen_border=WAL_COLS['colors'] ['color4'], #COLS["blue_0"], # this_current_screen_border=COLS["deus_2"], other_screen_border=WAL_COLS['colors'] ['color5'], #COLS["orange_0"], this_screen_border=WAL_COLS['colors']['color4'], #COLS["blue_0"], # this_screen_border=COLS["deus_2"], highlight_color=WAL_COLS['colors']['color4'], #COLS["blue_0"], # highlight_color=COLS["deus_2"], urgent_border=WAL_COLS['colors']['color3'], #COLS["red_1"], background=WAL_COLS['special']['foreground'], #COLS["dark_4"], # background=COLS["deus_3"], highlight_method="line", inactive=WAL_COLS['colors']['color2'], #,COLS["dark_2"], active=WAL_COLS['colors']['color1'], #COLS["light_2"], disable_drag=True, borderwidth=2, font=FONT_PARAMS['font'], fontsize=FONT_PARAMS['fontsize'] + 10, foreground=FONT_PARAMS['foreground']), # Marker for the end of the groups to give a nice bg: ◢■■■■■■■◤ widget.TextBox( font="Arial", foreground=WAL_COLS['special']['foreground'], # font="Arial", foreground=COLS["deus_3"], text="◤ ", fontsize=66, padding=-20), # Show the title for the focused window widget.WindowName(**FONT_PARAMS), # Allow for quick command execution widget.Prompt( cursor_color=WAL_COLS['special']['cursor'], # ignore_dups_history=True, bell_style="visual", prompt="λ : ", **FONT_PARAMS), widget.Mpris2(name='spotify', objname="org.mpris.MediaPlayer2.spotify", display_metadata=['xesam:title', 'xesam:artist'], scroll_chars=None, stop_pause_text='', **FONT_PARAMS), _separator(), # Resource usage graphs widget.Wallpaper( directory=os.path.expanduser('~/.config/qtile/wallpaper/'), label=' ', wallpaper_command=['wal', '-i'], **FONT_PARAMS), widget.CPUGraph(border_color=WAL_COLS['colors']['color1'], graph_color=WAL_COLS['colors']['color1'], border_width=1, line_width=1, type="line", width=50, **FONT_PARAMS), widget.MemoryGraph(border_color=WAL_COLS['colors']['color2'], graph_color=WAL_COLS['colors']['color2'], border_width=1, line_width=1, type="line", width=50, **FONT_PARAMS), widget.NetGraph(border_color=WAL_COLS['colors']['color3'], graph_color=WAL_COLS['colors']['color3'], border_width=1, line_width=1, type="line", width=50, **FONT_PARAMS), # 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 # ), # Current battery level widget.TextBox("", **FONT_PARAMS), widget.CheckUpdates( distro="Arch_checkupdates", display_format="{updates}", colour_no_updates=WAL_COLS['special']['foreground'], colour_have_updates=WAL_COLS['colors']['color4'], **FONT_PARAMS), # Wifi strength # ShellScript( # fname="wifi-signal.sh", # update_interval=60, # markup=True, # padding=1, # **FONT_PARAMS # ), # Volume % : scroll mouse wheel to change volume widget.TextBox("蓼", **FONT_PARAMS), widget.Volume(**FONT_PARAMS), widget.TextBox("", **FONT_PARAMS), widget.Backlight( format="{percent:2.0%}", backlight_name="intel_backlight", brightness_file='/sys/class/backlight/intel_backlight/brightness', max_brightness_file= "/sys/class/backlight/intel_backlight/max_brightness", change_command="brightnessctl -set {0}%", **FONT_PARAMS), widget.TextBox("直", **FONT_PARAMS), widget.Wlan(interface='wlp2s0', update_interval='10', format="{percent:2.0%}", **FONT_PARAMS), # widget.TextBox("", **FONT_PARAMS), widget.Battery(charge_char="", full_char="", empty_char="", unkown_char="", discharge_char="", format="{char}", show_short_text=False, **FONT_PARAMS), widget.Battery(charge_char="", full_char="", empty_char="", unkown_char="", discharge_char="", format="{percent:2.0%}", show_short_text=False, **FONT_PARAMS), _separator(), # Current time widget.Clock(format="%m/%d/%Y %I:%M %p %a", **FONT_PARAMS), # # Keyboard layout # widget.KeyboardLayout( # configured_keyboards=['us', 'gb'], # **FONT_PARAMS # ), # Visual indicator of the current layout for this workspace. widget.CurrentLayoutIcon( custom_icon_paths=[os.path.expanduser("~/.config/qtile/icons")], **FONT_PARAMS), ] # Section "Device" # Identifier "0x72" # Driver "intel" # Option "Backlight" "intel_backlight" # EndSection # 1e2 if systray: # Add in the systray and additional separator blocks.insert(-1, widget.Systray()) blocks.insert(-1, _separator()) # return Screen(top=bar.Bar(blocks, 25, background=COLS["deus_1"])) return Screen(top=bar.Bar( blocks, 25, background=WAL_COLS['special']['background'], opacity=.8))
), ), widget.Spacer(length=10), widget.Sep(), widget.Spacer(length=10), widget.KeyboardLayout(configured_keyboards=("us", "br")), widget.Spacer(length=10), widget.Sep(), widget.Spacer(length=10), widget.Systray(icon_size=40), widget.Sep(), widget.CheckUpdates( mouse_callbacks={ "Button1": lambda: qtile.cmd_spawn( f"{terminal} -e sudo pacman -Syu" ), "Button2": lambda: qtile.cmd_spawn( f"{terminal} -e sudo pacman -Syy --noconfirm" ), } ), ], size=50, margin=8, # border_width=[2, 0, 2, 0], # Draw top and bottom borders # border_color=["ff00ff", "000000", "ff00ff", "000000"] # Borders are magenta ), ), ] # Drag floating layouts. mouse = [
widget.GroupBox( background=onedark["comment_grey"], font="JetBrains Mono Medium", highlight_method="line", highlight_color=[onedark["green"], onedark["green"]], this_current_screen_border=onedark["green"], margin_x=0, margin_y=5, inactive=onedark["black"], urgent_border=onedark["dark_red"]), widget.WindowName(background=onedark["black"], foreground=onedark["white"], font="JetBrains Mono Medium"), widget.CheckUpdates(background=onedark["orange"], foreground=onedark["black"], distro='Arch', color_have_updates=onedark["blue"], color_no_updates=onedark["white"], no_update_string='No Updates'), widget.CapsNumLockIndicator(background=onedark["comment_grey"], foreground=onedark["white"], font="JetBrains Mono Medium"), widget.Volume(background=onedark["gutter_grey"], foreground=onedark["purple"]), widget.Systray(), widget.Clock(background=onedark["gutter_grey"], foreground=onedark["blue"], format='%Y-%m-%d %a %H:%M:%S') ], 24, ), ), ]
format="{MemUsed}/{MemTotal}MiB", update_interval=3.0), widget.Sep(), widget.TextBox(text="", fontsize="32", foreground=colours["yellow"]), widget.Net(foreground=colours["fg_normal"], update_interval=3.0, format="{down}↓ {up}↑", interface="enp8s0"), widget.Sep(), widget.TextBox(text="", fontsize="32", foreground=colours["yellow"]), widget.Volume(device="pulse"), widget.Sep(), widget.TextBox(text="", fontsize="32", foreground=colours["yellow"]), widget.CheckUpdates(colour_have_updates=colours["fg_highlight"], colour_no_updates=colours["fg_dim"], distro="Arch_checkupdates", display_format="{updates}", no_update_string="0", update_interval=1800), widget.Sep(), widget.Systray(icon_size=32), widget.Sep(), widget.Clock(format='%Y-%m-%d %a %I:%M %p'), widget.Sep(), widget.CurrentLayoutIcon(foreground=colours["yellow"], scale=0.75), ], 48, background=colours["bg_normal"]), ), ] # Drag floating layouts. mouse = [
text='', padding=0, fontsize=28, foreground='#2f343f'), widget.Prompt(), widget.Spacer(length=5), widget.WindowName(foreground='#99c0de', fmt='{}'), widget.Chord( chords_colors={ 'launch': ("#ff0000", "#ffffff"), }, name_transform=lambda name: name.upper(), ), widget.CurrentLayoutIcon(scale=0.75), widget.CheckUpdates( update_interval=1800, distro="Arch_yay", display_format="{updates} Updates", foreground="#ffffff", mouse_callbacks={ 'Button1': lambda: qtile.cmd_spawn(terminal + ' -e yay -Syu') }, background="#2f343f"), widget.Systray(icon_size=20), widget.Spacer(length=5), widget.TextBox( text='', padding=0, fontsize=28, foreground='#2f343f'), widget.Clock(format=' %Y-%m-%d %a %I:%M %p', background="#2f343f", foreground='#9bd689'), widget.TextBox(text='', padding=0, fontsize=20, foreground='#2f343f',
foreground=colors[0], opacity=0.1, ), widget.TextBox( text = '|', padding = 0, fontsize = 18, ), widget.TextBox( text='', fontsize=28, foreground=colors[8], ), widget.CheckUpdates( distro = "Arch_checkupdates", update_interval = 1800, mouse_callbacks = {'Button1': lambda: qtile.cmd_spawn(myTerm + ' -e sudo pacman -Syu')}, foreground=colors[8], ), widget.TextBox( text = '|', padding = 0, fontsize = 18, ), widget.Battery( format='{char} {percent:2.0%}', charge_char='', discharge_char='', update_interval=5, foreground=colors[4], ), widget.TextBox(
def init_bar(color=init_colors()): return bar.Bar( [ widget.TextBox(text="", font="fontello", foreground=color[14], fontsize=23, padding=5, mouse_callbacks={'Button1': jgmenu_qtile}), widget.GroupBox(active=color[12], inactive=color[14], this_current_screen_border=color[10], highlight_method="line", font="fontello", highlight_color=[color[15]], center_aligned=True, disable_drag=True, fontsize=14), widget.Spacer(580), widget.TextBox( text='', font="icomoon", ), widget.Clock( format='%Y-%m-%d', foreground=color[14], fontsize=11, font='Cantarell Bold', ), widget.TextBox( text=' ', font="icomoon", ), widget.Clock( format='%H:%M', foreground=color[14], fontsize=11, font='Cantarell Bold', ), widget.Spacer(bar.STRETCH), widget.TextBox( text="", font="icomoon", ), widget.CheckUpdates(display_format='{updates}', font='Cantarell Bold', execute='pamac-manager', distro='Arch', update_interval=1), widget.TextBox(text="|", ), widget.CheckUpdates( display_format='{updates}', font='Cantarell Bold', distro='Arch', custom_command='yay -Qum 2>/dev/null', update_interval=1, execute='pamac-manager', ), widget.Spacer(10), widget.Net(), widget.Spacer(10), widget.TextBox( #text=' ', text='MEM:', ), widget.MemoryGraph(), widget.Spacer(10), widget.TextBox( #text=" ", text='CPU:', ), widget.CPUGraph(), widget.Spacer(10), widget.CurrentLayoutIcon(scale=0.5, ), ], 26, background=color[15], font='Cantarell Bold', fontsize=11)
widget.Clock( # CLOCK fmt = '<span face="' + my_fonts[6] + '" foreground="' + colors[2] + '">\uf017</span> {}', format = '%H:%M', ), widget.QuickExit( # EXIT font = my_fonts[2], foreground = colors[1], countdown_format = '{}s', default_text = '\uf011', ), widget.CheckUpdates( colour_have_updates = colors[9], colour_no_updates = colors[9], background = colors[10], foreground = colors[9], mouse_callbacks = {'Button1': lambda qtile: qtile.cmd_spawn(terminal + ' -t=float -e sudo pacman -Syyu')}, distro = 'Arch', fmt = '\uf2f1 {}', display_format = '{updates}', no_update_string = '0', ), ], 28, opacity = 1.0, margin = [0,0,0,0], ), #left = bar.Gap(3), #right = bar.Gap(3), #bottom = bar.Gap(3), ), ]
[ widget.Spacer(length=10), widget.CurrentLayoutIcon(scale=0.7), widget.CurrentLayout(**widget_defaults), widget.GroupBox(borderwidth=2, inactive='969696', this_current_screen_border='eee8d5', this_screen_border='eee8d5', **widget_defaults), widget.Prompt(**widget_defaults), widget.Spacer(), widget.CheckUpdates( **widget_defaults, update_interval=1800, distro='Arch_yay', custom_command='checkupdates+aur', display_format=' {updates}', colour_have_updates=GREEN, execute='kitty -e yay -Syu', ), widget.Mpris2( name='spotify', objname="org.mpris.MediaPlayer2.spotify", display_metadata=['xesam:title', 'xesam:artist'], scroll_chars=None, stop_pause_text='', **widget_defaults ), widget.BatteryIcon( ), widget.Battery(
widget.CurrentLayout(foreground=colors[3]), widget.Sep(), generate_group_box(), widget.Prompt( prompt=prompt, font="DejaVu italic", padding=10, foreground=colors[3], background=colors[1], ), widget.WindowName(foreground=colors[3]), widget.TextBox('Updates:'), widget.CheckUpdates( distro='Arch_checkupdates', display_format='{updates}', # colour_have_updates='CC0000', # colour_no_updates='4C9900', colour_have_updates=colors[3], colour_no_updates=colors[4], update_interval=604800), widget.Sep(), # widget.Wlan(interface='wlp3s0'), # widget.Sep(), widget.Clock(format='%I:%M %p', foreground=colors[3]), ], 25, **bar_theme), x=1921, y=312, width=1360, height=768, ),
def init_widgets_list(): widgets_list = [ widget.Sep( linewidth=0, padding=6, background=colors[0], foreground=colors[6], ), widget.GroupBox(), widget.WindowName( background=colors[0], foreground=colors[0], ), widget.Image(filename="~/.config/qtile/pictures/arrow.jpg", ), widget.CPU( format='CPU {load_percent}%', background=colors[5], foreground=colors[6], padding=2, ), widget.TextBox( text=" Thermal", background=colors[5], foreground=colors[6], padding=2, ), widget.ThermalSensor( background=colors[5], foreground=colors[6], padding=2, ), widget.TextBox( text=" RAM", background=colors[5], foreground=colors[6], padding=2, ), widget.Memory( background=colors[5], foreground=colors[6], padding=5, ), widget.Image(filename="~/.config/qtile/pictures/arrow-blue.jpg", ), widget.TextBox( text="Free Space", background=colors[4], foreground=colors[6], padding=2, ), widget.DF( background=colors[4], foreground=colors[6], padding=5, update_interval=5, visible_on_warn=False, ), widget.Image(filename="~/.config/qtile/pictures/arrow-red.jpg", ), widget.TextBox( text="Network ", background=colors[3], foreground=colors[6], ), widget.Net( format='{down} ↓↑ {up}', background=colors[3], foreground=colors[6], padding=4, ), widget.TextBox( text=" ⟳", padding=5, mouse_callbacks={ 'Button1': lambda: qtile.cmd_spawn(myTerm + ' -e sudo pacman -Syu') }, foreground=colors[6], background=colors[3], fontsize=14, ), widget.CheckUpdates( update_interval=180, display_format="{updates} Updates", no_update_string="0 Updates", distro="Arch_checkupdates", background=colors[3], foreground=colors[6], padding=5, ), widget.Image(filename="~/.config/qtile/pictures/arrow-purple.jpg", ), widget.TextBox( text="Volume ", background=colors[2], foreground=colors[6], padding=2, ), widget.Volume( background=colors[2], foreground=colors[6], padding=5, ), widget.Image(filename="~/.config/qtile/pictures/arrow-purple2.jpg", ), widget.Clock( format='%a %I:%M %p %m-%d-%Y', background=colors[1], foreground=colors[6], ), ] return widgets_list
'Button1': lambda: qtile.cmd_spawn('alacritty -e calcurse') }, ), arrow_left(fg="YELLOW", bg="CYAN"), icon(bg="YELLOW", text=' '), widget.Volume(padding=5, volume_app="pavucontrol", **set_colors(bg="YELLOW", fg="BLACK")), arrow_left(fg="CYAN", bg="YELLOW"), icon(bg="CYAN", text="⟳"), widget.CheckUpdates( padding=5, colour_have_updates=Colors.RED.value, colour_no_updates=Colors.BLACK.value, no_update_string='0', distro="Arch", display_format='{updates} Updates', update_interval=1800, custom_command='checkupdates', mouse_callbacks={ 'Button1': lambda: qtile.cmd_spawn('alacritty -e sudo pacman -Syu') }, **set_colors(bg="CYAN")), arrow_left(bg="CYAN", fg="BLACK"), widget.Systray( **set_colors(), padding=5, ), ] widget_secondary = [*workspaces()]
def init_widgets_list(): widgets_list = [ # Initial Spacer widget.Sep(linewidth=0, padding=6, foreground=colors[2], background=colors[1]), # Python Image to launch terminal widget.Image( filename="~/.config/qtile/python.png", scale="False", mouse_callbacks={'Button1': lambda: qtile.cmd_spawn(myTerminal)}), # Group Box widget.Sep(linewidth=0, padding=6, foreground=colors[2], background=colors[1]), widget.GroupBox(font="MonoLisa", fontsize=11, margin_y=3, margin_x=0, padding_y=5, padding_x=3, borderwidth=3, active=colors[5], inactive=colors[2], rounded=True, highlight_color=colors[0], 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[1]), # Space separator widget.Sep(linewidth=0, padding=40, foreground=colors[2], background=colors[1]), # Widow Name widget.WindowName(max_chars=25, empty_string='---', foreground=colors[6], background=colors[1], padding=0), # System Tray widget.Systray(background=colors[1], padding=5), widget.Sep(linewidth=0, padding=6, foreground=colors[1], background=colors[1]), # Thermal Sensor widget.ThermalSensor(foreground=colors[5], background=colors[0], threshold=90, padding=5), # Updates widget.TextBox( font="MonoLisa Nerd Font", fontsize=16, text=' ', background=colors[1], foreground=colors[0], padding=0, ), widget.CheckUpdates( update_interval=1800, distro="Arch_checkupdates", display_format="{updates} Updates", foreground=colors[5], mouse_callbacks={ 'Button1': lambda: qtile.cmd_spawn(myTerminal + ' -e sudo pacman -Syu') }, background=colors[0]), widget.TextBox(font="MonoLisa Nerd Font", text=' ', background=colors[1], foreground=colors[0], padding=0, fontsize=16), # Memory widget.TextBox( font="MonoLisa Nerd Font", text=' ', fontsize=16, background=colors[1], foreground=colors[0], padding=0, ), widget.Memory(foreground=colors[5], background=colors[0], mouse_callbacks={ 'Button1': lambda: qtile.cmd_spawn(myTerminal + ' -e htop') }, padding=5), widget.TextBox(font="MonoLisa Nerd Font", text=' ', background=colors[1], foreground=colors[0], padding=0, fontsize=16), # Volume widget.TextBox( font="MonoLisa Nerd Font", fontsize=16, text=' ', background=colors[1], foreground=colors[0], padding=0, ), widget.TextBox( text=" ", foreground=colors[7], background=colors[0], font="Font Awesome 5 Free Solid", # fontsize=38, ), widget.Volume( foreground=colors[7], background=colors[0], mouse_callbacks={"Button3": open_pavu}, padding=5, ), widget.TextBox(font="MonoLisa Nerd Font", text=' ', background=colors[1], foreground=colors[0], padding=0, fontsize=16), # Current Layout widget.TextBox( font="MonoLisa Nerd Font", fontsize=16, text=' ', background=colors[1], foreground=colors[0], padding=0, ), widget.CurrentLayoutIcon( custom_icon_paths=[os.path.expanduser("~/.config/qtile/icons")], foreground=colors[5], background=colors[0], padding=0, scale=0.7), widget.CurrentLayout(foreground=colors[5], background=colors[0], padding=5), widget.TextBox(font="MonoLisa Nerd Font", text=' ', background=colors[1], foreground=colors[0], padding=0, fontsize=16), # CPU widget.TextBox( font="MonoLisa Nerd Font", fontsize=16, text=' ', background=colors[1], foreground=colors[0], padding=0, ), widget.CPU(background=colors[0], foreground=colors[6], fontsize=16), widget.TextBox(font="MonoLisa Nerd Font", text=' ', background=colors[1], foreground=colors[0], padding=0, fontsize=16), # Clock widget.TextBox( font="MonoLisa Nerd Font", fontsize=16, text=' ', background=colors[1], foreground=colors[0], padding=0, ), widget.TextBox( text="", font="Font Awesome 5 Free Solid", foreground=colors[8], # fontsize=38 background=colors[0], ), widget.Clock(foreground=colors[8], background=colors[0], format="%A, %B %d - %H:%M "), widget.TextBox(font="MonoLisa Nerd Font", text=' ', background=colors[1], foreground=colors[0], padding=0, fontsize=16), # Poweroff Button widget.TextBox( font="MonoLisa Nerd Font", fontsize=16, text=' ', background=colors[1], foreground=colors[0], padding=0, ), widget.TextBox( text="⏻", foreground=colors[5], font="Font Awesome 5 Free Solid", fontsize=16, padding=10, mouse_callbacks={"Button1": open_powermenu}, ), widget.TextBox(font="MonoLisa Nerd Font", text=' ', background=colors[1], foreground=colors[0], padding=0, fontsize=16), ] 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.Image( filename="~/.config/qtile/icons/tux.png", scale="False", mouse_callbacks={'Button1': lambda: qtile.cmd_spawn(myTerm)}, background=colors[0]), widget.Sep(linewidth=0, padding=6, foreground=colors[2], background=colors[0]), widget.TextBox(text='|', background=colors[0], foreground=colors[7], fontsize=20), widget.Sep(linewidth=0, padding=6, foreground=colors[2], background=colors[0]), widget.GroupBox(font="FiraCode Nerd Font", fontsize=18, margin_y=3, margin_x=0, padding_y=5, padding_x=3, borderwidth=3, active="#ff71ce", inactive=colors[2], rounded=False, highlight_color=colors[0], 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, padding=10, foreground=colors[3], background=colors[1], fontsize=16), widget.Sep(linewidth=0, padding=40, 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[7], fontsize=20), 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[0]), widget.TextBox(text='|', background=colors[0], foreground=colors[7], fontsize=20), widget.CPU(format='\uf108 cpu: {load_percent}% {freq_current}GHz', foreground='#ecbe7b', background=colors[0]), widget.TextBox(text='|', background=colors[0], foreground=colors[7], fontsize=20), widget.TextBox(text=" 🌡", padding=2, foreground='#01cdfe', background=colors[0], fontsize=16), widget.ThermalSensor(foreground='#01cdfe', background=colors[0], threshold=90, padding=5, tag_sensor="Package id 0"), widget.TextBox(text='|', background=colors[0], foreground=colors[7], fontsize=20), widget.TextBox(text=" 🌡", padding=2, foreground='#05ffa1', background=colors[0], fontsize=16), widget.NvidiaSensors(foreground='#05ffa1', background=colors[0], format='gpu: {temp}°C'), widget.TextBox(text='|', background=colors[0], foreground=colors[7], fontsize=20), widget.Memory(foreground='#ff6c6b', background=colors[0], format='\uf233 {MemUsed: .0f}M/{MemTotal: .0f}M', mouse_callbacks={ 'Button1': lambda: qtile.cmd_spawn(myTerm + ' -e htop') }, padding=5), widget.TextBox(text='|', background=colors[0], foreground=colors[7], fontsize=20), widget.Net(interface=interface_name, format='\uf0ab {down} \uf0aa {up}', foreground='#fffb96', background=colors[0], padding=5), widget.TextBox(text='|', background=colors[0], foreground=colors[7], fontsize=20), widget.TextBox( text="", foreground='#ff71ce', background=colors[0], font="Font Awesome 6 Free Solid", # fontsize=38, ), widget.Volume( #foreground = '#828CF6', foreground='#ff71ce', background=colors[0], padding=5), widget.TextBox(text='|', background=colors[0], foreground=colors[7], fontsize=20), widget.CurrentLayoutIcon( custom_icon_paths=[os.path.expanduser("~/.config/qtile/icons")], foreground='#c678dd', background=colors[0], padding=0, scale=0.7), widget.CurrentLayout(foreground='#c678dd', background=colors[0], padding=5), widget.TextBox(text='|', background=colors[0], foreground=colors[7], fontsize=20), widget.TextBox( text="", # text="\uF551", foreground='#46d9ff', background=colors[0], font="Font Awesome 6 Free Solid", # fontsize=38, ), widget.Clock(foreground='#46d9ff', background=colors[0], format="%A, %B %d - %H:%M:%S", mouse_callbacks={ 'Button1': lambda: qtile.cmd_spawn( myTerm + f" --hold -e cal {current_year}") }), widget.TextBox(text='|', background=colors[0], foreground=colors[7], fontsize=20), widget.Systray(background=colors[0], icon_size=21, padding=4), widget.Sep(linewidth=0, padding=10, foreground=colors[0], background=colors[0]), ] return widgets_list
fontsize=font_size, text='[]=:', ), widget.CurrentLayout(fontsize=font_size, foreground=main_color), widget.Image(filename='~/.config/qtile/pacman.png', scale='False', mouse_callbacks={ 'Button1': lambda: qtile.cmd_spawn( 'alacritty -e sudo pacman -Syyu') }), widget.CheckUpdates(distro='Arch', display_format='{updates}', colour_have_updates=main_color, mouse_callbacks={ 'Button1': lambda: qtile.cmd_spawn( 'alacritty -e sudo pacman -Syyu') }), widget.Sep(padding=6, linewidth=0), ], 20, ), ), ] # Drag floating layouts. mouse = [ Drag([mod], 'Button1', lazy.window.set_position_floating(), start=lazy.window.get_position()),
def init_widgets_list(self): ''' Function that returns the desired widgets in form of list ''' widgets_list = [ widget.Sep(linewidth=0, padding=6, foreground=self.colors[2], background=self.colors[0]), widget.CurrentLayoutIcon(custom_icon_paths=[ os.path.expanduser("~/.config/qtile/icons") ], background=self.colors[0], padding=0, scale=0.75), widget.Sep(linewidth=0, padding=5, foreground=self.colors[2], background=self.colors[0]), widget.GroupBox(font="JetBrains Mono", fontsize=12, margin_y=3, margin_x=0, padding_y=5, padding_x=3, borderwidth=3, active=self.colors[2], inactive=self.colors[1], rounded=False, highlight_method="block", urgent_alert_method='block', urgent_border=self.colors[9], this_current_screen_border=self.colors[9], this_screen_border=self.colors[4], other_current_screen_border=self.colors[0], other_screen_border=self.colors[0], foreground=self.colors[2], background=self.colors[0], disable_drag=False), widget.Sep(linewidth=0, padding=5, foreground=self.colors[2], background=self.colors[0]), widget.WindowTabs( foreground=self.colors[6], background=self.colors[0], padding=0, ), widget.TextBox(text='', foreground=self.colors[14], background=self.colors[0], padding=0, fontsize=37), widget.TextBox(text=" ", foreground=self.colors[7], background=self.colors[14], padding=0, fontsize=14), widget.TextBox(text=self.host, foreground=self.colors[7], background=self.colors[14], padding=5, fontsize=13), widget.TextBox(text='', foreground=self.colors[11], background=self.colors[14], padding=0, fontsize=37), widget.TextBox(text=" ", foreground=self.colors[7], background=self.colors[11], padding=0, fontsize=14), widget.KeyboardLayout( foreground=self.colors[7], background=self.colors[11], ), widget.TextBox(text='', background=self.colors[11], foreground=self.colors[10], padding=0, fontsize=37), widget.TextBox( text=" ", background=self.colors[10], padding=0, fontsize=14, mouse_callbacks={ 'Button1': lambda: qtile.cmd_spawn(self.kitty + ' -e sudo pacman -Syu' ) }, ), widget.CheckUpdates( update_interval=1000, mouse_callbacks={ 'Button1': lambda: qtile.cmd_spawn(self.kitty + ' -e sudo pacman -Syu' ) }, background=self.colors[10], display_format='{updates}', # colour_have_updates=self.colors[0], distro="Arch_checkupdates", ), widget.TextBox(text='', foreground=self.colors[1], background=self.colors[10], padding=0, fontsize=37), widget.TextBox(text=" ", foreground=self.colors[7], background=self.colors[1], padding=0, fontsize=18), widget.Clock(background=self.colors[1], format="%A, %B %d - %H:%M "), widget.TextBox(text='', foreground=self.colors[0], background=self.colors[1], padding=0, fontsize=37), widget.TextBox( text=" ", background=self.colors[0], padding=0, ), widget.Volume(background=self.colors[0], padding=5), widget.Battery( background=self.colors[0], padding=5, update_interval=2, format='{char} {percent:2.0%} {hour:d}:{min:02d}', charge_char='CHR', discharge_char='DIS', empty_char='EMP', full_char='FUL', unknown_char='UNK', ), widget.Systray(background=self.colors[0], padding=5), ] return widgets_list
] primary_widgets = [ *workspaces(), separator(), powerline('color3', 'dark'), widget.CurrentLayoutIcon(**base(bg='color3'), scale=0.65), widget.CurrentLayout(**base(bg='color3'), padding=5), powerline('color4', 'color3'), icon(bg="color4", text=' '), # Icon: nf-fa-download widget.CheckUpdates( background=colors['color4'], colour_have_updates=colors['text'], colour_no_updates=colors['text'], no_update_string='0', display_format='{updates}', distro='Arch', update_interval=900, ), powerline('color2', 'color4'), icon(bg="color2", fontsize=17, text=' '), # Icon: nf-mdi-calendar_clock widget.Clock(**base(bg='color2'), format='%H:%M - %d/%m '), powerline('color1', 'color2'), icon(bg="color1", text=' '), # Icon: nf-fa-volume_up widget.Volume(**base(bg='color1')), powerline('dark', 'color1'), widget.Systray(background=colors['dark'], padding=5), widget.Battery(**base(bg='dark', fg='light'), update_interval=1, format=' {percent:2.0%}'),
widget.Volume( volume_app=commands.alsamixer, foreground=GREEN), keyboard_widget, widget.Battery( discharge_char='↓', charge_char='↑', format='{char} {hour:d}:{min:02d}', foreground=YELLOW, low_foreground=RED), widget.CheckUpdates( distro='Arch_yay', display_format='{updates}', colour_no_update=GREEN, colour_have_updates=RED, execute=commands.update), widget.Clock(format='%Y-%m-%d %H:%M'), ], 24, ) bottom = bar.Bar( [ widget.Backlight( change_command='light -S {0}', foreground=GREEN, backlight_name='intel_backlight'),
def init_widget_list(): widget_list = [ widget.CurrentLayoutIcon(padding=10), widget.GroupBox( this_current_screen_border=palette["blue"], urgent_border=palette["red"], ), widget.Prompt(padding=10, font='mono', prompt='run: ', foreground='ffdf29', fontsize='14'), widget.Spacer(bar.STRETCH), widget.Systray(), widget.TextBox(text='\ue0b2', fontsize=40, foreground=color_widget(), padding=0), widget.Volume( emoji=True, font='FontAwesome', fontsize=15, background=color_widget(), ), widget.Volume( padding=4, background=color_widget(), ), widget.TextBox( text='\ue0b2', fontsize=40, background=color_widget(), foreground=color_widget(switch=True), ), widget.TextBox( # text = fa.icons['music'] + ' ', text="♫ ", fontsize=20, background=color_widget(), ), widget.GenPollText( background=color_widget(), func=song, update_interval=3, ), widget.TextBox( text='\ue0b2', fontsize=40, background=color_widget(), foreground=color_widget(switch=True), ), widget.TextBox( text=fa.icons['keyboard'] + ' ', fontsize=20, background=color_widget(), ), widget.GenPollText( background=color_widget(), func=kb_layout, update_interval=3, ), widget.TextBox( text='\ue0b2', fontsize=40, background=color_widget(), foreground=color_widget(switch=True), ), widget.TextBox( text=fa.icons['sync'], background=color_widget(), mouse_callbacks={'Button1': update()}, ), widget.CheckUpdates( update_interval=60, foreground=black, colour_have_updates=black, background=color_widget(), distro='Arch_checkupdates', display_format='Updates: {updates}', mouse_callbacks={'Button1': update()}, ), widget.TextBox( text='\ue0b2', fontsize=40, background=color_widget(), foreground=color_widget(switch=True), ), widget.TextBox( text=fa.icons['wifi'] + ' ', background=color_widget(), ), widget.Wlan( interface='wlo1', background=color_widget(), #format='{essid}', format='{essid} {percent:2.0%}', ), widget.TextBox( text='\ue0b2', fontsize=40, background=color_widget(), foreground=color_widget(switch=True), ), widget.BatteryIcon( background=color_widget(), theme_path='/usr/share/icons/Adwaita/16x16', ), widget.Battery( format='{percent:2.0%}', update_interval=60, background=color_widget(), ), widget.TextBox( text='\ue0b2', fontsize=40, background=color_widget(), foreground=color_widget(switch=True), ), widget.TextBox( text=fa.icons['calendar'] + ' ', background=color_widget(), ), widget.GenPollText( background=color_widget(), func=calendar, update_interval=3, ), widget.TextBox( text='\ue0b2', fontsize=40, background=color_widget(), foreground=color_widget(switch=True), ), widget.TextBox( text=fa.icons['clock'] + ' ', background=color_widget(), ), widget.Clock( # format ='%B %-d %Y ', format='%a %-d/%-m/%Y |', background=color_widget(), ), widget.Clock( format='%H:%M ', background=color_widget(), font='Roboto Mono Bold for Powerline', fontsize=13, ), ] return widget_list