class WhenConfig(Config): keys = [ config.Key( ["control"], "k", lazy.window.toggle_floating(), ), config.Key( ["control"], "j", lazy.window.toggle_floating().when(focused=config.Match(wm_class="TestWindow")), ), config.Key( ["control"], "h", lazy.window.toggle_floating().when(focused=config.Match(wm_class="idonotexist")), ), config.Key( ["control"], "n", lazy.next_layout().when(focused=config.Match(wm_class="TestWindow")), ), config.Key( ["control"], "m", lazy.next_layout().when( focused=config.Match(wm_class="TestWindow"), if_no_focused=True ), ), ] layouts = [layout.MonadWide(), layout.MonadTall()]
class BareConfig(Config): auto_fullscreen = True groups = [ config.Group("a"), config.Group("b"), config.Group("c"), config.Group("d") ] layouts = [ layout.stack.Stack(num_stacks=1), layout.stack.Stack(num_stacks=2) ] floating_layout = default_config.floating_layout keys = [ config.Key( ["control"], "k", lazy.layout.up(), ), config.Key( ["control"], "j", lazy.layout.down(), ), ] mouse = [] screens = [config.Screen()] follow_mouse_focus = False reconfigure_screens = False
class TwoScreenConfig(Config): auto_fullscreen = True groups = [ config.Group("a"), config.Group("b"), config.Group("c"), config.Group("d") ] layouts = [ layout.stack.Stack(num_stacks=1), layout.stack.Stack(num_stacks=2) ] floating_layout = default_config.floating_layout keys = [ config.Key( ["control"], "k", lazy.layout.up(), ), config.Key( ["control"], "j", lazy.layout.down(), ), ] mouse = [] follow_mouse_focus = False reconfigure_screens = False screens = [] fake_screens = [ libqtile.config.Screen(top=libqtile.bar.Bar([TextBox("Qtile Test")], 10), x=0, y=0, width=400, height=600), libqtile.config.Screen(top=libqtile.bar.Bar([TextBox("Qtile Test")], 10), x=400, y=0, width=400, height=600), ]
class WhenConfig(Config): keys = [ config.Key( ["control"], "k", lazy.window.toggle_floating(), ), config.Key( ["control"], "j", lazy.window.toggle_floating().when( config.Match(wm_class="TestWindow")), ), config.Key( ["control"], "h", lazy.window.toggle_floating().when( config.Match(wm_class="idonotexist")), ), ]
# Copyright (c) 2011 Florian Mounier # Copyright (c) 2012 Tycho Andersen # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in # all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. from libqtile import config keys = [config.Key(["control"], "k", "focusnext")] screens = [] layouts = [] groups = []