23 lines
489 B
Bash
Executable File
23 lines
489 B
Bash
Executable File
#!/bin/sh
|
|
|
|
## overly sophisticated launcher for luakit ##
|
|
# xlbrowser.sh by @root_informatica.
|
|
|
|
FLAG=$1
|
|
|
|
case $FLAG in
|
|
-t) # torsock browser (verify that the tor service is running)
|
|
if ! nc -z localhost $TORSOCk; then
|
|
herbe "tor is NOT running" &
|
|
exit 0
|
|
else
|
|
torsocks WEBKIT_DISABLE_COMPOSITING_MODE=1 luakit -u https://duckduckgo.com --nounique
|
|
fi
|
|
;;
|
|
*) # default browser
|
|
WEBKIT_DISABLE_COMPOSITING_MODE=1 luakit -u https://duckduckgo.com
|
|
;;
|
|
esac
|
|
|
|
|