diff options
author | Xiao Pan <gky44px1999@gmail.com> | 2023-07-07 23:38:02 -0700 |
---|---|---|
committer | Xiao Pan <gky44px1999@gmail.com> | 2023-07-07 23:38:02 -0700 |
commit | cb2984958a3b9eeeb4aa9cf4045dde1ded27b3ff (patch) | |
tree | e12d486daf91a7ccaebe06cfcf36851ce7bfbbed | |
parent | 737cdebf55389966b5332df2ddbc0ca904db2d9e (diff) |
demullvad
-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") }, |