Add tmuxp session loader with key bind

This commit is contained in:
coolneng 2021-05-17 00:47:51 +02:00
parent e95ab81ad9
commit a11c487a1c
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
1 changed files with 13 additions and 0 deletions

View File

@ -306,6 +306,19 @@ mode "$Theme-switch" {
bindsym Escape mode "default" 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 # lock screen on suspend
set $lock_bg ~/Photos/Wallpapers/wallhaven-638719.png set $lock_bg ~/Photos/Wallpapers/wallhaven-638719.png
exec swayidle -w \ exec swayidle -w \