2023-06-23 13:10:17 +00:00
|
|
|
#!/bin/zsh
|
|
|
|
activity=$(kactivities-cli --current-activity | cut -d" " -f3)
|
2021-07-17 22:32:54 +00:00
|
|
|
|
2023-12-01 22:00:54 +00:00
|
|
|
MPV=0
|
|
|
|
[[ $1 =~ .*youtube\.com.* ]] && MPV=1
|
|
|
|
[[ $1 =~ .*youtu\.be.* ]] && MPV=1
|
|
|
|
[[ $1 =~ .*peertube.* ]] && MPV=1
|
|
|
|
[[ $1 =~ .*yewtu\.be.* ]] && MPV=1
|
2022-10-07 11:40:50 +00:00
|
|
|
|
2023-12-01 22:00:54 +00:00
|
|
|
if [[ $MPV == "1" ]]; then
|
2022-10-07 11:40:50 +00:00
|
|
|
mpv "$*" >/dev/null 2>&1 &
|
2023-12-01 22:00:54 +00:00
|
|
|
exit 0
|
2022-01-22 22:14:01 +00:00
|
|
|
fi
|
|
|
|
|
2023-06-23 13:10:17 +00:00
|
|
|
# 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 &
|
2023-12-01 22:00:54 +00:00
|
|
|
[[ $activity == "Development" ]] && /bin/firefox -P DEV "$1" >/dev/null 2>&1 &
|
2023-06-23 13:10:17 +00:00
|
|
|
[[ $activity == "Main" ]] && /bin/firefox "$1" >/dev/null 2>&1 &
|
|
|
|
[[ $activity == "Videos" ]] && /bin/firefox "$1" >/dev/null 2>&1 &
|