summaryrefslogtreecommitdiff
path: root/.config
diff options
context:
space:
mode:
Diffstat (limited to '.config')
-rw-r--r--.config/qtile/config.py4
-rw-r--r--.config/qtile/keys.py10
2 files changed, 12 insertions, 2 deletions
diff --git a/.config/qtile/config.py b/.config/qtile/config.py
index 24cedcd..d61aa70 100644
--- a/.config/qtile/config.py
+++ b/.config/qtile/config.py
@@ -22,7 +22,7 @@ my_keys = MyKeys(mod="mod4",
keys = my_keys.init_keys()
dgroups_key_binder = simple_key_binder("mod4")
-
+mouse = my_keys.init_mouse()
## Groups and layouts
groups = []
group_names = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "0",]
@@ -249,6 +249,8 @@ def init_screens():
return [Screen(top=bar.Bar(widgets=init_widgets_screen1(), size=33, opacity=0.8)),
Screen(top=bar.Bar(widgets=init_widgets_screen2(), size=26, opacity=0.8))]
+
+
screens = init_screens()
follow_mouse_focus = True
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