summaryrefslogtreecommitdiff
path: root/.config/qtile
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2024-01-25 07:37:26 +0200
committerThanos Apollo <[email protected]>2024-01-25 07:37:26 +0200
commit89731b5a349ebc0a57f0b87e31444e9e61515aa7 (patch)
tree85a4aeccd593b232c93a74d45029c8135fd3c201 /.config/qtile
parentf5844d701826809827563fdd33d3de8ebeb650dc (diff)
qtile: Redo emacs keys as keychords
Diffstat (limited to '.config/qtile')
-rw-r--r--.config/qtile/config.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/.config/qtile/config.py b/.config/qtile/config.py
index f5f2605..e5b695d 100644
--- a/.config/qtile/config.py
+++ b/.config/qtile/config.py
@@ -197,20 +197,23 @@ mod = "mod4"
browser = "firefox"
keys = [
- Key([mod],"Return",lazy.spawn("emacsclient -c"),),
- Key([mod,"shift"],"m",lazy.spawn("emacsclient -e '(thanos/pass-launcher)'"),),
Key([mod],"r",lazy.spawn("rofi -show drun -modi drun -show-icons"),),
Key([mod, "shift"], "l", lazy.spawn("slock")),
Key([mod,"shift"],"c",lazy.next_layout(),),
Key([mod],"q",lazy.window.kill(),),
Key([mod,"shift"],"r",lazy.restart(),),
- Key([mod,"shift"], "d", lazy.spawn("emacs --daemon")),
- Key([mod,"shift"], "e", lazy.spawn("emacs")),
# Switch focus of monitors
Key([mod],"period",lazy.next_screen(),),
# Treetab controls
Key([mod,"shift"],"b",lazy.layout.move_left(),),
Key([mod,"shift"],"f",lazy.layout.move_right(),),
+ # Emacs
+ KeyChord([mod], "e", [
+ Key([], "o", lazy.spawn("emacs")),
+ Key([], "e", lazy.spawn("emacsclient -c")),
+ Key([], "p", lazy.spawn("emacsclient -e '(thanos/pass-launcher)'")),
+ Key([], "d", lazy.spawn("emacs --daemon"))
+ ]),
# Window controls
Key([mod],"n",lazy.layout.down(),),
Key([mod],"p",lazy.layout.up(),),