From 14901142b6a90e42337e87867274f2639513a5d0 Mon Sep 17 00:00:00 2001 From: Bruno Fontes Date: Sat, 17 Jul 2021 19:32:54 -0300 Subject: [PATCH] feat: add script to choose the best browser per KDE Activity --- browser.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 browser.sh diff --git a/browser.sh b/browser.sh new file mode 100755 index 0000000..5207ea6 --- /dev/null +++ b/browser.sh @@ -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"