summaryrefslogtreecommitdiff
path: root/.config/qtile/keys.py
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2022-10-04 17:59:44 +0300
committerThanos Apollo <[email protected]>2022-10-04 17:59:44 +0300
commit6a0a514b1f4f2bf39781ff635ea1785d802d9188 (patch)
tree343606459c2b57c8f982b3bb434c4888e3678b1c /.config/qtile/keys.py
parent55835e79027acc4a25535439faf1ed651ed79495 (diff)
parent780e1518d1fd0fa6cb13a79109d9e9401a015866 (diff)
Merge branch 'master' of github.com:ThanosApollo/config
Diffstat (limited to '.config/qtile/keys.py')
-rw-r--r--.config/qtile/keys.py18
1 files changed, 14 insertions, 4 deletions
diff --git a/.config/qtile/keys.py b/.config/qtile/keys.py
index 8667d2e..9b9438b 100644
--- a/.config/qtile/keys.py
+++ b/.config/qtile/keys.py
@@ -2,15 +2,17 @@
from libqtile.config import Key
from libqtile.command import lazy
-
+from libqtile.config import Click, Drag
class MyKeys():
- def __init__(self,mod,browser,term):
+ def __init__(self,mod,browser,term,editor):
self.mod = mod
self.browser = browser
self.term = term
+ self.editor = editor
+
def init_keys(self):
my_keys = [
@@ -52,8 +54,8 @@ class MyKeys():
desc='Shutdown Qtile'
),
Key([self.mod, "shift"], "e",
- lazy.spawn("emacsclient -c -a 'emacs'"),
- desc='Doom Emacs'
+ lazy.spawn(self.editor),
+ desc='Launch editor'
),
### Switch focus of monitors
Key([self.mod], "period",
@@ -161,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