diff --git a/modules/user/browser/brave.nix b/modules/user/browser/brave.nix index 6af4429..e83c6d2 100644 --- a/modules/user/browser/brave.nix +++ b/modules/user/browser/brave.nix @@ -1,14 +1,8 @@ -{ - config, - lib, - pkgs, - ... -}: +{ config, lib, pkgs, ... }: let cfg = config.userSettings.brave; -in -{ +in { options = { userSettings.brave = { enable = lib.mkEnableOption "Enable brave browser"; @@ -21,14 +15,14 @@ in programs.brave.extensions = [ { id = "cjpalhdlnbpafiamejdnhcphjbkeiagm"; } # ublock { id = "oboonakemofpalcgghocfoadofidjkkk"; } # keepassxc - { id = "kgcjekpmcjjogibpjebkhaanilehneje"; } # karakeep + { id = "pnidmkljnhbjfffciajlcpeldoljnidn"; } # linkwarden ]; programs.brave.commandLineArgs = [ "--password-store=gnome-libsecret" "--enable-accelerated-video-decode" "--disable-features=WaylandWpColorManagerV1" ]; - xdg.mimeApps.defaultApplications = lib.mkIf (config.userSettings.browser == "brave") { + xdg.mimeApps.defaultApplications = lib.mkIf (config.userSettings.browser == "brave" ) { "text/html" = "brave-browser.desktop"; "x-scheme-handler/http" = "brave-browser.desktop"; "x-scheme-handler/https" = "brave-browser.desktop"; diff --git a/modules/user/hyprland/default.nix b/modules/user/hyprland/default.nix index 9335005..d1bef76 100644 --- a/modules/user/hyprland/default.nix +++ b/modules/user/hyprland/default.nix @@ -244,6 +244,8 @@ in "SUPERCTRL,S,exec,container-open" "SUPERCTRL,P,pin" "SUPER,code:47,exec,fuzzel" + "SUPER,X,exec,fnottctl dismiss" + "SUPERSHIFT,X,exec,fnottctl dismiss all" "SUPER,Q,killactive" "SUPERSHIFT,Q,exit" "SUPER,T,togglefloating" @@ -329,8 +331,6 @@ in ",code:237,exec,brightnessctl --device='asus::kbd_backlight' set 1-" ",code:238,exec,brightnessctl --device='asus::kbd_backlight' set +1" ",code:255,exec,airplane-mode" - "SUPER,X,exec,fnottctl dismiss" - "SUPERSHIFT,X,exec,fnottctl dismiss all" ]; windowrulev2 = [ @@ -413,23 +413,17 @@ in "blur,ashell-main-layer" "blur,launcher # fuzzel" "blur,~nwggrid" - "blur,notifications" "blur,gtk-layer-shell" "xray 1,waybar" "xray 1,ashell-main-layer" "xray 1,~nwggrid" "xray 1,gtk-layer-shell" - "xray 1,notifications" "ignorezero, gtk-layer-shell" "ignorezero, ashell-main-layer" - "ignorezero,notifications" "animation fade,~nwggrid" "animation popin 80%, ashell-main-layer" - "animation popin 80%, notifications" "order 66,ashell-main-layer" - "order 67,notifications" "abovelock 2,ashell-main-layer" - "abovelock 2,notifications" ]; blurls = lib.optionals (!performance) [ @@ -437,8 +431,6 @@ in "launcher # fuzzel" "~nwggrid" "gtk-layer-shell" - "ashell-main-layer" - "notifications" ]; xwayland = { @@ -826,10 +818,10 @@ in main = { anchor = "bottom-right"; stacking-order = "top-down"; - min-width = 520; - title-font = font + ":size=18"; - summary-font = font + ":size=15"; - body-font = font + ":size=14"; + min-width = 400; + title-font = font + ":size=14"; + summary-font = font + ":size=12"; + body-font = font + ":size=11"; border-size = 0; }; low = { @@ -838,8 +830,8 @@ in summary-color = config.lib.stylix.colors.base03 + "ff"; body-color = config.lib.stylix.colors.base03 + "ff"; idle-timeout = 150; - max-timeout = 4; - default-timeout = 2; + max-timeout = 30; + default-timeout = 8; }; normal = { background = config.lib.stylix.colors.base00 + "e6"; @@ -847,8 +839,8 @@ in summary-color = config.lib.stylix.colors.base07 + "ff"; body-color = config.lib.stylix.colors.base07 + "ff"; idle-timeout = 150; - max-timeout = 5; - default-timeout = 3; + max-timeout = 30; + default-timeout = 8; }; critical = { background = config.lib.stylix.colors.base00 + "e6";