From 8e1b5c1a34d6c3f23b606cd6bf4930d765ab6b6a Mon Sep 17 00:00:00 2001 From: Sanchayan Maity Date: Wed, 13 Oct 2021 12:39:01 +0530 Subject: [PATCH] sway: Add a key mapping to start kitty with session --- sway/.config/sway/config | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sway/.config/sway/config b/sway/.config/sway/config index c9c8891..7c18dd7 100644 --- a/sway/.config/sway/config +++ b/sway/.config/sway/config @@ -10,6 +10,7 @@ set $prev bracketleft set $next bracketright # Your preferred terminal emulator set $term kitty +set $term_session kitty --session ~/.config/kitty/session.conf # Your preferred application launcher # Note: pass the final command to swaymsg so that the resulting window can be opened # on the original workspace that the command was run on. @@ -86,6 +87,7 @@ input "type:keyboard" { # # Start a terminal bindsym $mod+Return exec $term + bindsym $mod+Shift+Return exec $term_session # Kill focused window bindsym $mod+Shift+q kill