diff --git a/qtile/modules/keys.py b/qtile/modules/keys.py index e69de29..ceadd0b 100644 --- a/qtile/modules/keys.py +++ b/qtile/modules/keys.py @@ -0,0 +1,59 @@ +from libqtile.lazy import lazy +from libqtile.config import EzKey as Key + +from config import apps, modifier_keys + +keys = [ + # Focus manipulation + Key( + "M-h", + lazy.layout.left(), + desc="Move focus to the left", + ), + Key( + "M-l", + lazy.layout.right(), + desc="Move focus to the right", + ), + Key( + "M-j", + lazy.layout.down(), + desc="Move focus to the down", + ), + Key( + "M-k", + lazy.layout.up(), + desc="Move focus to the up", + ), + # Window manipulation + Key( + "M-S-h", + lazy.layout.swap_left(), + desc="Move window to the left", + ), + Key( + "M-S-l", + lazy.layout.swap_right(), + desc="Move window to the right", + ), + Key( + "M-S-j", + lazy.layout.shuffle_down(), + desc="Move window down", + ), + Key( + "M-S-k", + lazy.layout.shuffle_up(), + desc="Move window up", + ), + Key( + "M-S-i", + lazy.layout.shrink(), + desc="Increase window size", + ), + Key( + "M-S-m", + lazy.layout.grow(), + desc="Decrease window size", + ), +]