From 89731b5a349ebc0a57f0b87e31444e9e61515aa7 Mon Sep 17 00:00:00 2001 From: Thanos Apollo Date: Thu, 25 Jan 2024 07:37:26 +0200 Subject: qtile: Redo emacs keys as keychords --- .config/qtile/config.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to '.config/qtile/config.py') 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(),), -- cgit v1.2.3