Files
dotfiles/hypr/scripts/toggle_proxy.sh
Nikolai Papin 761b4e2bac refactor: moved useful scripts from the bspwm folder to more appropriate locations;
fix: checkupdates script for fastfetch causing delays;
chore: removed bspwm and picom since I haven't been using or maintaining them
2025-11-17 17:50:56 +03:00

18 lines
344 B
Bash
Executable File

#!/bin/bash
TOGGLE_FILE="/tmp/toggle_ssocks"
if [ -f "$TOGGLE_FILE" ]; then
echo "Enabling spoofdpi"
killall sslocal
http_proxy="" spoof-dpi -addr 127.0.0.1 -port 1080 &
rm "$TOGGLE_FILE"
else
echo "Enabling shadowsocks"
killall spoof-dpi
http_proxy="" sslocal -c /etc/shadowsocks-rust/mega.json &
touch "$TOGGLE_FILE"
fi