mirror of
https://github.com/Horhik/dotfiles.git
synced 2024-12-02 03:16:50 +00:00
29 lines
597 B
Markdown
29 lines
597 B
Markdown
|
# 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
|
||
|
```
|