fix: checkupdates script for fastfetch causing delays; chore: removed bspwm and picom since I haven't been using or maintaining them
18 lines
344 B
Bash
Executable File
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
|