feat: add script to choose the best browser per KDE Activity

This commit is contained in:
Bruno F. Fontes 2021-07-17 19:32:54 -03:00
parent 00a0ebe0f8
commit 14901142b6
Signed by: brunofontes
GPG Key ID: EE3447CE80048495

7
browser.sh Executable file
View File

@ -0,0 +1,7 @@
#!/bin/sh
activity=`kactivities-cli --current-activity | cut -d" " -f3`
[[ $activity == "OXO" ]] && /bin/brave "$1"
[[ $activity == "Development" ]] && /home/bruno/Apps/firefox/firefox-bin "$1"
[[ $activity == "Main" ]] && /bin/firefox "$1"
[[ $activity == "Videos" ]] && /bin/firefox "$1"