Wireguard script.
This commit is contained in:
parent
b0cf9135d7
commit
bd710e65ff
@ -178,6 +178,12 @@ screens = [
|
|||||||
update_interval=1,
|
update_interval=1,
|
||||||
cmd="sb-volume",
|
cmd="sb-volume",
|
||||||
),
|
),
|
||||||
|
widget.GenPollCommand(
|
||||||
|
background='#770000',
|
||||||
|
foreground='#feffff',
|
||||||
|
update_interval=1,
|
||||||
|
cmd="sb-wireguard",
|
||||||
|
),
|
||||||
widget.Wlan(
|
widget.Wlan(
|
||||||
background='#770000',
|
background='#770000',
|
||||||
foreground='#feffff',
|
foreground='#feffff',
|
||||||
|
7
_gui/_scripts/sb-wireguard
Executable file
7
_gui/_scripts/sb-wireguard
Executable file
@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
interface=$(ip a | grep 'wg[0-9]:' | awk -F': ' '{print $2}')
|
||||||
|
case $interface in
|
||||||
|
wg0) printf 'wireguard running' ;;
|
||||||
|
wg1) printf 'wireguard running (all traffic)' ;;
|
||||||
|
esac
|
Loading…
Reference in New Issue
Block a user