diff options
Diffstat (limited to 'config.def.h')
-rw-r--r-- | config.def.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/config.def.h b/config.def.h index c6de0ea..f81b100 100644 --- a/config.def.h +++ b/config.def.h @@ -128,7 +128,7 @@ static const Key keys[] = { // Use "$(xsel -op)" instead of "xsel -op | sdcv" (with sh -c?) because: the latter won't quit if found items similar and require user input. Not sure why. // use env inside, to fix a bug: alacritty created by `alacritty msg create-window` will quit immediately if result is less than one page. { MODKEY, XK_s, spawn, SHCMD("alacritty -e env LESS=\"$LESS-+F\" sdcv --color \"$(xsel -op)\"") }, - { MODKEY, XK_v, spawn, SHCMD("mullvad reconnect") }, + { MODKEY, XK_v, spawn, SHCMD("if nmcli -t --fields device,state device | grep -q '^wg0:connected$'; then nmcli connection down wg0; else nmcli connection up wg0; fi") }, { MODKEY, XK_w, spawn, SHCMD("\"$BROWSER\"") }, { MODKEY, XK_x, spawn, SHCMD("sleep 0.3; xcross") }, { MODKEY, XK_y, spawn, SHCMD("mpvy -s") }, |