From b1b3870d4057f7e639e4ab3e0a083d178ac14cc0 Mon Sep 17 00:00:00 2001 From: Anthony Perkins Date: Thu, 13 Jun 2024 14:35:05 +0100 Subject: [PATCH] Set Firefox as the default browser --- roles/home-gui/files/gnome-setup.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/roles/home-gui/files/gnome-setup.sh b/roles/home-gui/files/gnome-setup.sh index 615f0ea..a9551cb 100644 --- a/roles/home-gui/files/gnome-setup.sh +++ b/roles/home-gui/files/gnome-setup.sh @@ -15,18 +15,20 @@ set_favorites_bar () { else gsettings set org.gnome.shell favorite-apps "['org.gnome.Terminal.desktop', 'org.gnome.Console.desktop', 'org.gnome.Nautilus.desktop', 'org.mozilla.firefox.desktop', 'org.keepassxc.KeePassXC.desktop']" fi + # Set Firefox (from Flathub) as the default browser. + xdg-settings set default-web-browser org.mozilla.firefox.desktop } set_favorites_bar set_keyboard_and_language () { gsettings set org.gnome.desktop.input-sources show-all-sources true - gsettings set org.gnome.desktop.input-sources xkb-options "[]" + gsettings set org.gnome.desktop.input-sources xkb-options "['']" gsettings set org.gnome.desktop.wm.keybindings switch-applications "['Tab']" gsettings set org.gnome.desktop.wm.keybindings switch-applications-backward "['Tab']" gsettings set org.gnome.desktop.wm.keybindings switch-windows "['Tab']" gsettings set org.gnome.desktop.wm.keybindings switch-windows-backward "['Tab']" - # https://github.com/acperkins/keyboard + # https://acperkins.com/keyboard gsettings set org.gnome.desktop.input-sources sources "[('xkb', 'acp'), ('xkb', 'us')]" # Set the thumb button on the Logitech MX Master mouse to 'toggle-overview'. Defaults are: