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
|
|
|
|
2022-01-22 22:14:01 +00:00
|
|
|
if [[ $1 =~ .*youtube\.com.* ]]; then
|
2022-10-07 11:40:50 +00:00
|
|
|
mpv "$*" >/dev/null 2>&1 &
|
|
|
|
exit
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [[ $1 =~ .*youtu\.be.* ]]; then
|
|
|
|
mpv "$*" >/dev/null 2>&1 &
|
2022-01-22 22:14:01 +00:00
|
|
|
exit
|
|
|
|
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 &
|
|
|
|
[[ $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 &
|