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
This commit is contained in:
17
hypr/scripts/toggle_proxy.sh
Executable file
17
hypr/scripts/toggle_proxy.sh
Executable file
@@ -0,0 +1,17 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user