power menu, redshift, polybar
This commit is contained in:
16
.config/polybar/scripts/vpn-nordvpn-status/README.md
Normal file
16
.config/polybar/scripts/vpn-nordvpn-status/README.md
Normal 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.
|
||||
|
||||

|
||||

|
||||
|
||||
|
||||
## Module
|
||||
|
||||
```ini
|
||||
[module/vpn-nordvpn-status]
|
||||
type = custom/script
|
||||
exec = ~/polybar-scripts/vpn-nordvpn-status.sh
|
||||
interval = 5
|
||||
```
|
||||
BIN
.config/polybar/scripts/vpn-nordvpn-status/screenshots/1.png
Normal file
BIN
.config/polybar/scripts/vpn-nordvpn-status/screenshots/1.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 757 B |
BIN
.config/polybar/scripts/vpn-nordvpn-status/screenshots/2.png
Normal file
BIN
.config/polybar/scripts/vpn-nordvpn-status/screenshots/2.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 806 B |
@@ -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
|
||||
Reference in New Issue
Block a user