1
0
mirror of https://github.com/tiyn/dotfiles.git synced 2025-10-09 19:11:15 +02:00

local: changed and updated scripts

This commit is contained in:
2024-03-17 22:52:40 +01:00
parent 62c161c3c1
commit 923fba39f4
20 changed files with 70 additions and 53 deletions

7
.local/bin/tools/vpn_menu Executable file
View File

@@ -0,0 +1,7 @@
#!/bin/bash
active=$(nmcli connection show --active | grep vpn | cut -d' ' -f1)
[[ ! -z "$active" ]] && { prompt "disconnect from $active?" || exit 1; }
[[ ! -z "$active" ]] && nmcli connection down $active
conn=$(nmcli connection | grep vpn | cut -d' ' -f1 | dmenu)
nmcli connection up $conn