diff options
| author | benj <benj@rse8.com> | 2026-02-09 18:19:37 +0800 |
|---|---|---|
| committer | benj <benj@rse8.com> | 2026-02-09 18:20:16 +0800 |
| commit | 360477ee4af21c91e8475e2a9ab3f0e962d98106 (patch) | |
| tree | 0a21fa790b9f63e47ca2ea235abcb78bd0024d90 /des/i3/i3blocks/scripts/xray | |
| parent | 3c53f6ce3ea1df5fcba29ddbbc56e1c8de8e640a (diff) | |
| download | mycfg-360477ee4af21c91e8475e2a9ab3f0e962d98106.tar mycfg-360477ee4af21c91e8475e2a9ab3f0e962d98106.tar.gz mycfg-360477ee4af21c91e8475e2a9ab3f0e962d98106.tar.bz2 mycfg-360477ee4af21c91e8475e2a9ab3f0e962d98106.tar.lz mycfg-360477ee4af21c91e8475e2a9ab3f0e962d98106.tar.xz mycfg-360477ee4af21c91e8475e2a9ab3f0e962d98106.tar.zst mycfg-360477ee4af21c91e8475e2a9ab3f0e962d98106.zip | |
add xray status
Diffstat (limited to 'des/i3/i3blocks/scripts/xray')
| -rwxr-xr-x | des/i3/i3blocks/scripts/xray | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/des/i3/i3blocks/scripts/xray b/des/i3/i3blocks/scripts/xray new file mode 100755 index 0000000..04070b1 --- /dev/null +++ b/des/i3/i3blocks/scripts/xray @@ -0,0 +1,10 @@ +#!/bin/bash + +ICON_VPN_ON= +ICON_VPN_OFF= + +if systemctl is-active --quiet xray; then + echo "<span color='#49e20e'>$ICON_VPN_ON </span>" +else + echo "<span color='#cb4b16'>$ICON_VPN_OFF </span>" +fi
\ No newline at end of file |
