def nvidia_sensors(bg=theme.background, fg=theme.foreground): return [ widget.TextBox( text="", font=theme.font_awesome, fontsize=theme.icon_size, padding_x=2, foreground=fg, background=bg, ), widget.NvidiaSensors( font=theme.font_bold, foreground_alert=theme.alert, foreground=fg, background=bg, ), widget.TextBox( text="", font=theme.font_awesome, fontsize=theme.icon_size, padding_x=2, foreground=fg, background=bg, ), ]
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
inactive=color['bottom'], background=color['transparent'], highlight_method="block"), widget.WindowName(background=color['transparent'], ), widget.Sep( linewidth=2, padding=3, size_percent=100, ), widget.WidgetBox( widgets=[ widget.CPU(background=color['transparent'], ), widget.Memory(background=color['transparent'], ), # widget.SwapGraph(background=color['transparent'],), # widget.ThermalSensor(highlight_method='border', background=color['transparent'],), widget.NvidiaSensors(background=color['transparent'], ), widget.Net( background=color['transparent'], interface='enp27s0', ), # widget.NetGraph(background=color['transparent'], interface='enp27s0',), # widget.TextBox( # # "", # "", # # "", # fontsize=22, # name="edge", # padding=0, # foreground=color['edge'][0], # background=color['edge'][1], # ),
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[1]), widget.TextBox( text="", #"", foreground=colors[0], fontsize=23, background=colors[1], #filename = '~/.config/qtile/icons/150.png', mouse_callbacks={ 'Button1': lambda: qtile.cmd_spawn('rofi -show run') }), widget.Sep(linewidth=0, padding=6, foreground=colors[2], background=colors[1]), widget.GroupBox(font="Jetbrains Mono", fontsize=16, margin_y=3, margin_x=0, padding_y=5, padding_x=3, borderwidth=3, active=colors[2], inactive=colors[0], rounded=False, highlight_color=colors[12], highlight_method="line", this_screen_border=DARK_BLUE, other_screen_border=DARK_ORANGE, this_current_screen_border=BLUE, other_current_screen_border=ORANGE, foreground=colors[0], background=colors[1]), widget.Prompt(prompt=prompt, font="all-the-icons", padding=10, foreground=colors[3], background=colors[1]), widget.TextBox(text=" ", foreground=colors[1], background=colors[1], fontsize=57, padding=-6), widget.TextBox(text="◤", foreground=colors[1], background=colors[0], fontsize=57, padding=-10), widget.Clock( fontsize=14, foreground=colors[2], background=colors[0], #timezone = 'Asia/Karachi', padding=6, format=" %A, %B %d [%H:%M] "), widget.WindowName(fontsize=14, foreground=colors[0], background=colors[0], padding=0), # widget.TextBox( # text='', # background = colors[8], # foreground = colors[7], # padding=0, # fontsize=37 # ), widget.TextBox(text="", foreground=colors[1], background=colors[0], fontsize=57, padding=-5), widget.TextBox(text="◤", foreground=colors[0], background=colors[1], fontsize=57, padding=-10), # widget.TextBox( # text="", # foreground=colors[9], # background=colors[1], # padding = 0, # fontsize=15 # ), # widget.GenPollText(update_interval=600, func=lambda: subprocess.check_output(os.path.expanduser("~/.bin/kernel")), # foreground = colors[9], # background = colors[1] # ), widget.TextBox(text="🌡", padding=2, foreground=colors[8], background=colors[1]), widget.ThermalSensor(foreground=colors[8], background=colors[1], threshold=90, padding=5), widget.NvidiaSensors( format='GPU {temp}°C', #GPU {perf} {fan_speed} foreground=colors[8], background=colors[1], mouse_callbacks={ 'Button1': lambda: qtile.cmd_spawn('alacritty -e htop') }, padding=5), widget.TextBox(text=" ", foreground=colors[8], background=colors[1], padding=0, fontsize=14), widget.CPU(format='{freq_current}GHz {load_percent}%', foreground=colors[8], background=colors[1], threshold=90, mouse_callbacks={ 'Button1': lambda: qtile.cmd_spawn('alacritty -e htop') }, padding=5), widget.TextBox(text="|", foreground=colors[1], background=colors[1], padding=0), widget.TextBox(text="", foreground=colors[8], background=colors[1], padding=0, fontsize=14), widget.Memory(foreground=colors[8], background=colors[1], mouse_callbacks={ 'Button1': lambda: qtile.cmd_spawn('alacritty -e htop') }, padding=5), widget.TextBox( text=" ", foreground=colors[7], background=colors[1], mouse_callbacks={ 'Button1': lambda: qtile.cmd_spawn('alacritty -e speedtest-cli') }, padding=0, fontsize=14), # widget.Wlan( # interface = "wlp3s0", # format = '{essid} {percent:2.0%}', # mouse_callbacks = {'Button1': lambda: qtile.cmd_spawn('alacritty -e speedtest-cli')}, # foreground=colors[7], # background=colors[1], # padding = 5 # ), widget.Net(interface="wlp3s0", format='{down} ↓↑ {up} ', mouse_callbacks={ 'Button1': lambda: qtile.cmd_spawn('alacritty -e speedtest-cli') }, foreground=colors[7], background=colors[1], padding=5), widget.CheckUpdates(update_interval=1600, distro="Arch", foreground=colors[11], mouse_callbacks={ 'Button1': lambda: qtile.cmd_spawn('alacritty -e ') }, display_format=" {updates} Updates ", background=colors[1]), widget.TextBox(text="◤", foreground=colors[1], background=colors[0], fontsize=57, padding=-10), # widget.KeyboardLayout( # configured_keyboards = ['us','ar'], # update_interval = 120, # foreground=colors[2], # background=colors[0], # padding = 0 # ), # widget.CurrentLayout( # foreground = colors[2], # background = colors[8], # padding = 5 # ), # widget.TextBox( # text='', # background = colors[7], # foreground = colors[8], # padding=0, # fontsize=37 # ), # arcobattery.BatteryIcon( # padding=0, # scale=0.9, # y_poss=0, # theme_path=home + "/.config/qtile/icons/battery_icons_horiz", # update_interval = 5, # foreground=colors[6], # background=colors[0], # ), widget.Systray(foreground=colors[6], background=colors[0], icon_size=20, padding=4), widget.CurrentLayoutIcon( custom_icon_paths=[os.path.expanduser("~/.config/qtile/icons")], foreground=colors[6], background=colors[0], padding=2, scale=0.7), widget.Sep(linewidth=0, padding=6, foreground=colors[6], background=colors[0]), # widget.Image( # scale = True, # foreground = colors[6], # background = colors[0], # filename = '~/.config/qtile/icons/power-button.png', # mouse_callbacks = {'Button1': logout} # ), # widget.Sep( # linewidth = 0, # padding = 6, # foreground = colors[6], # background = colors[0] # ), ] return widgets_list
warn_color=colors2[2], format='({uf}{m}|{r:.0f}%)', partition='/backup', background=colors2[0], ), widget.DF( warn_space=1000, warn_color=colors2[1], format='({uf}{m}|{r:.0f}%)', partition='/home/simone/storage', background=colors2[0], ), widget.Spacer(background=colors2[0]), widget.Spacer(background=colors2[0]), widget.NvidiaSensors(foreground=colors2[2], format='{temp}°C {perf}', background=colors2[0]), widget.Image( filename='~/.config/qtile/icons/computer-chip-8.png', background=colors2[0], ), widget.ThermalSensor( foreground=colors2[1], tag_sensor='Core 0', background=colors2[0], ), widget.CPU( foreground=colors2[2], background=colors2[0], ), widget.Image(
foreground = colors[10], ), widget.Sep( linewidth = 0, padding = 6, foreground = colors[4], background = colors[0] ), widget.ThermalSensor( padding = 0, foreground = colors[11], fmt = " {} " ), widget.NvidiaSensors( padding = 0, foreground = colors[11], format = " {temp}°C" ), widget.Sep( linewidth = 0, padding = 6, foreground = colors[4], background = colors[0] ), widget.CheckUpdates( padding = 0, update_interval = 1800, distro = "Arch", display_format = "⟳ {updates} Updates", mouse_callbacks = { 'Button1': lambda: qtile.cmd_spawn(myTerm + ' -e sudo pacman -Syu')