Files
dotfiles/hypr/scripts/toggle_proxy.sh
Nikolai Papin 0886c29a46 feat: set cava bar width to 1 for slimmer visualization bars;
refactor: update copyq configuration with clipboard checking disabled, unfocus behavior changed, and screen capture prevention enabled;
feat: add new eww configuration file with example widget and window definitions;
refactor: update hyprland autostart commands, replace Telegram with AyuGram, add easymove submap, and adjust workspace rules;
feat: introduce hyprsunset configuration file for automatic gamma and temperature adjustments;
chore: extend privacy tagging rules to include AyuGram and SimpleX desktop applications;
refactor: optimize muza script by removing redundant sleep calls and adjusting terminal launch sequence;
refactor: improve toggle_proxy script with process killing function and silent operation;
refactor: adjust rmpc layout to allocate 72% space for queue and 28% for cava visualization;
feat: update rmpc theme with new album art, modified color scheme, and added tabs pane;
feat: add keyboard navigation bindings for rofi launcher mode switching and paging;
feat: expand power mode menu with CPU frequency options and integrate cpupower controls;
feat: implement h/j/k/l row navigation keybindings for rofi power menu;
feat: reconfigure power mode menu layout to 3 columns and add vertical navigation keybindings;
feat: add row navigation keybindings to rofi recorder menu style;
refactor: update swaync notification styles with revised button borders, selection colors, and hover effects;
feat: add custom submap display module to waybar for active hyprland submaps;
refactor: modify waybar styling with updated background colors and new module borders;
chore: update bluetooth alias from bluetuith to bluetui in shell configuration
2025-12-15 18:29:07 +03:00

24 lines
530 B
Bash
Executable File

#!/bin/bash
TOGGLE_FILE="/tmp/toggle_ssocks"
kill_process() {
local process_name="$1"
killall "$process_name" 2>/dev/null
sleep 0.25
killall -9 "$process_name" 2>/dev/null 2>&1
}
kill_process sslocal
kill_process spoof-dpi
if [ -f "$TOGGLE_FILE" ]; then
echo "Enabling spoofdpi"
http_proxy="" spoof-dpi -addr 127.0.0.1 -port 1080 >/dev/null 2>&1 &
rm "$TOGGLE_FILE"
else
echo "Enabling shadowsocks"
http_proxy="" sslocal -c /etc/shadowsocks-rust/mega.json >/dev/null 2>&1 &
touch "$TOGGLE_FILE"
fi