How to use qtile - 10 common examples

To help you get started, we’ve selected a few qtile examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github numirias / qtile-plasma / tests / test_layout.py View on Github external
def test_split_mode(self, qtile):
        qtile.test_window('a')
        qtile.test_window('b')
        qtile.c.layout.mode_horizontal_split()
        qtile.test_window('c')
        assert qtile.c.window.info()['width'] == 200 - 2
        qtile.c.layout.mode_vertical()
        qtile.test_window('d')
        assert qtile.c.window.info()['height'] == 300 - 2
        qtile.test_window('e')
        assert qtile.c.window.info()['height'] == 200 - 2
        qtile.c.layout.mode_vertical_split()
        qtile.test_window('f')
        assert qtile.c.window.info()['height'] == 100 - 2
github numirias / qtile-plasma / tests / test_layout.py View on Github external
def test_split_mode(self, qtile):
        qtile.test_window('a')
        qtile.test_window('b')
        qtile.c.layout.mode_horizontal_split()
        qtile.test_window('c')
        assert qtile.c.window.info()['width'] == 200 - 2
        qtile.c.layout.mode_vertical()
        qtile.test_window('d')
        assert qtile.c.window.info()['height'] == 300 - 2
        qtile.test_window('e')
        assert qtile.c.window.info()['height'] == 200 - 2
        qtile.c.layout.mode_vertical_split()
        qtile.test_window('f')
        assert qtile.c.window.info()['height'] == 100 - 2
github numirias / qtile-plasma / tests / test_layout.py View on Github external
def test_windows(self, qtile):
        qtile.test_window('a')
        qtile.test_window('b')
        qtile.test_window('c')
        assert_focused(qtile, 'c')
        assert tree(qtile) == ['a', 'b', 'c']
github numirias / qtile-plasma / tests / test_layout.py View on Github external
def test_directions(self, qtile, grid):
        assert_focused(qtile, 'd')
        qtile.c.layout.left()
        assert_focused(qtile, 'c')
        qtile.c.layout.up()
        assert_focused(qtile, 'a')
        qtile.c.layout.right()
        assert_focused(qtile, 'b')
        qtile.c.layout.down()
        assert_focused(qtile, 'd')
        qtile.c.layout.down()
        assert_focused(qtile, 'd')
        qtile.c.layout.previous()
        assert_focused(qtile, 'b')
        qtile.c.layout.next()
        assert_focused(qtile, 'd')
github numirias / qtile-plasma / tests / test_layout.py View on Github external
def test_directions(self, qtile, grid):
        assert_focused(qtile, 'd')
        qtile.c.layout.left()
        assert_focused(qtile, 'c')
        qtile.c.layout.up()
        assert_focused(qtile, 'a')
        qtile.c.layout.right()
        assert_focused(qtile, 'b')
        qtile.c.layout.down()
        assert_focused(qtile, 'd')
        qtile.c.layout.down()
        assert_focused(qtile, 'd')
        qtile.c.layout.previous()
        assert_focused(qtile, 'b')
        qtile.c.layout.next()
        assert_focused(qtile, 'd')
github numirias / qtile-plasma / tests / test_layout.py View on Github external
def test_recent(self, qtile):
        qtile.test_window('a')
        qtile.test_window('b')
        qtile.test_window('c')
        assert_focused(qtile, 'c')
        qtile.c.layout.recent()
        assert_focused(qtile, 'b')
        qtile.c.layout.recent()
        assert_focused(qtile, 'c')
        qtile.c.layout.next()
        assert_focused(qtile, 'a')
        qtile.c.layout.recent()
        assert_focused(qtile, 'c')
github numirias / qtile-plasma / tests / test_layout.py View on Github external
def test_directions(self, qtile, grid):
        assert_focused(qtile, 'd')
        qtile.c.layout.left()
        assert_focused(qtile, 'c')
        qtile.c.layout.up()
        assert_focused(qtile, 'a')
        qtile.c.layout.right()
        assert_focused(qtile, 'b')
        qtile.c.layout.down()
        assert_focused(qtile, 'd')
        qtile.c.layout.down()
        assert_focused(qtile, 'd')
        qtile.c.layout.previous()
        assert_focused(qtile, 'b')
        qtile.c.layout.next()
        assert_focused(qtile, 'd')
github numirias / qtile-plasma / tests / test_layout.py View on Github external
def test_recent(self, qtile):
        qtile.test_window('a')
        qtile.test_window('b')
        qtile.test_window('c')
        assert_focused(qtile, 'c')
        qtile.c.layout.recent()
        assert_focused(qtile, 'b')
        qtile.c.layout.recent()
        assert_focused(qtile, 'c')
        qtile.c.layout.next()
        assert_focused(qtile, 'a')
        qtile.c.layout.recent()
        assert_focused(qtile, 'c')
github numirias / qtile-plasma / tests / test_layout.py View on Github external
def test_directions(self, qtile, grid):
        assert_focused(qtile, 'd')
        qtile.c.layout.left()
        assert_focused(qtile, 'c')
        qtile.c.layout.up()
        assert_focused(qtile, 'a')
        qtile.c.layout.right()
        assert_focused(qtile, 'b')
        qtile.c.layout.down()
        assert_focused(qtile, 'd')
        qtile.c.layout.down()
        assert_focused(qtile, 'd')
        qtile.c.layout.previous()
        assert_focused(qtile, 'b')
        qtile.c.layout.next()
        assert_focused(qtile, 'd')
github numirias / qtile-plasma / tests / test_layout.py View on Github external
def test_recent(self, qtile):
        qtile.test_window('a')
        qtile.test_window('b')
        qtile.test_window('c')
        assert_focused(qtile, 'c')
        qtile.c.layout.recent()
        assert_focused(qtile, 'b')
        qtile.c.layout.recent()
        assert_focused(qtile, 'c')
        qtile.c.layout.next()
        assert_focused(qtile, 'a')
        qtile.c.layout.recent()
        assert_focused(qtile, 'c')