From cab130ad06dde1501391949dc8d02799c1ffafce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christopher=20M=C3=BChl?= Date: Sat, 9 Aug 2025 01:14:14 +0200 Subject: [PATCH] Switch to vivaldi browser --- homes/x86_64-linux/christopher@cobalt/config/wayland.nix | 3 +++ homes/x86_64-linux/christopher@cobalt/misc/browser.nix | 1 + modules/home/common/terminal/default.nix | 3 ++- packages/scripts/open-url/open-url | 6 ++++-- packages/scripts/tofi-hg/tofi-hg | 3 ++- 5 files changed, 12 insertions(+), 4 deletions(-) diff --git a/homes/x86_64-linux/christopher@cobalt/config/wayland.nix b/homes/x86_64-linux/christopher@cobalt/config/wayland.nix index c1a9a63..f97b0b0 100644 --- a/homes/x86_64-linux/christopher@cobalt/config/wayland.nix +++ b/homes/x86_64-linux/christopher@cobalt/config/wayland.nix @@ -169,6 +169,9 @@ in { windowrule = float, title:DevTools + # Should fix broken blur in Vivaldi + windowrule=noblur,class:^()$,title:^()$ + # See https://wiki.hyprland.org/Configuring/Keywords/ for more $mainMod = SUPER diff --git a/homes/x86_64-linux/christopher@cobalt/misc/browser.nix b/homes/x86_64-linux/christopher@cobalt/misc/browser.nix index cd7ca5e..da0b560 100644 --- a/homes/x86_64-linux/christopher@cobalt/misc/browser.nix +++ b/homes/x86_64-linux/christopher@cobalt/misc/browser.nix @@ -1,6 +1,7 @@ {pkgs, ...}: { home.packages = with pkgs; [ firefox + vivaldi ]; xdg.mimeApps = { diff --git a/modules/home/common/terminal/default.nix b/modules/home/common/terminal/default.nix index d116705..ba8579a 100644 --- a/modules/home/common/terminal/default.nix +++ b/modules/home/common/terminal/default.nix @@ -17,7 +17,8 @@ in { LESSKEY = "${conf}/less/lesskey"; DIRENV_LOG_FORMAT = ""; - BROWSER = "firefox"; + # BROWSER = "firefox"; + BROWSER = "vivaldi"; TERMINAL = "kitty"; EDITOR = "hx"; TERM = "xterm-color"; diff --git a/packages/scripts/open-url/open-url b/packages/scripts/open-url/open-url index a36945e..d756caf 100755 --- a/packages/scripts/open-url/open-url +++ b/packages/scripts/open-url/open-url @@ -14,8 +14,10 @@ done if [[ $1 == "https://github.com/hausgold"* ]]; then # Also use the `Work` profile for hausgold Github links - firefox -P 'Work' "$@" + # firefox -P 'Work' "$@" + nohup vivaldi --profile-directory="Work" "$@" & else # Otherwise just use the default profile of Firefox directly - firefox "$@" + # firefox "$@" + nohup vivaldi --profile-directory="Default" "$@" & fi diff --git a/packages/scripts/tofi-hg/tofi-hg b/packages/scripts/tofi-hg/tofi-hg index b014275..d6aa338 100755 --- a/packages/scripts/tofi-hg/tofi-hg +++ b/packages/scripts/tofi-hg/tofi-hg @@ -6,5 +6,6 @@ BASE_URI="https://github.com/hausgold/" REPO=$(< "$HOME/.gh/hausgold-repos" tofi) if [[ -n $REPO ]]; then - firefox -P 'Work' "$BASE_URI$REPO" + # firefox -P 'Work' "$BASE_URI$REPO" + nohup vivaldi --profile-directory="Work" "$BASE_URI$REPO" & fi