def setup_screens(qtile): global screens screens.append( Screen(bottom=bar.Bar( [ widget.GroupBox(), widget.Prompt(), widget.WindowName(), widget.Clipboard(), widget.Battery(hide_threshold=99), widget.CPUGraph(graph_color='F8FF33', fill_color='FCFFAD.3'), widget.MemoryGraph(graph_color='31F500', fill_color='9DFF85.3'), widget.NetGraph(), widget.DF(warn_space=10, update_interval=300), widget.Volume(), widget.Systray(), widget.Notify(), widget.Clock(format='%Y-%m-%d %a %H:%M'), ], 30, ), ), ) if len(qtile.conn.pseudoscreens) > 1: screens.append( Screen(bottom=bar.Bar( [ widget.GroupBox(), widget.WindowName(), widget.Clock(format='%H:%M'), ], 30, ), ), )
def screen(main=True): top = bar.Bar( widgets=list( filter( None, [ widget.GroupBox(), widget.Prompt(), widget.Spacer(), widget.CurrentLayout(), widget.Sep(), widget.WindowName(width=bar.CALCULATED, show_state=False), widget.Spacer(), widget.Clipboard(max_width=30), widget.Clock(format="%b %-d %H:%M"), (widget.PulseVolume() if main else None), (widget.Systray() if main else None), ], )), size=24, ) def update_bar_background(): if top.screen == top.qtile.current_screen: top.background = '#000000' else: top.background = '#666666' top.draw() hook.subscribe.current_screen_change(update_bar_background) return Screen(top=top)
def get_widgets(): return [ widget.CurrentLayoutIcon( custom_icon_paths=[os.path.expanduser("~/.config/qtile/icons")], scale=0.8, ), widget.GroupBox(), widget.WindowName(), widget.TextBox(" | ", name="separator"), widget.Clipboard(max_width=50, timeout=None), widget.TextBox(" | ", name="separator"), widget.TextBox("CPU", name="cpu_label"), widget.CPUGraph(**graph_args), widget.TextBox("Mem", name="memory_label"), ColoredMemoryGraph(**graph_args), widget.TextBox("Net", name="net_label"), widget.NetGraph(**graph_args), widget.TextBox(" | ", name="separator"), widget.DF( mouse_callbacks={'Button1': lambda: qtile.cmd_spawn('qdirstat')}, format='{uf}/{s}{m} free on {p}', visible_on_warn=False), # TODO figure out why this doesn't work # widget.HDDBusyGraph(**graph_args), widget.TextBox(" | ", name="separator"), widget.Image(filename='~/.config/qtile/icons/volume-icon.png', margin_y=4), widget.Volume(fmt='{}'), widget.TextBox(" | ", name="separator"), widget.Image(filename='~/.config/qtile/icons/battery-icon.png'), widget.Battery( format='{percent:2.0%} {char}{watt:.1f}W', charge_char='+', discharge_char='-', update_interval=15, # seconds ), widget.TextBox(" | ", name="separator"), widget.Image(filename='~/.config/qtile/icons/brightness-icon.png', margin_x=1, margin_y=4.5), widget.Backlight(format='{percent: 2.0%}', backlight_name='intel_backlight'), widget.TextBox(" | ", name="separator"), # Requires # sudo apt install libiw-dev # pip install iwlib widget.Wlan(interface='wlp2s0', format=' {essid} {quality}%', mouse_callbacks={ 'Button1': lambda: qtile.cmd_spawn('cinnamon-settings network') }), widget.TextBox(" | ", name="separator"), widget.Systray(), widget.Clock(format='%Y-%m-%d %a %I:%M %p'), ]
def top(): widgets = [widget.Sep(padding=10, foreground='000000'), glyph_backward(foreground=theme['colors']['color6']), widget.GroupBox(margin_x=0, background=theme['colors']['color6'], foreground=theme['colors']['color8'], this_current_screen_border=theme['colors']['color4'], highlight_method='block', rounded=False, use_mouse_wheel=False, center_aligned=True), # selected color 4, text 8 glyph_forward(background='000000', foreground=theme['colors']['color6']), widget.WindowName(), glyph_backward(background='000000', foreground=theme['colors']['color2']), widget.CurrentLayoutIcon(background=theme['colors']['color2']), glyph_forward(background=theme['colors']['color5'], foreground=theme['colors']['color2']), widget.Volume(emoji=True, background=theme['colors']['color5']), widget.Volume(emoji=False, background=theme['colors']['color5'])] widgets.extend(battery()) widgets.extend([widget.Sep(padding=10, foreground='000000'), widget.Sep(padding=10, foreground='000000'), widget.Systray(), widget.Clipboard(background=theme['colors']['color3']), widget.TextBox(text='\uf073'), widget.Clock(format='%a %H:%M %Y-%m-%d')]) return widgets
configured_keyboards=['us', 'lt sgs', 'ru phonetic'], # display_map={ # 'us': 'us ', # 'lt sgs': 'sgs', # # 'ru phonetic': 'ru', # }, options='compose:menu,grp_led:scroll', foreground=GREEN ) top = bar.Bar( [ widget.GroupBox(hide_unused=True), widget.CurrentLayoutIcon(scale=0.65), widget.WindowName(), widget.Clipboard(foreground=RED), widget.Moc(play_color=GREEN, noplay_color=YELLOW), widget.Systray(), 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),
screens = [ Screen(top=bar.Bar( [ widget.GroupBox(urgent_alert_method='text', disable_drag=True, active="#00226f", inactive="#bbbbbb", hilight_color="#4488ff", this_screen_border=ORANGE, other_current_screen_border=ORANGE, other_screen_border="#444444", urgent_screen_border="#ff4444", hilight_method="block", **widget_defaults), widget.Prompt(**widget_defaults), widget.Clipboard(timeout=None, width=bar.STRETCH, max_width=None), MyBatt(), MyBright(), widget.Systray(**widget_defaults), widget.Clock(format='%Y-%m-%d %a %I:%M %p', **widget_defaults), ], 30, ), ), ] def app_or_group(group, app): """ Go to specified group if it exists. Otherwise, run the specified app. When used in conjunction with dgroups to auto-assign apps to specific groups, this can be used as a way to go to an app if it is already running. """
theme = gloss_theme screens = [ Screen(top=bar.Bar( [ # This is a list of our virtual desktops. widget.GroupBox(urgent_alert_method='text', fontsize=11, this_current_screen_border='7b5830'), widget.sep.Sep(foreground='7b5830' ), #add separator bars where deemed necessary # A prompt for spawning processes or switching groups. This will be # invisible most of the time. widget.Prompt(fontsize=15), widget.Clipboard(timeout=10), # Current window name. widget.windowtabs.WindowTabs(), widget.CurrentLayout(foreground='7b5830'), widget.sep.Sep(foreground='7b5830'), #NetworkStatus(theme_path='/home/deewakar/.config/qtile/icons/'), # system usage widget.CPUGraph( core=0, width=21, line_width=2, graph_color='#0066FF', fill_color=['#0066FF', '#001111'], margin_x=0, border_width=1, background=theme["bg_dark"],
margin=0, highlight_method="block", rounded=False, this_current_screen_border=theme["gb_selected"], urgent_border=theme["gb_urgent"], active=theme["font_color"], background=theme["bg_dark"], ), widget.TextBox(text=u"◣", fontsize=40, padding=-1, font="Arial", foreground=theme["bg_dark"]), widget.DF(partition="/"), widget.Prompt(), widget.Clipboard(), widget.Clipboard(selection="PRIMARY"), widget.TextBox(text="", name="info"), widget.TextBox(text=u"◥", fontsize=40, padding=-1, font="Arial", foreground=theme["bg_dark"]), widget.TaskList( borderwidth=2, padding=2, margin=2, highlight_method="border", border=theme["gb_selected"], background=theme["bg_dark"], ),
screens = [ Screen( top=bar.Bar( [ widget.CurrentScreen(), widget.CurrentLayoutIcon(), widget.GroupBox(), widget.Prompt(), widget.WindowName(), widget.Chord( chords_colors={ 'launch': ("#ff0000", "#ffffff"), }, name_transform=lambda name: name.upper(), ), widget.Clipboard(), widget.BatteryIcon(), widget.Battery(), # widget.Wlan(), # requires iwlib widget.Systray(), widget.ThermalSensor(), # required psutil widget.Clock(format='%Y-%m-%d %a %H:%M'), widget.QuickExit(), ], 24, ), # right=bar.Bar([ # widget.CPU(), # widget.CPUGraph(), # # widget.Bluetooth(), # widget.TextBox("MEM"),
'Button3', lazy.window.set_size_floating(), start=lazy.window.get_size()), Click([mod], 'Button2', lazy.window.toggle_floating())) layouts = [ layout.Max(), layout.MonadTall(follow_max=True), ] screens = [ Screen(top=bar.Bar(widgets=[ widget.GroupBox(urgent_alert_method='text', **Theme.groupbox), widget.CurrentLayout(**Theme.widget), widget.WindowName(**Theme.widget), widget.Clipboard(timeout=10, **Theme.systray), widget.Systray(**Theme.systray), widget.Battery(**Theme.battery_text), widget.Pacman(execute=Commands.pacman, **Theme.pacman), widget.GmailChecker(fmt=u"✉ %s", username='******', password='******', status_only_unseen=True, **Theme.battery_text), widget.KeyboardLayout(configured_keyboards=['us', 'lt'], **Theme.widget), widget.Volume(emoji=True, mute_command=['amixer', '-q', 'set', 'Master', 'toggle'], **Theme.widget), widget.Clock(fmt='⏰ %Y-%m-%d %H:%M', **Theme.widget), widget.CPUGraph(graph_color="#FF0000", border_color="#FF0000"),
widget.WindowName( background=["#1e2127", "#1e2127"], #foreground=['#a151d3','#a151d3'], foreground=['#FF5555', '#FF5555'], font='UbuntuMono Nerd Font', ), widget.TextBox(text='|', background=["#1e2127", "#1e2127"], foreground=["#1c82f8", "#1c82f8"], fontsize=43, padding=-3), widget.Clipboard( fmt='{}', max_width=25, background=["#a653a6", "#a653a6"], foreground=["#1e2127", "#1e2127"], font='UbuntuMono Nerd Font', fontsize=18, timeout=40, #max_chars=20 ), widget.TextBox(text='|', background=["#1e2127", "#1e2127"], foreground=["#1c82f8", "#1c82f8"], fontsize=43, padding=-3), widget.TextBox(text='', background=["#1e2127", "#1e2127"], foreground=["#1c82f8", "#1c82f8"], fontsize=43, padding=-3), widget.TextBox(text=' ',