From a11c487a1c4a3376e48dc1495c93931976f2c09b Mon Sep 17 00:00:00 2001 From: coolneng Date: Mon, 17 May 2021 00:47:51 +0200 Subject: [PATCH] Add tmuxp session loader with key bind --- sway/.config/sway/config | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/sway/.config/sway/config b/sway/.config/sway/config index 0334b7a..f7ff203 100644 --- a/sway/.config/sway/config +++ b/sway/.config/sway/config @@ -306,6 +306,19 @@ mode "$Theme-switch" { bindsym Escape mode "default" } +# tmuxp session menu +bindsym $mod+Shift+s mode "$tmuxp-session" + +set $tmuxp-session (z) zion, (u) unit + +mode "$tmuxp-session" { + bindsym z exec --no-startup-id tmuxp load ~/.tmuxp/zion.yaml, mode "default" + bindsym u exec --no-startup-id tmuxp load ~/.tmuxp/unit.yaml, mode "default" + + bindsym Return mode "default" + bindsym Escape mode "default" +} + # lock screen on suspend set $lock_bg ~/Photos/Wallpapers/wallhaven-638719.png exec swayidle -w \