mirror of
https://github.com/librephoenix/nixos-config
synced 2026-01-15 13:14:00 +05:30
Compare commits
2 commits
99438cce34
...
0c3b676ab9
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0c3b676ab9 | ||
|
|
b07e838d40 |
2 changed files with 28 additions and 14 deletions
|
|
@ -1,8 +1,14 @@
|
||||||
{ config, lib, pkgs, ... }:
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.userSettings.brave;
|
cfg = config.userSettings.brave;
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
options = {
|
options = {
|
||||||
userSettings.brave = {
|
userSettings.brave = {
|
||||||
enable = lib.mkEnableOption "Enable brave browser";
|
enable = lib.mkEnableOption "Enable brave browser";
|
||||||
|
|
@ -15,14 +21,14 @@ in {
|
||||||
programs.brave.extensions = [
|
programs.brave.extensions = [
|
||||||
{ id = "cjpalhdlnbpafiamejdnhcphjbkeiagm"; } # ublock
|
{ id = "cjpalhdlnbpafiamejdnhcphjbkeiagm"; } # ublock
|
||||||
{ id = "oboonakemofpalcgghocfoadofidjkkk"; } # keepassxc
|
{ id = "oboonakemofpalcgghocfoadofidjkkk"; } # keepassxc
|
||||||
{ id = "pnidmkljnhbjfffciajlcpeldoljnidn"; } # linkwarden
|
{ id = "kgcjekpmcjjogibpjebkhaanilehneje"; } # karakeep
|
||||||
];
|
];
|
||||||
programs.brave.commandLineArgs = [
|
programs.brave.commandLineArgs = [
|
||||||
"--password-store=gnome-libsecret"
|
"--password-store=gnome-libsecret"
|
||||||
"--enable-accelerated-video-decode"
|
"--enable-accelerated-video-decode"
|
||||||
"--disable-features=WaylandWpColorManagerV1"
|
"--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";
|
"text/html" = "brave-browser.desktop";
|
||||||
"x-scheme-handler/http" = "brave-browser.desktop";
|
"x-scheme-handler/http" = "brave-browser.desktop";
|
||||||
"x-scheme-handler/https" = "brave-browser.desktop";
|
"x-scheme-handler/https" = "brave-browser.desktop";
|
||||||
|
|
|
||||||
|
|
@ -244,8 +244,6 @@ in
|
||||||
"SUPERCTRL,S,exec,container-open"
|
"SUPERCTRL,S,exec,container-open"
|
||||||
"SUPERCTRL,P,pin"
|
"SUPERCTRL,P,pin"
|
||||||
"SUPER,code:47,exec,fuzzel"
|
"SUPER,code:47,exec,fuzzel"
|
||||||
"SUPER,X,exec,fnottctl dismiss"
|
|
||||||
"SUPERSHIFT,X,exec,fnottctl dismiss all"
|
|
||||||
"SUPER,Q,killactive"
|
"SUPER,Q,killactive"
|
||||||
"SUPERSHIFT,Q,exit"
|
"SUPERSHIFT,Q,exit"
|
||||||
"SUPER,T,togglefloating"
|
"SUPER,T,togglefloating"
|
||||||
|
|
@ -331,6 +329,8 @@ in
|
||||||
",code:237,exec,brightnessctl --device='asus::kbd_backlight' set 1-"
|
",code:237,exec,brightnessctl --device='asus::kbd_backlight' set 1-"
|
||||||
",code:238,exec,brightnessctl --device='asus::kbd_backlight' set +1"
|
",code:238,exec,brightnessctl --device='asus::kbd_backlight' set +1"
|
||||||
",code:255,exec,airplane-mode"
|
",code:255,exec,airplane-mode"
|
||||||
|
"SUPER,X,exec,fnottctl dismiss"
|
||||||
|
"SUPERSHIFT,X,exec,fnottctl dismiss all"
|
||||||
];
|
];
|
||||||
|
|
||||||
windowrulev2 = [
|
windowrulev2 = [
|
||||||
|
|
@ -413,17 +413,23 @@ in
|
||||||
"blur,ashell-main-layer"
|
"blur,ashell-main-layer"
|
||||||
"blur,launcher # fuzzel"
|
"blur,launcher # fuzzel"
|
||||||
"blur,~nwggrid"
|
"blur,~nwggrid"
|
||||||
|
"blur,notifications"
|
||||||
"blur,gtk-layer-shell"
|
"blur,gtk-layer-shell"
|
||||||
"xray 1,waybar"
|
"xray 1,waybar"
|
||||||
"xray 1,ashell-main-layer"
|
"xray 1,ashell-main-layer"
|
||||||
"xray 1,~nwggrid"
|
"xray 1,~nwggrid"
|
||||||
"xray 1,gtk-layer-shell"
|
"xray 1,gtk-layer-shell"
|
||||||
|
"xray 1,notifications"
|
||||||
"ignorezero, gtk-layer-shell"
|
"ignorezero, gtk-layer-shell"
|
||||||
"ignorezero, ashell-main-layer"
|
"ignorezero, ashell-main-layer"
|
||||||
|
"ignorezero,notifications"
|
||||||
"animation fade,~nwggrid"
|
"animation fade,~nwggrid"
|
||||||
"animation popin 80%, ashell-main-layer"
|
"animation popin 80%, ashell-main-layer"
|
||||||
|
"animation popin 80%, notifications"
|
||||||
"order 66,ashell-main-layer"
|
"order 66,ashell-main-layer"
|
||||||
|
"order 67,notifications"
|
||||||
"abovelock 2,ashell-main-layer"
|
"abovelock 2,ashell-main-layer"
|
||||||
|
"abovelock 2,notifications"
|
||||||
];
|
];
|
||||||
|
|
||||||
blurls = lib.optionals (!performance) [
|
blurls = lib.optionals (!performance) [
|
||||||
|
|
@ -431,6 +437,8 @@ in
|
||||||
"launcher # fuzzel"
|
"launcher # fuzzel"
|
||||||
"~nwggrid"
|
"~nwggrid"
|
||||||
"gtk-layer-shell"
|
"gtk-layer-shell"
|
||||||
|
"ashell-main-layer"
|
||||||
|
"notifications"
|
||||||
];
|
];
|
||||||
|
|
||||||
xwayland = {
|
xwayland = {
|
||||||
|
|
@ -818,10 +826,10 @@ in
|
||||||
main = {
|
main = {
|
||||||
anchor = "bottom-right";
|
anchor = "bottom-right";
|
||||||
stacking-order = "top-down";
|
stacking-order = "top-down";
|
||||||
min-width = 400;
|
min-width = 520;
|
||||||
title-font = font + ":size=14";
|
title-font = font + ":size=18";
|
||||||
summary-font = font + ":size=12";
|
summary-font = font + ":size=15";
|
||||||
body-font = font + ":size=11";
|
body-font = font + ":size=14";
|
||||||
border-size = 0;
|
border-size = 0;
|
||||||
};
|
};
|
||||||
low = {
|
low = {
|
||||||
|
|
@ -830,8 +838,8 @@ in
|
||||||
summary-color = config.lib.stylix.colors.base03 + "ff";
|
summary-color = config.lib.stylix.colors.base03 + "ff";
|
||||||
body-color = config.lib.stylix.colors.base03 + "ff";
|
body-color = config.lib.stylix.colors.base03 + "ff";
|
||||||
idle-timeout = 150;
|
idle-timeout = 150;
|
||||||
max-timeout = 30;
|
max-timeout = 4;
|
||||||
default-timeout = 8;
|
default-timeout = 2;
|
||||||
};
|
};
|
||||||
normal = {
|
normal = {
|
||||||
background = config.lib.stylix.colors.base00 + "e6";
|
background = config.lib.stylix.colors.base00 + "e6";
|
||||||
|
|
@ -839,8 +847,8 @@ in
|
||||||
summary-color = config.lib.stylix.colors.base07 + "ff";
|
summary-color = config.lib.stylix.colors.base07 + "ff";
|
||||||
body-color = config.lib.stylix.colors.base07 + "ff";
|
body-color = config.lib.stylix.colors.base07 + "ff";
|
||||||
idle-timeout = 150;
|
idle-timeout = 150;
|
||||||
max-timeout = 30;
|
max-timeout = 5;
|
||||||
default-timeout = 8;
|
default-timeout = 3;
|
||||||
};
|
};
|
||||||
critical = {
|
critical = {
|
||||||
background = config.lib.stylix.colors.base00 + "e6";
|
background = config.lib.stylix.colors.base00 + "e6";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue