power menu, redshift, polybar

This commit is contained in:
azpsen
2024-01-28 16:37:10 -06:00
parent 89516a6ce1
commit 319b44ecbd
307 changed files with 7642 additions and 5 deletions

View File

@@ -0,0 +1,28 @@
# Script: vpn-openvpn-status
A script that shows if OpenVPN is running and which configuration file it uses.
![vpn-openvpn-status](screenshots/1.png)
![vpn-openvpn-status](screenshots/2.png)
## Configuration
* The configuration files must have an extension, e.g. `.ovpn`.
* The configuration files must be stored in a directory, e.g. `/etc/openvpn/conf.d`.
Launch OpenVPN with the following command:
```
openvpn --daemon --auth-nocache --cd "/etc/openvpn/conf.d" --config "UK-Southampton.ovpn"
```
## Module
```ini
[module/vpn-openvpn-status]
type = custom/script
exec = ~/polybar-scripts/vpn-openvpn-status.sh
interval = 5
```

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.7 KiB

View File

@@ -0,0 +1,3 @@
#!/bin/sh
printf "VPN: " && (pgrep -a openvpn$ | head -n 1 | awk '{print $NF }' | cut -d '.' -f 1 && echo down) | head -n 1