summaryrefslogtreecommitdiff
path: root/.config/qtile/keys.py
diff options
context:
space:
mode:
authorThanosApollo <[email protected]>2022-10-03 15:26:26 +0300
committerThanosApollo <[email protected]>2022-10-03 15:26:26 +0300
commit780e1518d1fd0fa6cb13a79109d9e9401a015866 (patch)
tree438ec406d28b970b79645baa64e4ca0357ee6e02 /.config/qtile/keys.py
parent3f1291e51a6363acad76a681184a682dade74025 (diff)
Add mouse keys
Diffstat (limited to '.config/qtile/keys.py')
-rw-r--r--.config/qtile/keys.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/.config/qtile/keys.py b/.config/qtile/keys.py
index 76625a1..9b9438b 100644
--- a/.config/qtile/keys.py
+++ b/.config/qtile/keys.py
@@ -2,7 +2,7 @@
from libqtile.config import Key
from libqtile.command import lazy
-
+from libqtile.config import Click, Drag
@@ -163,3 +163,11 @@ class MyKeys():
),
]
return my_keys
+
+ def init_mouse(self):
+ mouse_keys = [
+ Drag([self.mod], "Button1", lazy.window.set_position_floating(), start=lazy.window.get_position()),
+ Drag([self.mod], "Button3", lazy.window.set_size_floating(), start=lazy.window.get_size()),
+ Click([self.mod], "Button2", lazy.window.bring_to_front()),
+ ]
+ return mouse_keys