feat(Browser): Include incognito window option

This commit is contained in:
Bruno F. Fontes 2021-07-31 16:14:03 -03:00
parent 14901142b6
commit ebc7031a3d
Signed by: brunofontes
GPG Key ID: EE3447CE80048495

View File

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