Key([modkey], "Return", lazy.spawn("urxvt")), Key([modkey], "Tab", lazy.nextlayout()), Key([modkey, "shift"], "c", lazy.window.kill()) ] groups = [str(i) for i in xrange(1, 10)] for i in groups: keys.append(Key([modkey], i, lazy.group[i].toscreen())) layouts = [ layout.Stack(stacks=1, borderWidth=1), layout.Stack(stacks=2, borderWidth=1) ] screens = [ Screen( top=bar.Bar( [ widget.GroupBox(currentFG="#000000", currentBG="#AFAF87", font=None, activeFG="#AFAF87", inactiveFG="#666666", border="#000000" ), widget.WindowName() ], 15) ) ]
layout.Max(), layout.Stack(stacks=2), layout.Tile(ratio=0.25), ] # orange text on grey background default_data = dict(fontsize=12, foreground="FF6600", background="1D1D1D", font="ttf-droid") # we need a screen or else qtile won't load screens = [ Screen(bottom = bar.Bar([widget.GroupBox(**default_data), widget.WindowName(**default_data), widget.Clock(**default_data)], 27,))] @hook.subscribe.client_new def dialogs(window): if(window.window.get_wm_type() == 'dialog' or window.window.get_wm_transient_for()): window.floating = True @hook.subscribe.client_new def grouper(window, windows={'firefox-aurora': 'home', 'emacs': 'emacs', 'thunderbird': 'mail', 'urxvt': ['music', 'weechat'], 'skype': 'skype'}):
padding=0, borderwidth=3, margin_x=3, margin_y=0), widget.Sep(), widget.CurrentLayout(**font_params), widget.Sep(), widget.WindowName(**font_params), Metrics(**font_params), widget.Systray(icon_size=15), widget.Sep(foreground="#000"), widget.Clock(fmt="%c", **font_params), ], 20) screens = [Screen(top=get_bar()), Screen()] float_windows = set(["feh", "x11-ssh-askpass"]) def should_be_floating(w): wm_class = w.get_wm_class() if wm_class is None: return True if isinstance(wm_class, tuple): for cls in wm_class: if cls.lower() in float_windows: return True else: if wm_class.lower() in float_windows: return True
# The screens variable contains information about what bars are drawn where on # each screen. If you have multiple screens, you'll need to construct multiple # Screen objects, each with whatever widgets you want. # # 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(urgent_alert_method='text'), # A prompt for spawning processes or switching groups. This will be # invisible most of the time. widget.Prompt(), # Current window name. widget.WindowName(), widget.Volume(), widget.Battery( energy_now_file='charge_now', energy_full_file='charge_full', power_now_file='current_now', ), widget.Systray(), widget.Clock('%Y-%m-%d %a %I:%M %p'), ], 30)) # our bar is 30px high ] # Super_L (the Windows key) is typically bound to mod4 by default, so we use # that here. mod = "mod4"
mod = "mod4" # global font options widget_defaults = dict( font='Consolas', fontsize=18, padding=3, ) if num_screens[hostname] == 2: screens = [ Screen(top=bar.Bar( [ widget.GroupBox(urgent_alert_method='text', **widget_defaults), widget.Prompt(**widget_defaults), widget.WindowName(**widget_defaults), widget.Mpris(**widget_defaults), widget.Volume(**widget_defaults), ], 30, ), ), Screen(top=bar.Bar( [ widget.GroupBox(urgent_alert_method='text', **widget_defaults), widget.WindowName(**widget_defaults), widget.Systray(**widget_defaults), widget.Clock('%Y-%m-%d %a %I:%M %p', **widget_defaults), ], 30, ), ), ] else:
# Screen objects, each with whatever widgets you want. # # 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(urgent_alert_method='text', fontsize=11, this_screen_border='43809c'), widget.sep.Sep(), #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=10), # Current window name. widget.WindowName(fontsize=10), widget.sep.Sep(), NetworkStatus(theme_path='~/.config/qtile/icons/'), widget.Volume(theme_path=''), widget.Systray(), #display 12-hour clock Clock('%m-%d %a %I:%M %p', fontsize=11, foreground='3dd0ff'), ], 22, opacity=0.1)) # our bar is 22px high ] # Super_L (the Windows key) is typically bound to mod4 by default, so we use # that here.
keys.append(Key(["mod1"], i.name, lazy.group[i.name].toscreen())) keys.append(Key(["mod1", "shift"], i.name, lazy.window.togroup(i.name))) keys.append(Key(["mod1"], "Left", lazy.group.prevgroup())) keys.append(Key(["mod1"], "Right", lazy.group.nextgroup())) keys.append(Key(["mod1", "shift"], "Left", lazy.function(toPrevGroup))) keys.append(Key(["mod1", "shift"], "Right", lazy.function(toNextGroup))) ########################################################################################## layouts = [layout.Max(), layout.Stack(stacks=2)] screens = [ Screen(bottom=bar.Bar( [ widget.GroupBox(), widget.WindowName(fontsize=12), widget.Systray(), widget.Clock('%I:%M %p', fontsize=12, padding=6), ], 30, ), ), ] main = None follow_mouse_focus = True cursor_warp = False floating_layout = layout.Floating() mouse = () os.system("feh --bg-scale ~/Desktop/backgroundImage")
Group("f"), Group("u"), Group("i"), Group("o"), Group("p"), ] for i in groups: keys.append(Key(["mod1"], i.name, lazy.group[i.name].toscreen())) keys.append(Key(["mod1", "shift"], i.name, lazy.window.togroup(i.name))) layouts = [layout.Max(), layout.Stack(stacks=2)] screens = [ Screen(bottom=bar.Bar( [ widget.GroupBox(), widget.WindowName(), widget.TextBox("default", "default config"), widget.Systray(), widget.Clock('%Y-%m-%d %a %I:%M %p'), ], 30, ), ), ] main = None follow_mouse_focus = True cursor_warp = False floating_layout = layout.Floating() mouse = ()
# Two simple layout instances: layouts = [ layout.Max(), layout.Stack(stacks=2) ] # I have two screens, each of which has a Bar at the bottom. Each Bar has two # simple widgets - a GroupBox, and a WindowName. screens = [ Screen( bottom = bar.Bar( [ widget.GroupBox(), widget.WindowName() ], 30, ), ), Screen( bottom = bar.Bar( [ widget.GroupBox(), widget.WindowName() ], 30, ), ) ]
] screens = [ Screen(top=bar.Bar(widgets=[ widget.TextBox('', 'screen 1', **Theme.widget), widget.GroupBox(**Theme.groupbox), widget.WindowName(**Theme.widget), widget.TextBox('', 'cpu', **Theme.widget), widget.CPUGraph( graph_color='18BAEB', fill_color='1667EB.3', **Theme.graph), widget.TextBox('', 'mem', **Theme.widget), widget.MemoryGraph( graph_color='00FE81', fill_color='00B25B.3', **Theme.graph), widget.TextBox('', 'swap', **Theme.widget), widget.SwapGraph( graph_color='5E0101', fill_color='FF5656', **Theme.graph), widget.TextBox('', 'eth0', **Theme.widget), widget.NetGraph(graph_color='ffff00', fill_color='4d4d00', interface='eth0', **Theme.graph), widget.Sep(**Theme.sep), widget.CurrentLayout(**Theme.widget), widget.Sep(**Theme.sep), widget.Systray(**Theme.systray), widget.Clock(fmt='%a %d %b %H:%M:%S', **Theme.widget) ], **Theme.bar)), Screen(top=bar.Bar(widgets=[ widget.TextBox('', 'screen 2', **Theme.widget), widget.GroupBox(**Theme.groupbox),
widget.Systray(icon_size=15), widget.Battery(font=font, foreground=fg, update_delay=5), widget.Sep(), widget.Clock(font=font, foreground=fg), ], 15) bar_main1 = bar.Bar([ widget.WindowName(font=font, foreground=fg), widget.GroupBox(font=font, fontsize=12, ctive=fg, urgent_border=alert, padding=1, borderwidth=3, margin_x=3, margin_y=-2), ], 15) screens = [ Screen(top=bar_main, bottom=bar_main1) ] del bar_main, bar_main1 float_windows = set([ "feh", "x11-ssh-askpass", "gmrun" ]) def should_be_floating(w): wm_class = w.get_wm_class() if isinstance(wm_class, tuple): for cls in wm_class: if cls.lower() in float_windows:
Screen(bottom=bar.Bar( [ widget.GroupBox( margin_y=1, margin_x=1, borderwidth=1, padding=1, ), widget.Prompt(), widget.WindowName(foreground="a0a0a0", ), widget.Notify(), widget.Systray(), widget.CurrentLayout(), widget.Volume(foreground="70ff70", ), 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'↓', ), She(foreground='705030', ), widget.Clock( foreground="a0a0a0", fmt="%H:%M %d/%m/%Y", ), ], 18, ), ),
screens = [ Screen( top = bar.Bar( [ widget.GroupBox(borderwidth=2, fontsize=12, padding=1, margin_y=1), widget.Sep(), widget.Prompt(), widget.WindowName( fontsize=12, margin_x=6), widget.Sep(), #widget.Mpd(fontsize=16), 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=1, theme_path=\ '/usr/share/icons/LowContrast/48x48/stock/'), #widget.Sep(), widget.Systray(icon_size=14), #widget.Sep(), widget.Clock('%d/%m/%y %H:%M', fontsize=14, padding=6), ], 18 ), ), ]
screens = [ Screen( bottom=bar.Bar( [ widget.GroupBox(fontsize=10), widget.WindowName(), widget.Sep(), widget.CPUGraph(samples=50, line_width=1, width=50, graph_color='FF2020', fill_color='C01010'), widget.MemoryGraph(samples=50, line_width=1, width=50, graph_color='0066FF', fill_color='001188'), widget.NetGraph(samples=50, line_width=1, width=50, interface="eth0", graph_color='22FF44', fill_color='11AA11'), widget.Systray(), widget.Prompt(), # widget.wlan.Wlan(), # widget.battery(), widget.Clock( format='%Y-%m-%d %a %H:%M', update_interval=1.0, ), ], 25, ), ), ]
class FakeScreenConfig: main = None groups = [ libqtile.manager.Group("a"), libqtile.manager.Group("b"), libqtile.manager.Group("c"), libqtile.manager.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('%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
screens = [ Screen(bottom=bar.Bar( [ widget.GroupBox(fontsize=10), widget.WindowName(), widget.Sep(), widget.CPUGraph(samples=50, line_width=1, width=50, graph_color='FF2020', fill_color='C01010'), widget.MemoryGraph(samples=50, line_width=1, width=50, graph_color='0066FF', fill_color='001188'), widget.NetGraph(samples=50, line_width=1, width=50, interface="eth0", graph_color='22FF44', fill_color='11AA11'), widget.Systray(), widget.Prompt(), widget.Clock('%Y-%m-%d %a %I:%M %p', fontsize=12), ], 25, ), ), ]
screens = [ Screen( top = bar.Bar( [ widget.GroupBox(borderwidth=2, fontsize=14, padding=1, margin_y=1), widget.Sep(), widget.Prompt(), widget.WindowName( fontsize=14, margin_x=6), #widget.Sep(), #widget.Mpd(fontsize=16), #widget.Sep(), #widget.CPUGraph(width=50, graph_color='0066FF', # fill_color='001188'), #widget.MemoryGraph(width=50, graph_color='22FF44', # fill_color='11AA11'), #widget.SwapGraph(width=50, graph_color='FF2020', # fill_color='C01010'), widget.Sep(), widget.Volume(theme_path='/usr/share/icons/gnome/256x256/status/'), widget.Systray(), widget.Sep(), widget.Clock('%H:%M %d/%m/%y', fontsize=18, padding=6), ], 24 ), ), ]
keys.append(Key([mod], i.name, lazy.group[i.name].toscreen())) keys.append(Key([mod, "shift"], i.name, lazy.window.togroup(i.name))) screens = [ Screen(top=bar.Bar( [ widget.GroupBox(borderwidth=2, font='Consolas', fontsize=18, padding=1, margin_x=1, margin_y=1), widget.Sep(), widget.WindowName(font='Consolas', fontsize=18, margin_x=6), widget.Sep(), widget.Battery(font='Consolas', fontsize=18, margin_x=6), widget.Sep(), widget.CPUGraph(), widget.MemoryGraph(), widget.SwapGraph(foreground='C02020'), widget.Sep(), widget.Systray(), widget.Sep(), widget.Clock( '%H:%M:%S %d.%m.%Y', font='Consolas', fontsize=18, padding=6), ], 24, ), ), ] @hook.subscribe.client_new
fontsize=16, padding=3, ) default_style = dict(fontsize=10, foreground="FF6600", background="1D1D1D", font="ttf-droid") screens = [ Screen(bottom=bar.Bar( [ widget.GroupBox(), widget.Prompt(), widget.WindowName(), widget.TextBox("Eray-Arch", name="default"), widget.Battery(), widget.Systray(), widget.Clock(format='%Y-%m-%d %a %I:%M %p'), ], 30, ), ), ] # Drag floating layouts. mouse = [ Drag([sup], "Button1", lazy.window.set_position_floating(), start=lazy.window.get_position()), Drag([sup], "Button3",
# layout.Stack(num_stacks=1, **border) ] screens = [ Screen( top=bar.Bar( [ widget.GroupBox( margin_y=1, margin_x=1, borderwidth=1, padding=1, ), widget.WindowName(foreground="a0a0a0", ), widget.Notify(), widget.Systray(), # widget.CurrentLayout(), widget.KeyboardLayout(configured_keyboards=["us", "ru"]), widget.Volume(foreground="70ff70", ), widget.BatteryIcon(), widget.BitcoinTicker(currency="rub", format="{buy}"), widget.Clock( foreground="a0a0a0", fmt="%H:%M %d.%m.%Y", ), ], 18, ), ), ] def main(self):
# global font options screens = [ Screen( bottom=bar.Bar( [ widget.Spacer(width=200), # This is a list of our virtual desktops. widget.GroupBox(urgent_alert_method='text', **font_options), widget.Spacer(width=50), # A prompt for spawning processes or switching groups. This will be # invisible most of the time. widget.Prompt(), # widget.Notify(), # not available (why?) widget.CurrentLayout(**font_options), widget.Volume(**font_options), widget.Battery( energy_now_file='charge_now', energy_full_file='charge_full', power_now_file='current_now', fontsize=14, ), widget.Systray(), widget.Clock('%Y-%m-%d %a %I:%M %p', **font_options), widget.WindowName(**font_options), ], 30) ) ]
urgent_border=alert, padding=1, borderwidth=3, margin_x=3, margin_y=-2), widget.Sep(), widget.CurrentLayout(font=font, foreground=foreground), widget.Sep(), widget.WindowName(font=font, foreground=foreground), widget.Mpris(name='deadbeef', objname='org.mpris.deadbeef', font=font, fontsize=12, foreground="#9090A0"), Metrics(font=font, fontsize=12, foreground="#A0A090"), widget.Systray(icon_size=15), widget.Clock(font=font, foreground=foreground), ], 15) screens = [ Screen(top=get_bar()), Screen() ] float_windows = set([ "feh", "x11-ssh-askpass" ]) def should_be_floating(w): wm_class = w.get_wm_class() if isinstance(wm_class, tuple): for cls in wm_class: if cls.lower() in float_windows: