def get_status_bar_elements(conf, is_primary): status_bar_elements = [] status_bar_elements += [ widget.TextBox(text='CPU:', fontsize=12), # cpu uses family of dark orange colors widget.CPUGraph(border_color='8b4500', fill_color='cd6600', graph_color='ee7600'), widget.TextBox(text='Mem:', fontsize=12), widget.MemoryGraph(), ] if conf['battery']: status_bar_elements += [ widget.TextBox(text='Bat:', fontsize=12), widget.Battery(format='{char} {percent:2.0%}'), ] status_bar_elements += [ widget.sep.Sep(), widget.TextBox(text='Vol:', fontsize=12), widget.Volume(), widget.sep.Sep(), widget.GroupBox(fontsize=12, this_current_screen_border='#FF0000', urgent_border='#00FF00', disable_drag=True), widget.WindowName(fontsize=12), widget.sep.Sep(), ] if is_primary: status_bar_elements.append(widget.Systray()) status_bar_elements += [ widget.Clock(format='%b %d %I:%M', fontsize=12), ] return status_bar_elements
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 init_widgets(): return [ widget.GroupBox( font='Hack Bold', highlight_method='block', active=colors[2], inactive=colors[11], padding=0, ), widget.Prompt(), #widget.WindowName(), widget.Spacer(), widget.Systray(icon_size=20, padding=2), widget.Sep(), widget.CurrentScreen(), widget.Sep(), widget.Volume(foreground=colors[2]), widget.Sep(background=colors[0], padding=2), widget.CPUGraph(width=30, border_width=1, border_color="#000000", frequency=5, line_width=1, samples=50), widget.MemoryGraph( width=30, border_width=1, border_color="#000000", frequency=5, line_width=1, ), widget.NetGraph( width=30, border_width=1, border_color="#000000", frequency=5, line_width=1, ), widget.Sep(background=colors[0], padding=2), widget.Memory(foreground=colors[2]), widget.Sep(background=colors[0], padding=2), widget.Clock(foreground=colors[2], format='%a %d %b %I:%M %p'), widget.CurrentLayoutIcon(foreground=colors[2]), ]
def memory_graph(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.MemoryGraph( border_width=0, samples=95, line_width=2, graph_color=fg, fill_color="{}.5".format(fg), background=bg, ), ]
def init_screens(): widgetSets=[] screens=[] for i in range(0, numScreen ): widgetSets.append( [ widget.CurrentScreen(), widget.GroupBox(highlight_method="block",urgent_alert_method='text'), widget.CurrentLayout(), widget.Notify(audiofile= "/usr/share/skype/sounds/ChatOutgoing.wav", foreground_urgent="EE0000", foreground_low="dddddd", default_timeout=60, foreground="FF0000", fontsize=18, font="Ubuntu"), widget.Clock(format='%Y-%m-%d %a %H:%M %p', foreground='00FF7F'), widget.TextBox(text="Dim:"), widget.Backlight(brightness_file='/sys/class/backlight/intel_backlight/brightness', max_brightness_file='/sys/class/backlight/intel_backlight/max_brightness', ), widget.TextBox(text="Bat:"), widget.Battery(), widget.BatteryIcon(), widget.TextBox(text="Vol:"), widget.Volume(), widget.TextBox(text="C"), widget.CPUGraph(samples=100, width=200), widget.TextBox(text="D"), widget.NetGraph(samples=100, width=200, interface=network), widget.TextBox(text="U"), widget.NetGraph(samples=100, width=200, interface=network, bandwidth_type="up"), widget.TextBox(text="M"), widget.MemoryGraph(samples=100, width=200), ]) # truncate the last widget, and add on the systray, if we #widgetSets[ numScreen - 1 ] = widgetSets[ numScreen - 1 ][0:3] widgetSets[ numScreen - 1 ].insert( 0, widget.Systray() ) for i in range(0, numScreen ): screens.append( Screen(top = bar.Bar( widgetSets[ i ] , 30)) ) return(screens)
# widget.Net(background=Onedark[0],interface="enp2s0", format="{down}↓↑{up}", foreground=Onedark[6]), widget.TextBox(" │ ", foreground=Onedark[8], background=Onedark[0]), widget.TextBox("CPU ", fontsize=10, foreground=Onedark[5], background=Onedark[0]), widget.CPUGraph(background=Onedark[0], border_width=1, border_color=Onedark[5], graph_color=Onedark[3], frequency = 1, core = 0, type = 'line'), widget.CPU(foreground=Onedark[5], background=Onedark[0]), widget.TextBox(" │ ", foreground=Onedark[8], background=Onedark[0]), widget.TextBox("RAM ", fontsize=10, foreground=Onedark[3], background=Onedark[0]), widget.Memory(fontsize=10, foreground=Onedark[3], background=Onedark[0]), widget.MemoryGraph( background=Onedark[0], border_width=1, border_color=Onedark[3], graph_color=Onedark[3]), widget.TextBox(" │ ", foreground=Onedark[8], background=Onedark[0]), widget.Volume(fmt=" {}", background=Onedark[0], foreground=Onedark[2]), widget.TextBox(" │ ", foreground=Onedark[8], background=Onedark[0]), widget.Systray(background=Onedark[0], padding=10), widget.TextBox(" │ ", foreground=Onedark[8], background=Onedark[0]), widget.Clock(format='%a, %d %B %l:%M%p', background=Onedark[0]), widget.TextBox(" ", foreground=Onedark[8], background=Onedark[0]), ], 24, opacity=0.7, margin=0), ), ] # Drag floating layouts.
widget.CPUGraph(border_color=colors["yellow"], graph_color=colors["yellow"], background=colors["background"], border_width=1, line_width=1, type="line", width=100), separate(), widget.TextBox(text="", foreground=colors["green"], background=colors["background"], font="Font Awesome 5 Free Solid"), widget.MemoryGraph(border_color=colors["green"], graph_color=colors["green"], background=colors["background"], border_width=1, line_width=1, type="line", width=100), separate(), widget.TextBox(text="", foreground=colors["cyan"], background=colors["background"], font="Font Awesome 5 Free Solid"), widget.NetGraph(border_color=colors["cyan"], graph_color=colors["cyan"], background=colors["background"], border_width=1, line_width=1, type="line", width=100),
text="◢", fontsize=(FONT_SIZE * 5.25), padding=-1), widget.NetGraph(bandwidth_type="up", type="linefill", background="#CACACA", line_width=1), widget.CPUGraph(type="box", graph_color=theme.bg_active, border_color=theme.bg_active, background="#CACACA", border_width=2, line_width=1), widget.MemoryGraph(type="box", graph_color=theme.bg_active, border_color=theme.bg_active, background="#CACACA", border_width=2, line_width=1), widget.TextBox(font="Arial", foreground="#CACACA", text="◤ ", fontsize=(FONT_SIZE * 5.25), padding=-1), widget.Systray(), widget.Clock(format='%d.%m.%Y %H:%M'), widget.BatteryIcon(), # widget.Volume(get_volume_command="pamixer --get-volume",emoji=True), widget.QuickExit(), ], 28, background=theme.bg), ),
widget.GroupBox(urgent_alert_method='text', **widget_groupbox_defaults), widget.Spacer(width=bar.STRETCH), widget.Clock(format='%Y-%m-%d %a %I:%M %p', timezone='UTC', **widget_defaults), widget.TextBox(' /\ '), widget.Clock(format='%Y-%m-%d %a %I:%M:%S %p', **widget_defaults), widget.Spacer(width=5), ], size=17, **bar_defaults), top=bar.Bar(widgets=[ widget.WindowName(**widget_defaults), widget.TextBox('CPU:'), widget.CPUGraph(**widget_graph_defaults), widget.Spacer(width=2), widget.TextBox('Mem:'), widget.MemoryGraph(**widget_graph_defaults), widget.Spacer(width=2), widget.TextBox('Swap:'), widget.SwapGraph(**widget_graph_defaults), widget.Spacer(width=2), widget.TextBox('HDD:'), widget.HDDGraph(space_type='used', **widget_graph_defaults), widget.Spacer(width=2), widget.TextBox('Net:'), widget.NetGraph(**widget_graph_defaults), widget.Spacer(width=4), widget.TextBox('Vol:'),
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, border_width=2, border_color=TERTIARY, graph_color=TERTIARY, width=50), widget.NetGraph(background=GRAY, type="line", line_width=1, border_width=2, border_color=SECONDARY, graph_color=SECONDARY, width=50), widget.Clock(format="%Y-%m-%d %a %I:%M %p", background=GRAY), _separator(TERTIARY, GRAY, "left"), widget.Systray(background=TERTIARY), _separator(SECONDARY, TERTIARY, "left"), widget.Prompt(background=SECONDARY),
background=theme["bg_dark"], ), widget.CPUGraph( core=1, width=21, line_width=2, graph_color='#0066FF', fill_color=['#0066FF', '#001111'], margin_x=0, border_width=1, background=theme["bg_dark"], ), widget.MemoryGraph( width=42, line_width=2, graph_color='#22BB44', fill_color=['#11FF11', "#002200"], border_width=1, background=theme["bg_dark"], ), widget.SwapGraph( width=42, line_width=2, graph_color='#CC2020', fill_color=['#FF1010', '#221010'], border_width=1, background=theme["bg_dark"], ), widget.Battery( energy_now_file="charge_now", energy_full_file="charge_full", power_now_file="current_now",
[ 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.Volume(update_interval=2), widget.TextBox('|'), widget.Systray(), widget.TextBox('|'), widget.CPUGraph(graph_color=colors['green'], border_color=colors['black']), widget.MemoryGraph(graph_color=colors['blue'], border_color=colors['black']), widget.NetGraph(graph_color=colors['yellow'], border_color=colors['black']), # widget.Wlan(interface="wlp2s0"), widget.TextBox('|'), widget.ThermalSensor(), widget.TextBox('|'), widget.Battery(), widget.TextBox('|'), widget.Clock(format='%Y-%m-%d %a %I:%M %p'), ], 24, background=colors['background'], ) secondary = bar.Bar(
[ widget.CurrentLayout(), widget.GroupBox(), widget.Prompt(), widget.WindowName(), widget.Chord( chords_colors={ 'launch': ("#ff0000", "#ffffff"), }, name_transform=lambda name: name.upper(), ), widget.TextBox("Press <M-r> to spawn", foreground="#d75f5f"), widget.Volume(), widget.BitcoinTicker(currency="USD"), widget.CPUGraph(samples=50), widget.MemoryGraph(samples=50), widget.Net(), widget.Systray(), widget.Clock(format='%Y-%m-%d %a %I:%M %p'), widget.QuickExit(), ], 24, ), ), ] # Drag floating layouts. mouse = [ Drag([mod], "Button1", lazy.window.set_position_floating(), start=lazy.window.get_position()), Drag([mod], "Button3", lazy.window.set_size_floating(),
), widget.WindowTabs( background=black, foreground=white ), widget.TextBox( text=u"]", background=black, foreground=white, padding=0 ), widget.TextBox("C", background=black, foreground=white), widget.CPUGraph(border_width=0, line_width=1, background=black), widget.TextBox("M", background=black, foreground=white), widget.MemoryGraph(border_width=0, line_width=1, background=black), # widget.TextBox('B:', background=orange, foreground=black), widget.Battery(background=orange, foreground=black), # widget.TextBox('V:', background=l_green, foreground=black), widget.Volume(background=l_green, foreground=black), # widget.LaunchBar(progs=('chrome', 'google-chrome-stable', 'logout from qtile')) widget.Clock( format=u'%m-%d %H:%M', background=m_purple, foreground=black ), widget.Systray(
fontsize=FONT_SIZE, padding=0), widget.NetGraph( bandwidth_type="down", type="linefill", line_width=1), widget.Spacer(length=10), widget.TextBox(font="font-awesome", text=(""), fontsize=FONT_SIZE, padding=0), widget.CPUGraph(type="linefill", line_width=1), widget.Spacer(length=10), widget.TextBox(font="font-awesome", text=(""), fontsize=FONT_SIZE, padding=0), widget.MemoryGraph(type="linefill", line_width=1), widget.Spacer(length=10), widget.TextBox(font="font-awesome", text=(""), fontsize=FONT_SIZE, padding=0), widget.HDDBusyGraph( device="nvme0n1", type="linefill", line_width=1), widget.Spacer(length=100), widget.CheckUpdates( fontsize=FONT_SIZE, display_format=" {updates}", font="font-logos", colour_have_updates=ALERT_COLOR, #padding=15 ),
[ widget.GroupBox( font="Ubuntu Bold", fontsize=18, padding_x=20, padding_y=5, highlight_method="block", rounded=False, ), widget.CurrentLayout(), widget.WindowName(fmt="{:10}"), widget.TextBox("Press <M-r> to spawn", foreground="#d75f5f"), widget.Systray(padding=5), widget.CPUGraph(border_width=1, margin_y=0, line_width=2), widget.TextBox(text="mem:"), widget.MemoryGraph(border_width=1, margin_y=0, line_width=2), widget.Clock(format='%Y-%m-%d %a %I:%M %p'), widget.CPU(), ], 32, ), ), Screen(bottom=bar.Bar( [ widget.GroupBox( font="Ubuntu Bold", fontsize=18, padding_x=20, padding_y=5, highlight_method="block", rounded=False, ),
background='#4455ff', foreground='000000', padding=0, ), widget.TextBox("▒", foreground='4455ff', fontsize=30, padding=0) ], 24, # background="#010328", opacity=1, margin=2, ), bottom=bar.Bar( [ widget.CurrentLayoutIcon(), widget.CPU(format="CPU: {freq_current}GHz, {load_percent}%"), widget.CPUGraph(), widget.Memory(), widget.MemoryGraph(), widget.Net(format='Down: {down} Up: {up}'), widget.NetGraph(), ], 24, opacity=0.9, ), ), ] # Drag floating layouts. mouse = [ Drag([mod], "Button1", lazy.window.set_position_floating(), start=lazy.window.get_position()), Drag([mod], "Button3", lazy.window.set_size_floating(), start=lazy.window.get_size()),
class FakeScreenConfig: auto_fullscreen = True main = None groups = [ libqtile.config.Group("a"), libqtile.config.Group("b"), libqtile.config.Group("c"), libqtile.config.Group("d") ] layouts = [ layout.Max(), layout.RatioTile(), layout.Tile(), ] floating_layout = libqtile.layout.floating.Floating() keys = [] mouse = [] fake_screens = [Screen( bottom=bar.Bar( [ widget.GroupBox(this_screen_border=CHAM3, borderwidth=1, fontsize=FONTSIZE, padding=1, margin_x=1, margin_y=1), widget.AGroupBox(), widget.Prompt(), widget.Sep(), widget.WindowName( fontsize=FONTSIZE, margin_x=6), widget.Sep(), widget.CPUGraph(**GRAPH_KW), widget.MemoryGraph(**GRAPH_KW), widget.SwapGraph(foreground='20C020', **GRAPH_KW), widget.Sep(), widget.Systray(), widget.Sep(), widget.Clock(format='%H:%M:%S %d.%m.%Y', fontsize=FONTSIZE, padding=6), ], 24, background="#555555" ), x=0, y=0, width=600, height=480 ), Screen( top=bar.Bar( [ widget.GroupBox(), widget.WindowName(), widget.Clock() ], 30, ), x=600, y=0, width=300, height=580 ), Screen( top=bar.Bar( [ widget.GroupBox(), widget.WindowName(), widget.Clock() ], 30, ), x=0, y=480, width=500, height=400), Screen( bottom=bar.Bar( [ widget.GroupBox(), widget.WindowName(), widget.Clock() ], 30, ), x=500, y=580, width=400, height=400), ] screens = fake_screens
border_color='#F3F4F5', ), widget.TextBox( 'Swap:', foreground='#AE95C7', ), widget.SwapGraph( graph_color='#AEC795', border_color='#F3F4F5', ), widget.TextBox( 'Memory:', foreground='#C795AE', ), widget.MemoryGraph( graph_color='#AEC795', border_color='#F3F4F5', ), ], 24, ), ), ] # Drag floating layouts. mouse = [ Drag([mod], "Button1", lazy.window.set_position_floating(), start=lazy.window.get_position()), Drag([mod], "Button3",
fontsize=14, ), widget.CPUGraph( font="Iosevka Bold", fontsize=14, width=30, border_width=1, border_color="#000000", frequency=5, line_width=1, samples=50, ), widget.MemoryGraph(font="Iosevka Bold", fontsize=14, width=30, border_width=1, border_color="#000000", line_width=1, frequency=5, fill_color="EEE8AA"), widget.Battery( font="Iosevka Bold", fontsize=14, discharge_char='↓', charge_char='↑', format='{char} {hour:d}:{min:02d}', # foreground=YELLOW, # low_foreground=RED ), widget.Volume( font="Iosevka Bold", fontsize=14, update_interval=2), widget.Clock(
def init_widgets_list(): prompt = "{0}@{1}: ".format(os.environ["USER"], socket.gethostname()) widgets_list = [ widget.TextBox(font="Arial", foreground=colors[2], text="◢", fontsize=73, padding=-7), widget.GroupBox(font="FontAwesome", fontsize=16, margin_y=-1, margin_x=0, padding_y=6, padding_x=5, borderwidth=0, active=colors[7], inactive=colors[1], rounded=False, highlight_method="text", this_current_screen_border=colors[4], foreground=colors[1], background=colors[2]), widget.TextBox(font="Arial", foreground=colors[2], text="◤", fontsize=73, padding=-7), widget.CurrentLayout( font="TerminessTTF Nerd Font Medium", fontsize=15, #foreground = colors[5], #background = colors[1] ), widget.CurrentLayoutIcon(font="TerminessTTF Nerd Font Medium", fontsize=13, scale=.70), widget.Sep(linewidth=1, padding=10, foreground=colors[2], background=colors[1]), widget.WindowName( font="TerminessTTF Nerd Font Medium", fontsize=15, #foreground = colors[5], #background = colors[1], ), # widget.Net( # font="Noto Sans", # fontsize=12, # interface="enp0s31f6", # foreground=colors[2], # background=colors[1], # padding = 0, # ), # widget.Sep( # linewidth = 1, # padding = 10, # foreground = colors[2], # background = colors[1] # ), # widget.NetGraph( # font="Noto Sans", # fontsize=12, # bandwidth="down", # interface="auto", # fill_color = colors[8], # foreground=colors[2], # background=colors[1], # graph_color = colors[8], # border_color = colors[2], # padding = 0, # border_width = 1, # line_width = 1, # ), # widget.Sep( # linewidth = 1, # padding = 10, # foreground = colors[2], # background = colors[1] # ), widget.TextBox(font="Arial", foreground=colors[2], text="◢", fontsize=73, padding=-7), widget.TextBox(font="TerminessTTF Nerd Font Medium", fontsize=13, text=" ", foreground=colors[1], background=colors[2], padding=0), widget.Pacman(font="TerminessTTF Nerd Font Medium", fontsize=13, execute='pamac-manager --updates', markup=True, unavailable=colors[1], update_interval=60, foreground=colors[7], background=colors[2], padding=0), widget.Sep(linewidth=1, padding=10, foreground=colors[1], background=colors[2]), widget.TextBox(font="TerminessTTF Nerd Font Medium", fontsize=13, text=" CPU ", foreground=colors[1], background=colors[2], padding=0), widget.CPUGraph( foreground=colors[7], background=colors[2], border_color=colors[7], #fill_color = colors[1], graph_color=colors[7], border_width=1, line_width=1, core="all", type="linefill", width=60), # do not activate in Virtualbox - will break qtile # widget.ThermalSensor( # foreground = colors[5], # foreground_alert = colors[6], # background = colors[1], # metric = True, # padding = 3, # threshold = 80 # ), widget.Sep(linewidth=1, padding=10, foreground=colors[1], background=colors[2]), widget.TextBox(font="TerminessTTF Nerd Font Medium", fontsize=13, text=" MEM ", foreground=colors[1], background=colors[2], padding=0), widget.MemoryGraph(background=colors[2], border_color=colors[7], foreground=colors[7], graph_color=colors[7], border_width=1, frequency=1, samples=100, line_width=3, type='linefill', width=60), widget.Sep(linewidth=1, padding=10, foreground=colors[1], background=colors[2]), widget.TextBox(font="TerminessTTF Nerd Font Medium", fontsize=13, text=" NET ", foreground=colors[1], background=colors[2], padding=0), widget.NetGraph(background=colors[2], border_color=colors[7], foreground=colors[7], graph_color=colors[7], border_width=1, frequency=1, samples=100, line_width=3, type='linefill', fill_color=colors[7], interface='enp0s3', start_pos='bottom', width=60), widget.Sep(linewidth=1, padding=10, foreground=colors[1], background=colors[2]), widget.TextBox(font="FontAwesome", text=" ", foreground=colors[7], background=colors[2], padding=0, fontsize=16), widget.Clock( foreground=colors[7], background=colors[2], #format="%Y-%m-%d %H:%M", format="%Y-%m-%d %a %I:%M %p", font="TerminessTTF Nerd Font Medium", fontsize=13, ), widget.TextBox(font="Arial", foreground=colors[2], text="◤", fontsize=73, padding=-7), widget.Systray(background=colors[1], foreground=colors[1], icon_size=20, padding=5), ] return widgets_list
def init_widgets_list(): prompt = "{0}@{1}: ".format(os.environ["USER"], socket.gethostname()) widgets_list = [ widget.GroupBox( font=widget_defaults['font'], fontsize=widget_defaults['fontsize'] + 10, margin_y=0, margin_x=0, padding_y=6, padding_x=5, borderwidth=0, disable_drag=True, active=aqua, rounded=False, highlight_method="text", this_current_screen_border=yellow, # current group block_highlight_text_color=yellow, foreground=blue, background=widget_defaults['background'], hide_unused=True, urgent_border=red_1, urgent_text=red_1, urgent_alert_method='text'), widget.Sep(linewidth=1, padding=10, foreground=widget_defaults['foreground'], background=widget_defaults['background']), widget.CurrentLayout(font=widget_defaults['font'], fontsize=widget_defaults['fontsize'] + 5, foreground=blue, background=widget_defaults['background']), widget.Sep(linewidth=1, padding=10, foreground=widget_defaults['foreground'], background=widget_defaults['background']), widget.Spacer(), # widget.WindowName( # font=widget_defaults['font'], # fontsize = widget_defaults['fontsize'], # foreground = blue, # background = widget_defaults['background'] # ), widget.Sep(linewidth=1, padding=10, foreground=widget_defaults['foreground'], background=widget_defaults['background']), widget.TextBox(font=widget_defaults['font'], text=" ", foreground=colors[6], background=widget_defaults['background'], padding=0, fontsize=widget_defaults['fontsize'] + 6), widget.MemoryGraph(border_color=purple, fill_color=yellow, graph_color=yellow, background=widget_defaults['background'], border_width=1, line_width=1, core="all", type="box"), widget.Memory( background=widget_defaults['background'], font=widget_defaults['font'], fontsize=widget_defaults['fontsize'] + 3, foreground=yellow, ), widget.Sep(linewidth=1, padding=10, foreground=widget_defaults['foreground'], background=widget_defaults['background']), widget.TextBox(font=widget_defaults['font'], text=" 力 ", foreground=red, background=widget_defaults['background'], padding=0, fontsize=widget_defaults['fontsize'] + 5), widget.CPUGraph(border_color=purple, fill_color=colors[8], graph_color=aqua, background=widget_defaults['background'], border_width=1, line_width=1, core="all", type="box"), widget.CPU(font=widget_defaults['font'], fontsize=widget_defaults['fontsize'] + 3, format='L: {load_percent}% GHz: {freq_current}', foreground=aqua), widget.TextBox(font=widget_defaults['font'], text=" ", foreground=red, background=widget_defaults['background'], padding=0, fontsize=widget_defaults['fontsize'] + 3), widget.ThermalSensor(foreground=aqua, foreground_alert=red, background=widget_defaults['background'], metric=True, padding=3, threshold=80, fontsize=widget_defaults['fontsize'] + 3, tag="temp1"), widget.Sep(linewidth=1, padding=10, foreground=widget_defaults['foreground'], background=widget_defaults['background']), widget.TextBox(font=widget_defaults['font'], text=" ", foreground=green, background=widget_defaults['background'], padding=0, fontsize=widget_defaults['fontsize']), widget.Clock(foreground=blue, background=widget_defaults['background'], fontsize=widget_defaults['fontsize'] + 3, format="%Y-%m-%d %H:%M"), widget.Sep(linewidth=1, padding=10, foreground=purple, background=widget_defaults['background']), widget.Systray(background=widget_defaults['background'], icon_size=22, padding=4), ] return widgets_list
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))
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)
class FakeScreenConfig(Config): auto_fullscreen = True groups = [ libqtile.config.Group("a"), libqtile.config.Group("b"), libqtile.config.Group("c"), libqtile.config.Group("d") ] layouts = [ layout.Max(), layout.RatioTile(), layout.Tile(), ] floating_layout = libqtile.resources.default_config.floating_layout keys = [] mouse = [] fake_screens = [ Screen(bottom=bar.Bar([ widget.GroupBox(this_screen_border=CHAM3, borderwidth=1, fontsize=FONTSIZE, padding=1, margin_x=1, margin_y=1), widget.AGroupBox(), widget.Prompt(), widget.Sep(), widget.WindowName(fontsize=FONTSIZE, margin_x=6), widget.Sep(), widget.CPUGraph(**GRAPH_KW), widget.MemoryGraph(**GRAPH_KW), widget.SwapGraph(foreground='20C020', **GRAPH_KW), widget.Sep(), widget.Clock(format='%H:%M:%S %d.%manager.%Y', fontsize=FONTSIZE, padding=6), ], 24, background="#555555"), left=bar.Gap(16), right=bar.Gap(20), x=0, y=0, width=500, height=340), Screen(top=bar.Bar( [widget.GroupBox(), widget.WindowName(), widget.Clock()], 30, ), bottom=bar.Gap(24), left=bar.Gap(12), x=500, y=0, width=300, height=380), Screen(top=bar.Bar( [widget.GroupBox(), widget.WindowName(), widget.Clock()], 30, ), bottom=bar.Gap(16), right=bar.Gap(40), x=0, y=340, width=450, height=220), Screen(top=bar.Bar( [widget.GroupBox(), widget.WindowName(), widget.Clock()], 30, ), left=bar.Gap(20), right=bar.Gap(24), x=450, y=380, width=350, height=220), ] screens = []
low_foreground=color_alert, ), ThermalSensor(), Volume(), widget.CPUGraph( graph_color=color_alert, fill_color='{}.5'.format(color_alert), border_color=color_frame, line_width=2, border_width=1, samples=60, ), widget.MemoryGraph( graph_color=color_alert, fill_color='{}.5'.format(color_alert), border_color=color_frame, line_width=2, border_width=1, samples=60, ), widget.NetGraph( graph_color=color_alert, fill_color='{}.5'.format(color_alert), border_color=color_frame, line_width=2, border_width=1, samples=60, ), widget.Clock(format='%Y-%m-%d %H:%M %p', ), ], 32, ), ),
def init_widgets_list(): prompt = "{0}@{1}: ".format(os.environ["USER"], socket.gethostname()) widgets_list = [ widget.GroupBox(font="FontAwesome", fontsize=16, margin_y=-1, margin_x=0, padding_y=6, padding_x=5, borderwidth=0, disable_drag=True, active=colors[9], inactive=colors[5], rounded=False, highlight_method="text", this_current_screen_border=colors[8], foreground=colors[2], background=colors[1]), widget.Sep(linewidth=1, padding=10, foreground=colors[2], background=colors[1]), widget.CurrentLayout(font="Noto Sans Bold", foreground=colors[5], background=colors[1]), widget.Sep(linewidth=1, padding=10, foreground=colors[2], background=colors[1]), widget.WindowName( font="Noto Sans", fontsize=12, foreground=colors[5], background=colors[1], ), # widget.Net( # font="Noto Sans", # fontsize=12, # interface="enp0s31f6", # foreground=colors[2], # background=colors[1], # padding = 0, # ), # widget.Sep( # linewidth = 1, # padding = 10, # foreground = colors[2], # background = colors[1] # ), # widget.NetGraph( # font="Noto Sans", # fontsize=12, # bandwidth="down", # interface="auto", # fill_color = colors[8], # foreground=colors[2], # background=colors[1], # graph_color = colors[8], # border_color = colors[2], # padding = 0, # border_width = 1, # line_width = 1, # ), # widget.Sep( # linewidth = 1, # padding = 10, # foreground = colors[2], # background = colors[1] # ), # # do not activate in Virtualbox - will break qtile # widget.ThermalSensor( # foreground = colors[5], # foreground_alert = colors[6], # background = colors[1], # metric = True, # padding = 3, # threshold = 80 # ), # # battery option 1 ArcoLinux Horizontal icons do not forget to import arcobattery at the top # widget.Sep( # linewidth = 1, # padding = 10, # foreground = colors[2], # background = colors[1] # ), # arcbattery.BatteryIcon( # padding=0, # scale=0.7, # y_poss=2, # theme_path=home + "/.config/qtile/icons/battery_icons_horiz", # update_interval = 5, # background = colors[1] # ), # # battery option 2 from Qtile widget.Sep(linewidth=1, padding=10, foreground=colors[2], background=colors[1]), widget.TextBox(font="FontAwesome", text=" ", foreground=colors[6], background=colors[1], padding=0, fontsize=16), widget.CPUGraph(border_color=colors[2], fill_color=colors[8], graph_color=colors[8], background=colors[1], border_width=1, line_width=1, core="all", type="box"), widget.Sep(linewidth=1, padding=10, foreground=colors[2], background=colors[1]), widget.TextBox(font="FontAwesome", text=" ", foreground=colors[4], background=colors[1], padding=0, fontsize=16), widget.Memory( font="Noto Sans", format='{MemUsed}M', update_interval=1, fontsize=12, foreground=colors[5], background=colors[1], ), widget.MemoryGraph(border_color=colors[2], fill_color=colors[8], graph_color=colors[8], background=colors[1], border_width=1, line_width=1, core="all", type="box"), widget.Sep(linewidth=1, padding=10, foreground=colors[2], background=colors[1]), widget.TextBox(font="FontAwesome", text=" ⚡︁ ", foreground=colors[3], background=colors[1], padding=0, fontsize=16), widget.Battery( font="Noto Sans", update_interval=10, fontsize=12, foreground=colors[5], background=colors[1], ), widget.Sep(linewidth=1, padding=10, foreground=colors[2], background=colors[1]), widget.TextBox(font="FontAwesome", text=" ", foreground=colors[7], background=colors[1], padding=0, fontsize=16), widget.Clock(foreground=colors[5], background=colors[1], fontsize=12, format="%Y-%m-%d %H:%M"), widget.Sep(linewidth=1, padding=10, foreground=colors[2], background=colors[1]), widget.Systray(background=colors[1], icon_size=20, padding=4), ] return widgets_list
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", ), widget.BatteryIcon(), widget.TextBox("my config", name="default"), widget.ThermalSensor(tag_sensor='Physical id 0'), widget.Clock(format='%b-%d %a %H:%M'), widget.CurrentLayout(),
type='box', graph_color=RED, fill_color=RED ), widget.NetGraph( line_width=1, border_width=0, width=66, type='box', graph_color=BLUE, fill_color=BLUE, interface="auto"), widget.MemoryGraph( line_width=1, border_width=0, width=16, type='box', graph_color=YELLOW, fill_color=YELLOW ), ], 24, ) screens = [ Screen(top=top, bottom=bottom), Screen(top=bar.Bar( [ widget.CurrentLayoutIcon(scale=0.65), widget.WindowName(), ], 24 )),
bring_front_click = True # Screens screens = [ Screen( # bottom=bar.Bar(widgets=[Powerline()], **bar_defaults), top=bar.Bar( widgets=[ widget.GroupBox(**Widget.groupbox), widget.WindowName(), widget.CPUGraph(graph_color='#18BAEB', fill_color='#1667EB.3', **Widget.graph), widget.MemoryGraph(graph_color='#00FE81', fill_color='#00B25B.3', **Widget.graph), widget.SwapGraph(graph_color='#5E0101', fill_color='#FF5656', **Widget.graph), widget.NetGraph(graph_color='#ffff00', fill_color='#4d4d00', interface='wlan0', **Widget.graph), widget.HDDBusyGraph(device='sda', **Widget.graph), widget.HDDBusyGraph(device='sdb', **Widget.graph), widget.ThermalSensor(metric=False, threshold=158), widget.Sep(**Widget.sep), widget.CurrentLayout(), widget.Systray(**Widget.systray), widget.BatteryIcon(**Widget.battery),