[ADD][I3] VPN toggle mapping

This commit is contained in:
Bruno BELANYI 2020-08-20 13:05:30 +02:00
parent 87d46ed8e7
commit d17b060f8d

View file

@ -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