-
Notifications
You must be signed in to change notification settings - Fork 0
/
browser.sh
executable file
·27 lines (23 loc) · 1.03 KB
/
browser.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/zsh
activity=$(kactivities-cli --current-activity | cut -d" " -f3)
MPV=0
[[ $1 =~ .*youtube\.com.* ]] && MPV=1
[[ $1 =~ .*youtu\.be.* ]] && MPV=1
[[ $1 =~ .*peertube.* ]] && MPV=1
[[ $1 =~ .*yewtu\.be.* ]] && MPV=1
if [[ $MPV == "1" ]]; then
mpv "$*" >/dev/null 2>&1 &
exit 0
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 &
# exit 0
# fi
[[ $activity == "OXO" ]] && /bin/firefox -P OXO "$1" >/dev/null 2>&1 &
[[ $activity == "Development" ]] && /bin/firefox -P DEV "$1" >/dev/null 2>&1 &
[[ $activity == "Main" ]] && /bin/firefox "$1" >/dev/null 2>&1 &
[[ $activity == "Videos" ]] && /bin/firefox "$1" >/dev/null 2>&1 &