summaryrefslogtreecommitdiff
path: root/.config
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2022-02-07 17:16:35 -0700
committerSean Whitton <spwhitton@spwhitton.name>2022-02-07 18:42:02 -0700
commit3e766887834d25b62c0b67a2e5289beaabdf382d (patch)
tree8c7111a07efd66148302bc6b8393feb864a37636 /.config
parent0f9dcda882c9d837acdedc483c140663da9b3e65 (diff)
downloaddotfiles-3e766887834d25b62c0b67a2e5289beaabdf382d.tar.gz
new window manager binding to get at Eshell in HOME
Diffstat (limited to '.config')
-rw-r--r--.config/i3/config14
-rw-r--r--.config/sway/config14
2 files changed, 24 insertions, 4 deletions
diff --git a/.config/i3/config b/.config/i3/config
index 074a68b4..3034f859 100644
--- a/.config/i3/config
+++ b/.config/i3/config
@@ -48,13 +48,23 @@ mode "C-i-" {
# make a fresh Emacs frame -- typically this gets invoked only on
# empty workspaces, as otherwise I use commands under `C-x 5` to get
# more Emacs frames
- bindsym Return exec ~/src/dotfiles/scripts/desktop/emacsclient, mode "default"
+ bindsym e exec ~/src/dotfiles/scripts/desktop/emacsclient, mode "default"
# override the script's usual logic to start a fresh, non-debug daemon
- bindsym Shift+Return \
+ bindsym Shift+e \
exec ~/src/dotfiles/scripts/desktop/emacsclient --installed, \
mode "default"
+ # Fresh Emacs frame and get a shell in HOME. Without this it's
+ # C-i e C-c e h which is too many keys esp. compared to C-i DEL
+ bindsym Return exec ~/src/dotfiles/scripts/desktop/emacsclient -- -nce \
+ "(let ((default-directory (expand-file-name "'"'~/'"'")) \
+ (display-buffer-overriding-action \
+ '(display-buffer-same-window \
+ . ((inhibit-same-window . nil))))) \
+ (transient-cycles--spw/eshell-jump-from-here-with-transient-cycling))", \
+ mode "default"
+
# start a terminal emulator
bindsym BackSpace exec xfce4-terminal, mode "default"
diff --git a/.config/sway/config b/.config/sway/config
index 26218142..0e8e893f 100644
--- a/.config/sway/config
+++ b/.config/sway/config
@@ -33,13 +33,23 @@ mode "C-i-" {
# make a fresh Emacs frame -- typically this gets invoked only on
# empty workspaces, as otherwise I use commands under `C-x 5` to get
# more Emacs frames
- bindsym Return exec ~/src/dotfiles/scripts/desktop/emacsclient, mode "default"
+ bindsym e exec ~/src/dotfiles/scripts/desktop/emacsclient, mode "default"
# override the script's usual logic to start a fresh, non-debug daemon
- bindsym Shift+Return \
+ bindsym Shift+e \
exec ~/src/dotfiles/scripts/desktop/emacsclient --installed, \
mode "default"
+ # Fresh Emacs frame and get a shell in HOME. Without this it's
+ # C-i e C-c e h which is too many keys esp. compared to C-i DEL
+ bindsym Return exec ~/src/dotfiles/scripts/desktop/emacsclient -- -nce \
+ "(let ((default-directory (expand-file-name "'"'~/'"'")) \
+ (display-buffer-overriding-action \
+ '(display-buffer-same-window \
+ . ((inhibit-same-window . nil))))) \
+ (transient-cycles--spw/eshell-jump-from-here-with-transient-cycling))", \
+ mode "default"
+
# start a terminal emulator
bindsym BackSpace exec foot, mode "default"