sway: Add a key mapping to start kitty with session

This commit is contained in:
Sanchayan Maity 2021-10-13 12:39:01 +05:30
parent 952af3ae06
commit 8e1b5c1a34

View file

@ -10,6 +10,7 @@ set $prev bracketleft
set $next bracketright set $next bracketright
# Your preferred terminal emulator # Your preferred terminal emulator
set $term kitty set $term kitty
set $term_session kitty --session ~/.config/kitty/session.conf
# Your preferred application launcher # Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened # 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. # on the original workspace that the command was run on.
@ -86,6 +87,7 @@ input "type:keyboard" {
# #
# Start a terminal # Start a terminal
bindsym $mod+Return exec $term bindsym $mod+Return exec $term
bindsym $mod+Shift+Return exec $term_session
# Kill focused window # Kill focused window
bindsym $mod+Shift+q kill bindsym $mod+Shift+q kill