def init_widgets_list(): prompt = "{0}@{1}: ".format(os.environ["USER"], socket.gethostname()) widgets_list = [ widget.Sep(linewidth=0, padding=6, foreground=colors['fg'], background=colors['bg0_s']), widget.GroupBox(font="Fira Mono Medium", fontsize=10, borderwidth=2, active=colors['white'], inactive=colors['fg3'], rounded=True, highlight_method="border", this_current_screen_border=colors['light_blue'], this_screen_border=colors['light_blue'], other_current_screen_border=colors['neutral_blue'], other_screen_border=colors['light_aqua'], foreground=colors['fg'], background=colors['bg']), widget.Sep(linewidth=0, padding=10, foreground=colors['fg'], background=colors['bg0']), widget.Prompt(prompt=prompt, font="Fira Mono Medium", padding=10, foreground=colors['fg'], background=colors['bg3']), widget.Sep(linewidth=0, padding=10, foreground=colors['fg'], background=colors['bg0_s']), widget.WindowName(), widget.Systray(), widget.TextBox(text='', name='info', foreground=colors['fg'], background=colors['bg']), Spacer(length=10), widget.Clock(format='%Y-%m-%d %a %I:%M %p'), widget.Wallpaper(directory='~/.config/wallpapers', wallpaper='space.jpg', label='', one_screen=True), widget.CurrentLayoutIcon(foreground=colors['fg'], background=colors['bg0_s']), ] return widgets_list
def set_widgets(): sep = widget.Sep( linewidth=0, padding=50, ) widgets = [ widget.CurrentLayoutIcon( foreground=fairyfloss[0], padding=5, ), widget.CurrentLayout( fmt="{}", foreground=fairyfloss[0], padding=5, ), widget.Chord( fmt="{}", foreground=fairyfloss[0], padding=5, ), widget.GroupBox( active=fairyfloss[10], # Active window font color highlight_method="block", inactive=fairyfloss[0], # Inactive window font color other_current_screen_border=fairyfloss[9], other_screen_border=fairyfloss[9], this_current_screen_border=fairyfloss[15], # Active and focused this_screen_border=fairyfloss[9], ), sep, widget.Spacer(length=bar.STRETCH), widget.Clock(format='%Y-%m-%d %a %H:%M:%S'), widget.Systray(), widget.Battery( format="{percent:2.0%}", low_percentage=0.1, notify_below=0.1, ), widget.QuickExit( countdown_start=10, default_text="[ Logout ]", ), widget.Wallpaper( directory=home + '/Media/Pictures/Wallpapers/kawaii', random_selection=True, fmt="", ) ] return widgets
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))
**current_layout_icon), widget.CurrentLayout(**base(bg='secondary'), **current_layout), widget.TextBox(**base(bg='secondary'), **text_box, text=''), widget.Clock(**base(bg='secondary'), **clock) ] laptop_widgets = [ *workspaces(), widget.Sep(**separator), widget.Systray(**systray), widget.Sep(**separator), widget.Image(filename=img['bg-to-secondary']), widget.CPU(**base(bg='secondary'), **CPU), widget.ThermalSensor(**base(bg='secondary'), **ThermalSensor), widget.Wallpaper(**base(bg='secondary'), **Wallpaper), *powerline_base() ] monitor_widgets = [ *workspaces(), widget.Image(filename=img['bg-to-secondary']), *powerline_base() ] widget_defaults = {'font': 'Ubuntu Mono', 'fontsize': 13, 'padding': 2} extension_defaults = widget_defaults.copy() # SCREENS screens = [Screen(top=bar.Bar(laptop_widgets, 24, opacity=0.95))] # check connected monitors
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", opacity=0.6), ), ] # Drag floating layouts. mouse = [ Drag([mod],
def wallpaper(): return widget.Wallpaper(directory='~/.wallpapers/', label='')
widget.Spacer(background='9f9ae2', length=1), widget.Spacer(background='a199e3', length=1), widget.Spacer(background='a298e3', length=1), widget.Spacer(background='a397e3', length=1), widget.Spacer(background='a596e4', length=1), widget.Spacer(background='a694e4', length=1), widget.Spacer(background='a793e5', length=1), widget.Spacer(background='a892e5', length=1), widget.Spacer(background='aa91e5', length=1), widget.Spacer(background='ab90e6', length=1), widget.Spacer(background='ac8ee6', length=1), widget.Spacer(background='ae8de7', length=1), widget.Spacer(background=color_lightpurple, length=4), widget.Wallpaper(background=color_lightpurple, foreground=color_black, directory=wallpapers, random_selection=True, wallpaper_command=['feh', '--bg-fill'], label=' Bgrn'), widget.TextBox(background=color_lightpurple, foreground=color_purplegray, fontsize=10, text='', padding=0), widget.Spacer(background=color_lightpurple, length=6), widget.TextBox(background=color_lightpurple, foreground=color_black, text=' ', padding=0), widget.Clock(background=color_lightpurple, foreground=color_black, padding=0,
layout.MonadTall(**layout_theme), # layout.Floating(**layout_theme), ] widget_defaults = dict( font='sans', fontsize=12, padding=3, ) extension_defaults = widget_defaults.copy() screens = [ Screen( top=bar.Bar( [ widget.Wallpaper(directory='~/.config/qtile/Wallpaper', label={}), widget.GroupBox(fontsize=12, 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[3], highlight_method="line", this_current_screen_border=colors[2], this_screen_border=colors[1], other_current_screen_border=colors[1], other_screen_border=colors[1],
widget.TextBox('|'), widget.CPUGraph(graph_color=colors['green'], border_color=colors['black'], samples=30), widget.MemoryGraph(graph_color=colors['blue'], border_color=colors['black'], samples=30), widget.NetGraph(graph_color=colors['yellow'], border_color=colors['black'], samples=30), widget.Wlan(interface="wlp2s0"), widget.TextBox('|'), widget.Battery(notify_below=15), widget.TextBox('|'), widget.Clock(format='%Y-%m-%d %a %I:%M %p'), widget.Wallpaper(random=True, label='') ], 28, background=colors['background'], ) secondary = bar.Bar( [ widget.GroupBox(active=colors['green'], this_current_screen_border=colors['yellow'], urgent_color=colors['magenta'], urgent_border=colors['magenta'], borderwidth=1), widget.CurrentLayoutIcon(), widget.Prompt(), widget.TaskList(border=colors['blue'], borderwidth=1),
], 30, ), bottom=bar.Bar( [ widget.GroupBox(), widget.Sep(), widget.CPUGraph(), widget.Memory(), widget.MemoryGraph(), widget.Sep(), widget.Backlight(backlight_name="intel_backlight", format="bright: {percent:2.0%}"), widget.Sep(), widget.Wallpaper( directory=os.path.expanduser("~/Pictures/wallpapers"), random_selection=True), widget.Sep(), widget.Pacman(), widget.Volume(), ], 30, ), ) ] # Drag flzaoating layouts. mouse = [ Drag([mod], "Button1", lazy.window.set_position_floating(),
fontsize=26, text="", foreground="4361EE", padding=0, background=colors[0], ), #widget.WindowTabs(font="Hack Bold", background=colors[0],), widget.Spacer(), ###### RIGHT SIDE OF PANEL ###### #widget.CurrentLayout(), #widget.Net(interface='wlp3s0'), widget.Wallpaper( directory="/home/pablo/wallpapers/", random_selection=True, ), widget.TextBox( font="Hack", fontsize=26, text="", foreground="7209B7", padding=1, background=colors[0], ), widget.TextBox(text="", fontsize=30, background="7209B7", padding=2), widget.Net( interface='wlp3s0',
from libqtile import bar, widget from mic import MicIndicator from mybat import Battery from assets import colors, Commands, KeyboardLayout import os # pylint: disable=no-member inoffensive_green = '339966' single_monitor_bottom_bar = bar.Bar( [ widget.Wallpaper( directory=os.path.expanduser("~/Pictures/wallpapers/"), label=""), widget.GroupBox(disable_drag=True), widget.Prompt(), widget.TaskList(background='000000', highlight_method='block', max_title_width=300), widget.Systray(), # widget.Battery( # energy_now_file='charge_now', # energy_full_file='charge_full', # power_now_file='current_now', # discharge_char='↓', # charge_char='↑', # format='{char} {percent:2.0%}', # foreground=colors['yellow'], # low_foreground=colors['red'] # ), widget.CurrentLayout(), widget.Battery(
layout.Max(), layout.xmonad.MonadTall(border_focus='FF6600',border_width=1,margin=20), ] widget_defaults = dict( font='sans', fontsize=12, padding=3, ) extension_defaults = widget_defaults.copy() screens = [ Screen( top=bar.Bar( [ widget.Wallpaper(directory='/home/jlain/Pictures/wallpapers/'), widget.GroupBox(), widget.WindowName(), widget.CPUGraph(), widget.MemoryGraph(fill_color='e99814', graph_color='e99814'), widget.sep.Sep(foreground='7b5830'), #add separator bars where deemed necessary widget.CurrentLayoutIcon(), widget.sep.Sep(foreground='7b5830'), #add separator bars where deemed necessary widget.Volume(emoji=True), widget.Volume(), widget.sep.Sep(foreground='7b5830'), # widget.Wlan(), widget.sep.Sep(foreground='7b5830'), widget.BatteryIcon(), widget.Battery(), widget.sep.Sep(foreground='7b5830'), #add separator bars where deemed necessary
def create_widgets(): return [ # widget.Sep( # linewidth=0, # padding=3, # foreground=colors[0], # background=colors[0], # ), widget.Image(filename="~/.config/qtile/icons/python.png", mouse_callbacks={'Button1': lambda: lazy.spawncmd()}, background=colors[0]), widget.GroupBox(font="Mononoki Nerd Font Bold", fontsize=11, 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[5], 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="Mononoki Nerd Font", padding=10, foreground=colors[5], background=colors[0]), widget.Sep(linewidth=0, padding=40, foreground=colors[2], background=colors[0]), widget.WindowName(foreground=colors[3], background=colors[0], padding=0), widget.WidgetBox( background=colors[0], foreground=colors[4], widgets=[ # widget.OpenWeather( # coordinates={"longitude": "45.1833", "latitude": "23.8"}, # background=colors[0], # foreground=colors[4], # ), widget.KeyboardLayout( background=colors[0], foreground=colors[5], configured_keyboards=['us', 'ro'], ), widget.Backlight( backlight_name="intel_backlight", format=' {percent:2.0%}', foreground=colors[6], background=colors[0], ), widget.TextBox(text="", padding=2, foreground=colors[7], background=colors[0], fontsize=13), widget.ThermalSensor(foreground=colors[7], background=colors[0], threshold=90, padding=5), widget.CPU(background=colors[0], foreground=colors[3], format=' {freq_current}GHz {load_percent}%', padding=5, update_interval=5.0), ], ), widget.Wallpaper(directory='~/repos/wallpapers/', wallpaper_command=None, foreground=colors[1], background=colors[0]), widget.Memory(foreground=colors[4], background=colors[0], format='{MemUsed: .0f}M/{MemTotal: .0f}M', mouse_callbacks={ 'Button1': lambda qtile: qtile.cmd_spawn(myTerm + ' -e htop') }, padding=5), widget.Wlan(foreground=colors[6], background=colors[0], padding=5), widget.Volume(foreground=colors[5], background=colors[0], fmt=' {}', padding=5), widget.CurrentLayoutIcon( # custom_icon_paths=[os.path.expanduser("~/.config/qtile/icons")], foreground=colors[7], background=colors[0], padding=0, scale=0.7), widget.CurrentLayout(foreground=colors[1], background=colors[0], padding=5), widget.Clock(foreground=colors[3], background=colors[0], format=" %Y-%m-%d %H:%M", font="Mononoki Nerd Font"), widget.Sep(linewidth=0, padding=2, foreground=colors[4], background=colors[0]), widget.Battery( foreground=colors[2], background=colors[0], format='{char} {percent:2.0%}', charge_char='', discharge_char='', full_char='', empty_char='', update_interval=5, ), widget.Systray(foreground=colors[2], background=colors[0], icon_size=20, padding=5), ]