aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2021-12-19 22:08:35 +0800
committerGuangxiong Lin <[email protected]>2021-12-19 22:08:35 +0800
commit9d7d9138721c2c4567f8ff5e0d03198b087f809c (patch)
tree7b71a84fdcc9f57afbb3000390f4f209a848c59b
parent61e8bd0e3ae8604ee904d3661e42f26dab6c37bd (diff)
downloaddotfiles-9d7d9138721c2c4567f8ff5e0d03198b087f809c.tar.gz
dotfiles-9d7d9138721c2c4567f8ff5e0d03198b087f809c.tar.bz2
dotfiles-9d7d9138721c2c4567f8ff5e0d03198b087f809c.zip
Set qutebrowser as default browser
-rw-r--r--.env2
-rwxr-xr-xscripts/init-mime.sh2
2 files changed, 4 insertions, 0 deletions
diff --git a/.env b/.env
index f91f835..f079253 100644
--- a/.env
+++ b/.env
@@ -6,6 +6,8 @@ if [[ $TERM =~ 'st' ]]; then
fi
export TERMINAL=$TERMINAL
+[ -f /usr/bin/qutebrowser ] && export BROWSER='qutebrowser'
+
[ -f /usr/share/z/z.sh -o -f /usr/local/share/z/z.sh ] && export _Z_CMD='j'
export FZF_DEFAULT_COMMAND='find . -type f'
diff --git a/scripts/init-mime.sh b/scripts/init-mime.sh
index c58c46f..aec9446 100755
--- a/scripts/init-mime.sh
+++ b/scripts/init-mime.sh
@@ -11,3 +11,5 @@ set_xdg_mime () {
}
set_xdg_mime org.pwmt.zathura.desktop application/pdf
+set_xdg_mime org.qutebrowser.qutebrowser.desktop x-scheme-handler/http
+set_xdg_mime org.qutebrowser.qutebrowser.desktop x-scheme-handler/https