linuxShortcuts/browser.sh
Bruno Fontes 42344f98a5 Tests, tests and tests
Still not sure why I keep track of those changes, if I don't need them
and do not care about proper handling them.

Anyway, it is here if, some some reason I need it back.
2022-01-22 19:14:01 -03:00

21 lines
928 B
Bash
Executable File

#!/bin/bash
activity=`kactivities-cli --current-activity | cut -d" " -f3`
if [[ $1 =~ .*youtube\.com.* ]]; then
/bin/freetube "$*" >/dev/null 2>&1 &
exit
fi
if [[ $1 =~ .*\&incognitottt$ ]]; then
url="${1/\&incognitottt/}"
[[ $activity == "OXO" ]] && /bin/brave --incognito "$url" >/dev/null 2>&1 &
[[ $activity == "Development" ]] && /home/bruno/Apps/firefox/firefox-bin --private-window "$url" >/dev/null 2>&1 &
[[ $activity == "Main" ]] && /bin/firefox --private-window "$url" >/dev/null 2>&1 &
[[ $activity == "Videos" ]] && /bin/firefox --private-window "$url" >/dev/null 2>&1 &
else
[[ $activity == "OXO" ]] && /bin/brave "$1" >/dev/null 2>&1 &
[[ $activity == "Development" ]] && /home/bruno/Apps/firefox/firefox-bin "$1" >/dev/null 2>&1 &
[[ $activity == "Main" ]] && /bin/firefox "$1" >/dev/null 2>&1 &
[[ $activity == "Videos" ]] && /bin/firefox "$1" >/dev/null 2>&1 &
fi