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 make_screen(): secondary_bar = bar.Bar([ widget.GroupBox(background=GRAY, highlight_method="block", urgent_border=SECONDARY, inactive=BLACK, disable_drag=True, other_current_screen_border=TERTIARY, this_current_screen_border=PRIMARY, other_screen_border=BLACK, this_screen_border=BLACK, highlight_color=TERTIARY), _separator(GRAY, BLACK), widget.TaskList(background=BLACK, highlight_method="block", border=GRAY, title_width_method='uniform', urgent_border=SECONDARY, unfocused_border=GRAY, max_title_width=300), _separator(PRIMARY, BLACK, "left"), widget.CurrentLayoutIcon(background=PRIMARY) ], 24, background=BLACK) return Screen(bottom=secondary_bar)
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 generate_widgets(): """generate a widget list.""" widgets = [ widget.GroupBox(urgent_alert_method='border', urgent_border='FF0000', urgent_text='FF0000', fontsize=defaut_font_size, borderwidth=2, other_screen_border='AAAA40', this_screen_border='AAAA40', this_current_screen_border='FFFF40', other_current_screen_border='FFFF40', inactive="606060", use_mouse_wheel=False, disable_drag=True,), widget.Sep(padding=6, height_percent=60), widget.Prompt(), # widget.Notify(default_timeout=10), widget.TaskList(), widget.Sep(padding=6, height_percent=60), widget.Systray(padding=5), widget.Sep(padding=6, height_percent=60), # yaourt -S lm_sensors widget.ThermalSensor(foreground="aaaaaa", foreground_alert="ee5555", threshold=75, tag_sensor="Package id 0", update_interval=10), widget.Sep(padding=6, height_percent=60), ] widgets.extend([ widget.Backlight(backlight_name='intel_backlight', update_interval=1), widget.Sep(padding=6, height_percent=60), widget.BatteryIcon(), widget.Battery(), widget.Sep(padding=6, height_percent=60), ]) widgets.extend([ widget.Volume(emoji=True, # yaourt -S noto-fonts-emoji font="NotoColorEmoji-Regular", # yaourt -S humanity-icons # theme_path='/usr/share/icons/Humanity/status/22/', # font='Arial', update_interval=1), widget.Sep(padding=6, height_percent=60), widget.Clock(format='%a %d-%m-%Y %H:%M:%S'), widget.Sep(padding=6, height_percent=60), ]) widgets.extend([ ConnectionStatus(name="protonvpn", font="NotoColorEmoji-Regular", fmt_ok="\U0001F510", fmt_nok="\U0001F513"), ]) widgets.extend([ widget.CurrentLayoutIcon(foreground="00eedd", scale=0.8), ]) return widgets
def init_bottom_widgets_list(): return [ widget.Sep( linewidth=0, padding=3, ), widget.TaskList( fontsize=11, margin_x=0, margin_y=1, padding_x=6, padding_y=2.3, borderwidth=1, icon_size=14, spacing=1, # max_title_width = 190, title_width_method='uniform', urgent_alert_method="text", highlight_method="block", txt_minimized="V ", txt_maximized="", txt_floating="", # unfocused_border = "None", rounded=True, # border = colors["blue"], ), widget.Sep( linewidth=0, padding=3, ), widget.Image(scale=True, filename="~/.config/qtile/bar06.png", background=colors["red"]), widget.TextBox(fontsize=14, text=" ↯", background=colors["grey"]), widget.ThermalSensor(tag_sensor="CPU", threshold=80, update_interval=1, foreground_alert=colors["red"], foreground=colors["white"], background=colors["grey"]), widget.Sep(linewidth=0, padding=3, background=colors["grey"]), widget.TextBox(font=fonts["bold"], fontsize=14, text="⌬", background=colors["grey"]), widget.Memory(fmt='{MemAvailable}M/{MemTotal}M', update_interval=1, background=colors["grey"]), widget.Sep(linewidth=0, padding=3, background=colors["grey"]), widget.TextBox(font=fonts["bold"], fontsize=14, text="🕒", background=colors["grey"]), widget.Clock(format="%a, %b %d - %H:%M", background=colors["grey"]), widget.Sep(linewidth=0, padding=3, background=colors["grey"]) ]
def _create_tasklist(): return widget.TaskList( border=_active_color, borderwidth=1, highlight_method='block', markup_floating='f', markup_focused='', markup_maximized='m', markup_minimized='_', markup_normal='')
def init_screens(): return [ Screen( top=bar.Bar( [ widget.TextBox(str(ul), fontsize=32, spacing=0, padding=0), widget.GroupBox( rounded=False, hide_unused=True, # setting background causes the whole widget to become # that color for some reason # background=theme['foreground'], # foreground=theme['background'], # inactive=theme['background'], # active=theme['foreground'], # this_screen_border=theme['foreground'], # this_current_screen_border=theme['background'], spacing=5, padding=0), widget.TextBox( text=lr + ul, fontsize=32, spacing=0, padding=0), # TODO: Make CurrentLayout Widget display custom texts. # > Possibly as simple as editing layout.name widget.CurrentLayout(scale=0.6), widget.Prompt(prompt='$', padding=32), widget.TextBox(padding=100), widget.TextBox(lr, fontsize=32, spacing=0, padding=0), widget.TaskList(icon_size=0, spacing=10, highlight_method='border', border=theme['color14'], background=theme['foreground'], foreground=theme['background']), widget.TextBox(ul, fontsize=32, spacing=0, padding=0), widget.TextBox(padding=100), widget.TextBox(lr + ul, fontsize=32), widget.Systray(), widget.TextBox(lr, fontsize=32), widget.Clock(background=theme['foreground'], foreground=theme['background'], format='%Y%m%d[%w].%H%M:%S'), widget.TextBox(background=theme['foreground'], padding=4), widget.Pomodoro( color_inactive=theme['color10'], color_active=theme['color11'], color_break=theme['color12'], foreground=theme['color2'], background=theme['foreground'], ), widget.TextBox(background=theme['foreground'], padding=4), ], 15), ), ]
def topbar_widgets(): widgets = [] widgets.extend([ widget.CurrentLayoutIcon( padding=0, scale=0.6, ), widget.GroupBox( disable_drag=True, spacing=2, ), widget.Sep( padding=8, size_percent=100, ), widget.Prompt(record_history=False, ), widget.TaskList( spacing=2, max_title_width=200, txt_floating='🗗 ', txt_maximized='🗖 ', txt_minimized='🗕 ', ), widget.PulseVolume(), ]) if Path('/sys/class/power_supply/BAT0').exists(): widgets.extend([ widget.Battery( format= '<span size="8000" rise="1550">{char}</span>{percent:.0%}', charge_char='🡱 ', discharge_char='🡳 ', empty_char='', full_char='', unknown_char='', ), ]) widgets.extend([ widget.Spacer(length=4, ), widget.Clock( padding=0, format='%I:%M%p %d/%m/%Y', ), widget.Systray(padding=4, ), widget.Spacer(length=4, ), ]) return widgets
def init_screen2(): return Screen(top=bar.Bar( widgets=[ widget.CurrentLayoutIcon( scale=0.75, foreground=colors[3], ), widget.Sep(**widget_defaults), widget.GroupBox(active='#FFFF99', inactive=colors[2], urgent_alert_method='block', highlight_method='block', this_current_screen_border=colors[3], this_screen_border=colors[0], other_current_screen_border=colors[3], other_screen_border=colors[0], disable_drag=True, spacing=0, padding_x=6, visible_groups=['q', 'w', 'e', 'r'], use_mouse_wheel=False, **widget_defaults), widget.Sep(**widget_defaults), widget.Prompt(padding=10, ), # widget.WindowName( # padding = 0 # ), widget.TaskList( border=colors[5], max_title_width=150, highlight_method='block', spacing=0, margin=0, padding_x=12, fontsize=14, txt_floating='[x]', icon_size=0, rounded=False, ), widget.Clock( background=colors[6], foreground=colors[0], format="%a, %m-%d; %H:%M", ), ], opacity=0.95, size=26, background='#12141a', ))
def makebar(): return bar.Bar( [ widget.GroupBox(), widget.Prompt(), widget.TaskList(), widget.Systray(), widget.CPUGraph(), widget.BatteryIcon( ), # theme_path="/usr/share/icons/ubuntu-mono-dark/status/24/"), # widget.Volume(), widget.Clock(format='%Y-%m-%d %a %H:%M'), ], 30, )
def task_list(bg=theme.background, fg=theme.foreground): return widget.TaskList( font=theme.font_bold, highlight_method=theme.tasklist_highlight_method, border=theme.selection_bg, foreground=fg, background=bg, rounded=theme.rounded_hightlights, txt_floating=" ", txt_maximized=" ", txt_minimized=" ", icon_size=theme.tasklist_icon_size, max_title_width=150, padding_x=5, padding_y=5, margin=0, )
def init_widgets_list2(): return left_widgets() + [ widget.TaskList(background=colors[0], border=colors[0]), widget_a_stock_info('sh000001', 'SZ'), # widget_us_stock_info('gb_didi', 'DD'), # widget_us_stock_info('gb_tal', 'HWL'), # widget_a_stock_info('sz300013', 'XN'), # widget_a_stock_info('sz002673', 'XB'), # widget_a_stock_info('sz002385', 'DBN'), widget_a_stock_info('sh601179', 'XD'), # widget_us_stock_info('gb_edu', 'XDF'), # widget_a_stock_info('sh600198', 'DT'), widget_a_stock_info('sz000516', 'GJYX'), # widget_us_stock_info('gb_bidu', 'BD'), widget_a_stock_info('sh600258', 'SL'), widget_clock, ]
def init_widgets_list1(): widgets_list = left_widgets() + [ widget.TaskList(background=colors[0], border=colors[0]), widget.Net(interface="enp0s3", fmt="{:>20}", format='{down} ↓↑ {up}', foreground=colors[2], background=colors[0], mouse_callbacks={ 'Button1': lambda qtile: qtile.cmd_spawn("stacer") }, padding=0), sep_widget, widget.CPU(background=colors[0], max_chars=15), sep_widget, widget.Memory(foreground=colors[2], background=colors[0], mouse_callbacks={ 'Button1': lambda: qtile.cmd_spawn('kitty -e htop') }, padding=5), sep_widget, widget.TextBox(text=" Vol:", foreground=colors[2], background=colors[0], padding=0), widget.Volume(foreground=colors[2], background=colors[0], padding=5), sep_widget, widget.CurrentLayoutIcon( custom_icon_paths=[os.path.expanduser("~/.config/qtile/icons")], foreground=colors[0], background=colors[0], padding=0, scale=-1.7), widget.CurrentLayout( foreground=colors[2], background=colors[0], padding=2), sep_widget, widget_clock, widget.Sep(linewidth=0, padding=10, foreground=colors[0], background=colors[0]), widget.Systray(background=colors[0], padding=0), ] return widgets_list
def detect_screens(qtile): while len(screens) < len(qtile.conn.pseudoscreens): screens.append( Screen( top=bar.Bar( [ widget.GroupBox(), widget.CurrentLayout(), widget.TaskList( highlight_method='block', max_title_width=800, urgent_border=color_alert ), widget.Clock(format='%Y-%m-%d %a %I:%M %p'), ], 24 ) ) )
def init_widgets_list(): bar = [ widget.GroupBox( font="Ubuntu Nerd Font Mono Regula", fontsize=18, padding=4, borderwidth=1, urgent_border=DARK_BLUE, disable_drag=True, highlight_method="block", this_screen_border=DARK_BLUE, other_screen_border=DARK_ORANGE, this_current_screen_border=BLUE, other_current_screen_border=ORANGE), widget.TextBox(text="◤", fontsize=45, padding=-7, foreground=DARK_GREY, background=GREY), widget.TaskList(borderwidth=0, highlight_method="block", background=GREY, border=DARK_GREY, urgent_border=DARK_BLUE, markup_floating="<i>{}</i>", markup_minimized="<s>{}</s>"), widget.Systray(background=GREY, foreground=DARK_GREY), widget.TextBox(text="◤", fontsize=45, padding=-7, foreground=GREY, background=DARK_GREY), widget.PulseVolume(fmt=" {}", emoji=True, volume_app="pavucontrol"), widget.PulseVolume(volume_app="pavucontrol"), widget.Clock( format=" ⏱ %H:%M <span color='#666'>%A %d-%m-%Y</span> ") ] if os.path.isdir("/sys/module/battery"): bar.insert(-1, widget.Battery(format=" {char} {percent:2.0%} ", charge_char="⚡", discharge_char="🔋", full_char="⚡", unknown_char="⚡", empty_char="⁉️ ", update_interval=2, show_short_text=False, default_text="")) bar.insert(-1, widget.Battery(fmt="<span color='#666'>{}</span> ", format="{hour:d}:{min:02d}", update_interval=2, show_short_text=True, default_text="")) return bar
def detect_screens(qtile): while len(screens) < len(qtile.conn.pseudoscreens): screens.append( Screen(top=bar.Bar( [ widget.GroupBox( disable_drag=True, this_current_screen_border=color_frame, this_screen_border=color_frame, ), widget.CurrentLayout(), widget.TaskList( font='Nimbus Sans L', border=color_frame, highlight_method='block', max_title_width=800, urgent_border=color_alert, ), ], 32, ), ))
def init_widgets(): prompt = "{0}@{1}: ".format(os.environ["USER"], socket.gethostname()) widgets = [ widget.Prompt(prompt=prompt, font="DejaVu Sans Mono", padding=10, background=colors[1]), widget.TextBox(text="◤ ", fontsize=45, padding=-8, foreground=colors[1], background=colors[2]), widget.GroupBox(fontsize=8, padding=4, borderwidth=1, this_current_screen_border=colors[0]), widget.TextBox(text="◤", fontsize=45, padding=-1, foreground=colors[2], background=colors[1]), widget.TaskList(borderwidth=1, background=colors[1], border=colors[0], urgent_border=colors[0]), widget.Systray(background=colors[1]), widget.TextBox(text="◤", fontsize=45, padding=-1, foreground=colors[1], background=colors[2]), widget.TextBox(text=" ↯", foreground=colors[0], fontsize=14), widget.Battery(update_delay=5), widget.TextBox(text=" ⌚", foreground=colors[0], fontsize=18), widget.Clock(fmt="%a %d-%m-%Y %H:%M") ] if DEBUG: widgets += [widget.Sep(), widget.CurrentLayout()] return widgets
def get_bar(): return bar.Bar( [ widget.CurrentScreen(), widget.Sep(), widget.GroupBox(disable_drag=True), widget.Sep(), widget.CurrentLayout(), widget.Sep(), widget.Chord( chords_colors={ 'launch': ("#ff0000", "#ffffff"), }, name_transform=lambda name: name.upper(), ), widget.Prompt(), widget.TaskList(), widget.BatteryIcon(battery=1), #widget.Systray(), widget.Clock(format='%a %d %b %H:%M '), ], 24, )
widget.TextBox(text="\u25e4 ", fontsize=42, padding=-8, foreground=grey), widget.GroupBox(borderwidth=4, highlight_method='line', margin=0, disable_drag=True, this_current_screen_border=cyan, this_screen_border=lt_grey, other_screen_border=med_grey, urgent_border=red), widget.TextBox(text="\u25e4", fontsize=42, padding=-1, foreground=dk_grey, background=grey), widget.TaskList(borderwidth=1, background=grey, border=cyan, urgent_border=red), widget.TextBox(text="\u25e4 ", fontsize=42, padding=-8, foreground=grey), #widget.TextBox(text=u'\U0001f321'), widget.Systray(), widget.TextBox(text="\u2328", foreground=cyan), widget.KeyboardLayout(configured_keyboards=["us dvorak", "us"], foreground=cyan, update_interval=5), tempsensor.TempSensor(font="fontawesome"), networkmonitor.NetworkMonitor(font="fontawesome"), volume.Volume(font="fontawesome"), widget.Clock(format='%m-%d-%Y %a %H:%M:%S'), ] widgets2 = [
foreground=colours["fg_normal"], ) extension_defaults = widget_defaults.copy() 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(),
border_width=3, margin=3, ) extension_defaults = widget_defaults.copy() screens = [] for screen in range(0, num_screens): screens.append( Screen( top=bar.Bar( [ widget.GroupBox(disable_drag=True), # widget.Prompt(), # widget.WindowName(), widget.TaskList(), widget.Systray(), widget.Sep(linewidth=2, padding=2), widget.TextBox("ЪДа"), widget.Memory(), widget.Sep(linewidth=2, padding=2), widget.TextBox("ЪќЦ№ИЈ"), widget.ThermalSensor(tag_sensor="Package id 0"), widget.Sep(linewidth=2, padding=2), widget.TextBox("ЪЊХ"), widget.Net(interface=["wlo1"], update_interval=10, format='{down}РєЊРєЉ{up}'), widget.Sep(linewidth=2, padding=2), widget.TextBox("ЪЊй№ИЈ"), widget.ThermalSensor(tag_sensor="temp1"),
mod = 'mod4' import os # defaults for widgets and extensions widget_defaults = dict(font='sans', fontsize=16, padding=6) extension_defaults = widget_defaults.copy() bottom_bar_widgets = [ widget.CurrentLayoutIcon(), widget.GroupBox(), CryptoTicker(currency='usd', from_currency='bitcoin', format='{to_price}:{percent_change_1h}|{percent_change_24h}%', update_interval=60), widget.Prompt(), widget.TaskList(rounded=False, margin_y=8, margin_x=1, padding_x=1), widget.Battery(), widget.Volume(), widget.Systray(), widget.Clock(format='%Y-%m-%d %a %I:%M %p'), ] screens = [ Screen(bottom=bar.Bar(size=40, widgets=bottom_bar_widgets)), ] # Drag floating layouts. mouse = [ Drag([mod], "Button1", lazy.window.set_position_floating(),
FONT_PARAMS = { 'font': 'TerminessTTF Nerd Font Medium', 'fontsize': 10, 'foreground': "#ebdbb2", } primary = 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), widget.TextBox("", **FONT_PARAMS), widget.Volume(**FONT_PARAMS), widget.TextBox('|'), widget.Systray(), widget.TextBox('|'), widget.CPUGraph(border_color="#d79921", graph_color="#d79921", border_width=1, line_width=1, type="line", width=50, **FONT_PARAMS), MemoryGraph(border_color="#458588", graph_color="#076678", border_width=1,
def init_screen1(): return Screen(top=bar.Bar( widgets=[ widget.CurrentLayoutIcon( scale=0.75, foreground=colors[3], ), widget.Sep(**widget_defaults), widget.GroupBox(active='#FFFF99', inactive=colors[2], urgent_alert_method='block', highlight_method='block', this_current_screen_border=colors[3], this_screen_border=colors[0], other_current_screen_border=colors[3], other_screen_border=colors[0], disable_drag=True, spacing=0, padding_x=6, visible_groups=['a', 's', 'd', 'f'], use_mouse_wheel=False, **widget_defaults), widget.Sep(**widget_defaults), widget.Prompt(padding=10, ), widget.TaskList( border=colors[5], max_title_width=150, highlight_method='block', spacing=0, margin=0, padding_x=12, fontsize=14, txt_floating='[x]', icon_size=0, rounded=False, ), widget.Systray( background=colors[6], **widget_defaults, ), widget.BatteryIcon( theme_path='/home/xiangchong/.config/qtile/battery-icons/', background=colors[4], spacing=3, padding_x=6, ), widget.CPU( foreground=colors[3], background=colors[4], max_chars=12, format='CPU:{load_percent:02.0f}%;', spacing=0, padding_x=6, ), widget.Memory( foreground=colors[3], background=colors[4], max_chars=12, measure_mem='G', measure_swap='G', spacing=1, padding_x=6, format='Mem:{MemUsed:02.0f}{mm}/{MemTotal:.0f}{mm}', ), widget.Countdown( background=colors[6], date=datetime(2022, 4, 1), format='{D} Days;', update_interval=3600, # background = colors[1], foreground=colors[0], spacing=1, padding_x=6, ), widget.Clock( background=colors[6], foreground=colors[0], format="%a, %m-%d; %H:%M", ), ], opacity=.95, size=26, background='#12141a', ))
font='Noto Serif', fontsize=scale(16), padding=scale(1.5), ) screens = [ Screen(top=bar.Bar( [ widget.GroupBox(margin_x=1, margin_y=0, fontsize=scale(12), disable_drag=True, inactive='909090', font='DejaVu Sans'), widget.Prompt(), widget.TaskList(highlight_method='block', max_title_width=scale(200)), widget.Notify(), widget.Systray(icon_size=scale(22)), Backlight(), widget.Volume(foreground="70ff70"), widget.MemoryGraph(foreground='908'), widget.SwapGraph(foreground='C02020'), widget.Sep(), widget.NetGraph(interface='wlp1s0'), widget.Battery( energy_now_file='charge_now', energy_full_file='charge_full', power_now_file='current_now', update_delay=5, foreground="7070ff", ),
foreground=COLORS["Snow Storm"][2], ) extension_defaults = widget_defaults.copy() separator = copy(widget.Sep(linewidth=2)) arrow_left = dict(text='', fontsize=43, padding=0) icons = dict(fontsize=22, padding=0) screens = [ Screen(top=bar.Bar([ widget.CurrentLayoutIcon(), widget.GroupBox(invert_mouse_wheel=True), separator, widget.TaskList( font="FiraMono Bold", markup_focused="<b>{}</b>", txt_floating="🗗 ", txt_maximized="🗖 ", txt_minimized="🗕 ", border=COLORS["Polar Night"][3], ), widget.TextBox(foreground=COLORS["Frost"][3], **arrow_left), widget.TextBox(background=COLORS["Frost"][3], text="", **icons), widget.Systray(background=COLORS["Frost"][3]), widget.TextBox(foreground=COLORS["Aurora"][1], background=COLORS["Frost"][3], **arrow_left), widget.TextBox(background=COLORS["Aurora"][1], text="墳", **icons), widget.Volume(volume_down_command="amixer -D pulse sset Master 5%-", volume_up_command="amixer -D pulse sset Master 1%+", volume_app="pavucontrol", background=COLORS["Aurora"][1]), widget.TextBox(foreground=COLORS["Aurora"][0],
# layout.Zoomy(), ] widget_defaults = dict( font="sans", fontsize=12, padding=3, ) extension_defaults = widget_defaults.copy() _bar = lambda light: bar.Bar( [ widget.CurrentLayoutIcon(scale=0.8), widget.GroupBox(highlight_method="block"), widget.Prompt(), widget.TaskList(max_title_width=128), ] + ([ Spotify(update_interval=5), widget.TextBox(text="🌐"), widget.NetGraph(), widget.TextBox(text="🏽"), widget.CPUGraph(), widget.TextBox(text="🔋"), widget.Battery(), widget.TextBox(text="🔉"), widget.PulseVolume(), ] if not light else []) + [ widget.TextBox("🕐"), widget.Clock(format="%Y-%m-%d %a %H:%M"), ], 24,
def init_widgets_list(): prompt = "{0}@{1}: ".format(os.environ["USER"], socket.gethostname()) widgets_list = [ widget.Sep(linewidth=1, padding=10, foreground=colors[15], background=colors[15]), # widget.Image( filename="~/.config/qtile/icons/garuda-red.png", iconsize=9, background=colors[15], mouse_callbacks={'Button1': lambda: qtile.cmd_spawn('jgmenu_run')}), widget.GroupBox(**base(bg=colors[15]), font='UbuntuMono Nerd Font', fontsize=11, margin_y=3, margin_x=2, padding_y=5, padding_x=4, borderwidth=3, active=colors[5], inactive=colors[6], rounded=True, highlight_method='block', urgent_alert_method='block', urgent_border=colors[16], this_current_screen_border=colors[20], this_screen_border=colors[17], other_current_screen_border=colors[13], other_screen_border=colors[17], disable_drag=True), widget.TaskList( highlight_method='border', # or block icon_size=17, max_title_width=150, rounded=True, padding_x=0, padding_y=0, margin_y=0, fontsize=14, border=colors[7], foreground=colors[9], margin=2, txt_floating='🗗', txt_minimized='>_ ', borderwidth=1, background=colors[20], #unfocused_border = 'border' ), widget.CurrentLayoutIcon( custom_icon_paths=[os.path.expanduser("~/.config/qtile/icons")], foreground=colors[5], background=colors[3], padding=0, scale=0.7), widget.CurrentLayout(font="Noto Sans Bold", fontsize=12, foreground=colors[5], background=colors[3]), widget.Net( font="Noto Sans", fontsize=12, # Here enter your network name interface=["wlp6s0"], format='{down} ↓↑ {up}', foreground=colors[5], background=colors[19], padding=0, ), widget.CPU( font="Noto Sans", #format = '{MemUsed}M/{MemTotal}M', update_interval=1, fontsize=12, foreground=colors[5], background=colors[22], mouse_callbacks={ 'Button1': lambda: qtile.cmd_spawn(myTerm + ' -e htop') }, ), widget.Memory( font="Noto Sans", format='{MemUsed: .0f}M/{MemTotal: .0f}M', update_interval=1, fontsize=12, measure_mem='M', foreground=colors[5], background=colors[16], mouse_callbacks={ 'Button1': lambda: qtile.cmd_spawn(myTerm + ' -e htop') }, ), widget.Clock(foreground=colors[9], background=colors[23], fontsize=12, format="%Y-%m-%d %H:%M"), widget.Systray(background=colors[10], icon_size=20, padding=4), ] return widgets_list
padding=4, ) extension_defaults = widget_defaults.copy() screens = [ Screen( bottom=bar.Bar( [ widget.GroupBox(hide_unused=True, disable_drag=True, highlight_method='line', this_current_screen_border='7b5830', urgent_alert_method='text'), widget.TaskList( border='7b5830', borderwidth=1, txt_minimized='', txt_floating='', markup_focused='<span underline="low">{}</span>'), widget.Prompt(), # widget.GenPollText( # func=user.inbox, foreground='fe1b22', update_interval=300), widget.GenPollText(func=user.iCWidget, update_interval=20), widget.Battery(hide_threshold=0.9), # widget.GenPollText(func=user.netSpeedUp, update_interval=2), # widget.TextBox(text='⇅', padding=0), # widget.GenPollText(func=user.netSpeedDown, update_interval=2), widget.GenPollText(func=user.pacmanUpdates, update_interval=1800), widget.Mpd2(idle_message='',
highlight_method="block", urgent_border=SECONDARY, inactive=BLACK, disable_drag=True, other_current_screen_border=TERTIARY, this_current_screen_border=PRIMARY, other_screen_border=BLACK, this_screen_border=BLACK, highlight_color=TERTIARY), _separator(GRAY, PRIMARY), widget.CurrentLayout(background=PRIMARY), _separator(PRIMARY, BLACK), widget.TaskList(background=BLACK, highlight_method="block", border=GRAY, title_width_method='uniform', urgent_border=SECONDARY, unfocused_border=GRAY, max_title_width=300), widget.Sep(foreground=BLACK, background=BLACK), _separator(GRAY, BLACK, "left"), widget.CPUGraph(background=GRAY, type="line", line_width=1, border_width=2, border_color=PRIMARY, graph_color=PRIMARY, width=50), widget.MemoryGraph(background=GRAY, type="line", line_width=1,