proxy aliases + add chromium

This commit is contained in:
thek4n 2025-04-01 13:41:59 +03:00
parent a4ed26fdb3
commit b9f5afa0b6
4 changed files with 15 additions and 1 deletions

View File

@ -21,5 +21,6 @@ docker:.docker/cli-plugins
ipython:.ipython/profile_default/ipython_config.py
gdb:.config/gdb
sandbox:
utils: .local/bin/myip .local/bin/genpass .local/bin/gensalt .local/bin/django-create-project .local/bin/mirror-site .local/bin/split-file .local/bin/extract .local/bin/destroy
utils:.local/bin/myip .local/bin/genpass .local/bin/gensalt .local/bin/django-create-project .local/bin/mirror-site .local/bin/split-file .local/bin/extract .local/bin/destroy
chromium:.local/bin/pchromium .local/share/applications/pchromium.desktop
all:%less %t %note %tmux %zsh %nvim %git"

View File

@ -193,3 +193,5 @@ alias -g BG="&>/dev/null &" # background
alias -g RED='2> >(while read line; do printf "\033[0;31m${line}\033[0m\n"; done)'
alias -g BEEP='&& beep -f 800 -l 250 -n -f 1000 -l 500 || beep -f 800 -l 250 -n -f 500 -l 500'
alias -g PROXY="http_proxy='socks5://localhost:1080'"

7
home/user/.local/bin/pchromium Executable file
View File

@ -0,0 +1,7 @@
#!/bin/sh
temp_dir="$(mktemp -d)"
chromium --proxy-server=socks5://localhost:1080 --user-data-dir="${temp_dir}" --new-window --proxy-bypass-list='10.0.0.0/8,192.168.0.0/16'
rm -r "${temp_dir}"

View File

@ -0,0 +1,4 @@
[Desktop Entry]
Exec=pchromium
Name=pchromium
Type=Application