From 72d1ab4e27003954d15c4a85855ada1cb12bbab3 Mon Sep 17 00:00:00 2001 From: cerberus Date: Sun, 17 Aug 2025 10:53:23 +0200 Subject: [PATCH] added mouse config --- qtile/modules/keys.py | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) 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()), +]