From cc6d6fcfc6e8403e87dae9f092e61f0edf8e3cc6 Mon Sep 17 00:00:00 2001 From: ryo Date: Wed, 30 Oct 2024 20:10:03 +0000 Subject: Initial commit --- bin/xray.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 bin/xray.sh (limited to 'bin/xray.sh') diff --git a/bin/xray.sh b/bin/xray.sh new file mode 100755 index 0000000..faf4c0b --- /dev/null +++ b/bin/xray.sh @@ -0,0 +1,9 @@ +#!/usr/bin/env dash + +if [ -n "$(pgrep xray)" ]; then + pkill xray + notify-send "Proxy disabled" +else + xray -c $HOME/.config/xray/config.json & + notify-send "Proxy enabled" +fi -- cgit v1.2.3