From 9d7d9138721c2c4567f8ff5e0d03198b087f809c Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Sun, 19 Dec 2021 22:08:35 +0800 Subject: Set qutebrowser as default browser --- .env | 2 ++ scripts/init-mime.sh | 2 ++ 2 files changed, 4 insertions(+) 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 -- cgit v1.2.3