mirror of
https://github.com/dzaczek/Uconsole-i3.git
synced 2025-12-15 08:19:38 +00:00
initial commit
This commit is contained in:
commit
81b9fd515f
7 changed files with 789 additions and 0 deletions
17
scripts/wg_check.sh
Executable file
17
scripts/wg_check.sh
Executable file
|
|
@ -0,0 +1,17 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Icons
|
||||
ICON_UP=""
|
||||
ICON_DOWN=""
|
||||
|
||||
# Check if WireGuard interface wg0 is up
|
||||
if ip link show wg0 &> /dev/null; then
|
||||
# If wg0 is up, display a green icon
|
||||
echo $ICON_UP
|
||||
echo
|
||||
echo \#008000
|
||||
#else
|
||||
# # If wg0 is down, display a gray icon
|
||||
# echo $ICON_DOWN
|
||||
fi
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue