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-anyconnect-status
A small script to show the anyconnect status.
If an interface named `cscotun` exists the IP address will be displayed. Otherwise it displays `VPN DISCONNECTED`.
![vpn-anyconnect-status](screenshots/1.png)
![vpn-anyconnect-status](screenshots/2.png)
## Dependencies
* `ifconfig`
## Configuration
The Icon is `賓` from [FantasqueSansMono](https://github.com/ryanoasis/nerd-fonts/tree/master/patched-fonts/FantasqueSansMono/Regular/complete).
## Module
```ini
[module/vpn-anyconnect-status]
type = custom/script
exec = ~/bin/vpnstatus.sh
interval = 5
```

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

View File

@@ -0,0 +1,9 @@
#!/bin/sh
IFACE=$(ifconfig | grep cscotun | awk '{print $1}')
if [ "$IFACE" = "cscotun*" ]; then
echo "#1 %{u#55aa55}$(ifconfig cscotun0 | grep inet | awk '{print $2}' | cut -f2 -d ':')%{u-}"
else
echo "#1 %{F#FF0000}%{u#FF0000}VPN DISCONNECTED%{u-}%{F-}"
fi