power menu, redshift, polybar
This commit is contained in:
15
.config/polybar/scripts/vpn-networkmanager-status/README.md
Normal file
15
.config/polybar/scripts/vpn-networkmanager-status/README.md
Normal file
@@ -0,0 +1,15 @@
|
||||
# Script: vpn-networkmanager-status
|
||||
|
||||
A simple script that shows the name of the VPN started via NetworkManager.
|
||||
|
||||

|
||||
|
||||
|
||||
## Module
|
||||
|
||||
```ini
|
||||
[module/vpn-networkmanager-status]
|
||||
type = custom/script
|
||||
exec = ~/polybar-scripts/vpn-networkmanager-status.sh
|
||||
interval = 10
|
||||
```
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 4.7 KiB |
@@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
|
||||
vpn="$(nmcli -t -f name,type connection show --order name --active 2>/dev/null | grep vpn | head -1 | cut -d ':' -f 1)"
|
||||
|
||||
if [ -n "$vpn" ]; then
|
||||
echo "#2 VPN: $vpn"
|
||||
else
|
||||
echo "#2 VPN: DOWN "
|
||||
fi
|
||||
Reference in New Issue
Block a user