diff --git a/qtile/modules/keys.py b/qtile/modules/keys.py index 5bff2b7..a3541d8 100644 --- a/qtile/modules/keys.py +++ b/qtile/modules/keys.py @@ -1,7 +1,8 @@ from libqtile.lazy import lazy from libqtile.config import EzKey as Key +from libqtile.config import EzClick as Click, EzDrag as Drag -from config import apps, modifier_keys +from config import apps keys = [ # Focus manipulation @@ -107,3 +108,17 @@ keys = [ Key("M-b", lazy.spawn(apps["browser"])), Key("M-", lazy.spawn(apps["terminal"])), ] + +mouse = [ + Drag( + "M-1", + lazy.window.set_position_floating(), + start=lazy.window.get_position(), + ), + Drag( + "M-3", + lazy.window.set_size_floating(), + start=lazy.window.get_size(), + ), + Click("M-2", lazy.window.bring_to_front()), +]