summaryrefslogtreecommitdiff
path: root/.config
diff options
context:
space:
mode:
authorThanosApollo <[email protected]>2022-10-03 15:06:30 +0300
committerThanosApollo <[email protected]>2022-10-03 15:06:30 +0300
commit550424987e5c8aecb72421e7c75856c13758edcd (patch)
tree05f2b73751156d54da4de49b291dc22e86d42460 /.config
parent4e37da400c12d7a73a00d8dd7979c7fe6109b894 (diff)
Update qtile keys
Diffstat (limited to '.config')
-rw-r--r--.config/qtile/config.py5
-rw-r--r--.config/qtile/keys.py8
2 files changed, 8 insertions, 5 deletions
diff --git a/.config/qtile/config.py b/.config/qtile/config.py
index 3ed23bd..24cedcd 100644
--- a/.config/qtile/config.py
+++ b/.config/qtile/config.py
@@ -17,7 +17,8 @@ def start_once():
## Keybindings
my_keys = MyKeys(mod="mod4",
browser="qutebrowser",
- term="alacritty")
+ term="alacritty",
+ editor = "emacsclient -c -a 'emacs'")
keys = my_keys.init_keys()
dgroups_key_binder = simple_key_binder("mod4")
@@ -53,7 +54,7 @@ layouts = [
# layout.MonadWide(**layout_theme),
# layout.Matrix(**layout_theme),
# layout.Bsp(**layout_theme),
- # layout.Floating(**layout_theme),
+ layout.Floating(**layout_theme),
# layout.RatioTile(**layout_theme),
layout.Max(**layout_theme)
]
diff --git a/.config/qtile/keys.py b/.config/qtile/keys.py
index 8667d2e..76625a1 100644
--- a/.config/qtile/keys.py
+++ b/.config/qtile/keys.py
@@ -7,10 +7,12 @@ from libqtile.command import lazy
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",