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,16 @@
# Script: vpn-nordvpn-status
A small script that shows the status of NordVpn, with click-able actions that allow you to connect / reconnect. When connected it will display the City of the connection.
![vpn-nordvpn-status](screenshots/1.png)
![vpn-nordvpn-status](screenshots/2.png)
## Module
```ini
[module/vpn-nordvpn-status]
type = custom/script
exec = ~/polybar-scripts/vpn-nordvpn-status.sh
interval = 5
```

Binary file not shown.

After

Width:  |  Height:  |  Size: 757 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 806 B

View File

@@ -0,0 +1,9 @@
#!/bin/sh
STATUS=$(nordvpn status | grep Status | tr -d ' ' | cut -d ':' -f2)
if [ "$STATUS" = "Connected" ]; then
echo "%{F#82E0AA}%{A1:nordvpn d:}$(nordvpn status | grep City | cut -d ':' -f2)%{A}%{F-}"
else
echo "%{F#f00}%{A1:nordvpn c:}no vpn%{A}%{F-}"
fi