From d17b060f8d9f88fe65ac3a89a7c329ecbb242952 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Thu, 20 Aug 2020 13:05:30 +0200 Subject: [PATCH] [ADD][I3] VPN toggle mapping --- i3/.config/i3/config | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/i3/.config/i3/config b/i3/.config/i3/config index 9203151..f5f7900 100644 --- a/i3/.config/i3/config +++ b/i3/.config/i3/config @@ -359,6 +359,20 @@ mode "$mode_background" { bindsym $mod+b mode "$mode_background" +# Enable or disable vpn permanently +set $mode_vpn (e)nable (d)isable vpn + +mode "$mode_vpn" { + bindsym e exec --no-startup-id toggle-vpn --visual up, mode "default" + bindsym d exec --no-startup-id toggle-vpn --visual down, mode "default" + + # Exit vpn mode: "Enter" or "Escape" or $mod+x + bindsym Return mode "default" + bindsym Escape mode "default" + bindsym $mod+c mode "default" +} + +bindsym $mod+c mode "$mode_vpn" # Enable or disable xautolock permanently set $mode_xautolock (e)nable (d)isable Xautolock