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 = []
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:'), widget.Spacer(width=1), widget.Volume(foreground=BRIGHT_BLUE), widget.Spacer(width=5), ], size=17, **bar_defaults)
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
widget_defaults = dict( font='TerminessTTF Nerd Font Mono', fontsize=13, padding=3, ) extension_defaults = widget_defaults.copy() screens = [ Screen( bottom=bar.Bar( [ widget.Prompt(), widget.GroupBox(), widget.WindowName(), widget.SwapGraph(), widget.Clock(format='%I:%M %p '), widget.Systray(), ], 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(), start=lazy.window.get_size()), Click([mod], "Button2", lazy.window.bring_to_front())
[ 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(), ],
# 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), # widget.Battery(**Widget.battery_text), widget.Volume( theme_path='/usr/share/icons/Humanity/status/22/',
border_color='#F3F4F5', ), widget.TextBox( 'Net traffic:', foreground='#95C7AE', ), widget.NetGraph( graph_color='#AEC795', 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, ), ), ]
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", update_delay=5, foreground="7070ff", charge_char=u'^', discharge_char=u'\/', ), widget.Volume(), widget.sep.Sep(foreground='7b5830'), widget.Systray(),
widget.Clock('%y-%m-%d %a %I:%M %p', **default_data), ], 20, ), bottom=bar.Bar( [ widget.GroupBox(**default_data), widget.TextBox("Vol", **default_data), widget.Volume(**default_data), widget.Battery(**default_data), widget.TextBox("cpu", **default_data), widget.CPUGraph(**default_data), widget.TextBox("mem", **default_data), widget.MemoryGraph(**default_data), widget.TextBox("swap", **default_data), widget.SwapGraph(**default_data), widget.TextBox("Net", **default_data), widget.NetGraph(**default_data), widget.TextBox("hdd", **default_data), widget.HDDGraph(**default_data), widget.Canto(**default_data), widget.CurrentLayout(**default_data), #widget.WindowTabs(), #widget.TaskList(), # widget.RunScripts(**default_data), #widget.Canto(feeds=["1","2",],**default_data), ], 60, ), ), Screen(
# # Below is a screen with a top bar that contains several basic qtile widgets. screens = [ Screen(top=bar.Bar( [ # This is a list of our virtual desktops. widget.GroupBox(**Theme.groupbox), # A prompt for spawning processes or switching groups. This will be # invisible most of the time. widget.Prompt(), widget.CPUGraph( graph_color='18BAEB', fill_color='1667EB.3', **Theme.graph), widget.MemoryGraph( graph_color='00FE81', fill_color='00B25B.3', **Theme.graph), widget.SwapGraph( graph_color='5E0101', fill_color='FF5656', **Theme.graph), # NetGraph not in current version of qtile ...? #widget.NetGraph(graph_color='ffff00', fill_color='4d4d00', interface='wlan0', **Theme.graph), # Current window name. widget.CurrentLayout(**Theme.widget), widget.WindowName(**Theme.window_name), #widget.Volume(), #widget.BatteryIcon(**Theme.battery), #widget.Battery(**Theme.battery), widget.Systray(**Theme.systray), widget.Clock('%Y-%m-%d %a %I:%M %p', **Theme.clock), ], 20)) ]
#widget.CurrentLayout(), widget.Prompt(), widget.Sep(), widget.TaskList(borderwidth=0, padding=2, margin_y=0, highlight_method="block"), widget.Sep(), #widget.Mpd(), # system usage widget.CPUGraph(width=42, line_width=2, graph_color='0066FF', fill_color='001188'), widget.MemoryGraph(width=42, line_width=2, graph_color='22FF44', fill_color='11AA11'), widget.SwapGraph(width=42, line_width=2, graph_color='FF2020', fill_color='C01010'), widget.Sep(), widget.Volume(update_interval=0.2, theme_path=\ '/usr/share/icons/gnome/48x48/status/'), widget.Systray(icon_size=14), widget.Clock('%d/%m/%y %H:%M', fontsize=14, padding=6), ], size=20, opacity=0.9), ), ] def detect_screens(qtile):