about summary refs log tree commit diff
diff options
context:
space:
mode:
authorXiao Pan <xyz@flylightning.xyz>2025-01-11 21:09:23 -0800
committerXiao Pan <xyz@flylightning.xyz>2025-01-11 21:09:23 -0800
commit9f92432bc715bf3291213661d82cccbbe3969bf7 (patch)
tree659046078e93ee194fe2e9a9763b90a44d53062b
parentf6819074e774930d22319427847d782c0c2da42a (diff)
wireguard switch to use cfg repo branches as names fly
-rw-r--r--config.def.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/config.def.h b/config.def.h
index cab6d86..88de8ec 100644
--- a/config.def.h
+++ b/config.def.h
@@ -150,7 +150,7 @@ static const Key keys[] = {
 	{ MODKEY, XK_s, spawn, SHCMD("alacritty -e env LESS=\"$LESS-+F\" sdcv --color \"$(xsel -op)\"") },
 	// firefox Userjs toggle RFP
 	{ MODKEY, XK_u, spawn, SHCMD("ujs -r") },
-	{ MODKEY, XK_v, spawn, SHCMD("vpn \"$(printf 'mydefault\naa\nca\nia\nib\nstudio\n' | dmenu -p 'vpn')\"") },
+	{ MODKEY, XK_v, spawn, SHCMD("vpn \"$( { echo master; git -C \"$HOME/programs/config_local_arch\" branch | awk '!/pp|master/{print ($1==\"*\")?$2:$1}';} | dmenu -p vpn)\"") },
 	{ MODKEY, XK_w, spawn, SHCMD("\"$BROWSER\"") },
 	{ MODKEY, XK_x, spawn, SHCMD("sleep 0.3; xcross") },
 	{ MODKEY, XK_y, spawn, SHCMD("mpvy -s") },