Compare commits
6 commits
d85a987ea5
...
fcfb1a9458
Author | SHA1 | Date | |
---|---|---|---|
fcfb1a9458 | |||
bfa69c6da1 | |||
f15237b2ee | |||
3a0cece677 | |||
66aed06bba | |||
bb606b807c |
11 changed files with 71 additions and 56 deletions
|
@ -39,6 +39,7 @@ in {
|
||||||
mouse = {
|
mouse = {
|
||||||
accel-profile = "adaptive";
|
accel-profile = "adaptive";
|
||||||
accel-speed = -0.7;
|
accel-speed = -0.7;
|
||||||
|
scroll-factor = 1.25;
|
||||||
};
|
};
|
||||||
|
|
||||||
# https://github.com/sodiboo/niri-flake/blob/main/docs.md#programsnirisettingsinputtouchpadaccel-profile
|
# https://github.com/sodiboo/niri-flake/blob/main/docs.md#programsnirisettingsinputtouchpadaccel-profile
|
||||||
|
|
|
@ -70,7 +70,13 @@ in {
|
||||||
{app-id = "^chromium-browser$";}
|
{app-id = "^chromium-browser$";}
|
||||||
{app-id = "^firefox.*$";}
|
{app-id = "^firefox.*$";}
|
||||||
{app-id = "^google-chrome$";}
|
{app-id = "^google-chrome$";}
|
||||||
|
{app-id = "^librewolf$";}
|
||||||
{app-id = "^vivaldi.*$";}
|
{app-id = "^vivaldi.*$";}
|
||||||
|
{app-id = "^zen$";}
|
||||||
|
];
|
||||||
|
|
||||||
|
excludes = [
|
||||||
|
{title = "^Picture.in.[Pp]icture$";}
|
||||||
];
|
];
|
||||||
|
|
||||||
default-column-width.proportion =
|
default-column-width.proportion =
|
||||||
|
@ -78,6 +84,7 @@ in {
|
||||||
then 0.4
|
then 0.4
|
||||||
else 0.8;
|
else 0.8;
|
||||||
|
|
||||||
|
min-width = builtins.floor (config.custom.width * 0.3);
|
||||||
open-on-workspace = "2";
|
open-on-workspace = "2";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -183,6 +190,7 @@ in {
|
||||||
{
|
{
|
||||||
# Terminals
|
# Terminals
|
||||||
matches = [
|
matches = [
|
||||||
|
{app-id = "^com\.mitchellh\.ghostty$";}
|
||||||
{app-id = "^foot$";}
|
{app-id = "^foot$";}
|
||||||
{app-id = "^kitty$";}
|
{app-id = "^kitty$";}
|
||||||
{app-id = "^org\.wezfurlong\.wezterm$";}
|
{app-id = "^org\.wezfurlong\.wezterm$";}
|
||||||
|
@ -215,7 +223,7 @@ in {
|
||||||
### Overrides
|
### Overrides
|
||||||
# TODO: Remove when switching 1Password to Wayland
|
# TODO: Remove when switching 1Password to Wayland
|
||||||
(let
|
(let
|
||||||
height = builtins.floor (config.custom.height / config.custom.scale * 0.4); # 40%
|
height = builtins.floor (config.custom.height * 0.4); # 40%
|
||||||
in {
|
in {
|
||||||
matches = [
|
matches = [
|
||||||
{
|
{
|
||||||
|
|
|
@ -170,7 +170,7 @@ case "$1" in
|
||||||
url="https://nixpk.gs/pr-tracker.html?pr="
|
url="https://nixpk.gs/pr-tracker.html?pr="
|
||||||
query="${1:4}"
|
query="${1:4}"
|
||||||
;;
|
;;
|
||||||
'nri '*)
|
'nii '*)
|
||||||
label="Niri Issues"
|
label="Niri Issues"
|
||||||
icon="com.github.zren.bugzilla"
|
icon="com.github.zren.bugzilla"
|
||||||
url="https://github.com/YaLTeR/niri/issues?q=is%3Aissue+is%3Aopen+"
|
url="https://github.com/YaLTeR/niri/issues?q=is%3Aissue+is%3Aopen+"
|
||||||
|
|
|
@ -234,7 +234,7 @@ in {
|
||||||
|
|
||||||
{
|
{
|
||||||
name = "Niri Issues";
|
name = "Niri Issues";
|
||||||
shortcut = "nri";
|
shortcut = "nii";
|
||||||
url = "https://github.com/YaLTeR/niri/issues?q=is%3Aissue+is%3Aopen+{searchTerms}";
|
url = "https://github.com/YaLTeR/niri/issues?q=is%3Aissue+is%3Aopen+{searchTerms}";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -54,27 +54,31 @@ with lib; {
|
||||||
|
|
||||||
# BUG: Tab groups not yet supported
|
# BUG: Tab groups not yet supported
|
||||||
# https://github.com/rafaelmardojai/firefox-gnome-theme/issues/901
|
# https://github.com/rafaelmardojai/firefox-gnome-theme/issues/901
|
||||||
# Import CSS theme with solarized overrides
|
|
||||||
# https://github.com/rafaelmardojai/firefox-gnome-theme
|
# https://github.com/rafaelmardojai/firefox-gnome-theme
|
||||||
# https://github.com/rafaelmardojai/firefox-gnome-theme/blob/master/theme/colors/dark.css
|
# https://github.com/rafaelmardojai/firefox-gnome-theme/blob/master/theme/colors/dark.css
|
||||||
userContent = mkIf theme ''
|
userChrome = ''
|
||||||
@import "${inputs.firefox-gnome-theme}/userContent.css";
|
${
|
||||||
|
if theme
|
||||||
|
then "@import ${inputs.firefox-gnome-theme}/userChrome.css"
|
||||||
|
else ""
|
||||||
|
}
|
||||||
|
|
||||||
|
${builtins.readFile ./userChrome.css}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
userChrome = mkIf theme ''
|
userContent = ''
|
||||||
@import "${inputs.firefox-gnome-theme}/userChrome.css";
|
${
|
||||||
${builtins.readFile ./userChrome.css}
|
if theme
|
||||||
|
then "@import ${inputs.firefox-gnome-theme}/userContent.css"
|
||||||
|
else ""
|
||||||
|
}
|
||||||
|
|
||||||
|
${builtins.readFile ./userContent.css}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
containersForce = true;
|
containersForce = true;
|
||||||
|
|
||||||
containers = {
|
containers = {
|
||||||
Master = {
|
|
||||||
color = "pink";
|
|
||||||
icon = "circle";
|
|
||||||
id = 0;
|
|
||||||
};
|
|
||||||
|
|
||||||
Edu = {
|
Edu = {
|
||||||
color = "orange";
|
color = "orange";
|
||||||
icon = "fruit";
|
icon = "fruit";
|
||||||
|
@ -198,7 +202,8 @@ with lib; {
|
||||||
"full-screen-api.warning.timeout" = 0;
|
"full-screen-api.warning.timeout" = 0;
|
||||||
"general.autoScroll" = false;
|
"general.autoScroll" = false;
|
||||||
"general.smoothScroll" = true;
|
"general.smoothScroll" = true;
|
||||||
"gfx.webrender.software" = config.custom.programs.looking-glass.igpu; # Reduce load on iGPU
|
"general.smoothScroll.msdPhysics.enabled" = true;
|
||||||
|
"gfx.webrender.software" = false;
|
||||||
"identity.fxaccounts.enabled" = true;
|
"identity.fxaccounts.enabled" = true;
|
||||||
"layers.acceleration.force-enabled" = true;
|
"layers.acceleration.force-enabled" = true;
|
||||||
"layout.css.always_underline_links" = false;
|
"layout.css.always_underline_links" = false;
|
||||||
|
@ -221,7 +226,7 @@ with lib; {
|
||||||
"media.videocontrols.picture-in-picture.video-toggle.enabled" = true;
|
"media.videocontrols.picture-in-picture.video-toggle.enabled" = true;
|
||||||
"media.videocontrols.picture-in-picture.video-toggle.has-used" = true;
|
"media.videocontrols.picture-in-picture.video-toggle.has-used" = true;
|
||||||
"media.videocontrols.picture-in-picture.video-toggle.min-video-secs" = 0; # No minimum duration
|
"media.videocontrols.picture-in-picture.video-toggle.min-video-secs" = 0; # No minimum duration
|
||||||
"media.videocontrols.picture-in-picture.video-toggle.position" = "top";
|
"media.videocontrols.picture-in-picture.video-toggle.position" = "right";
|
||||||
"messaging-system.askForFeedback" = false;
|
"messaging-system.askForFeedback" = false;
|
||||||
"messaging-system.rsexperimentloader.enabled" = false;
|
"messaging-system.rsexperimentloader.enabled" = false;
|
||||||
"middlemouse.paste" = false;
|
"middlemouse.paste" = false;
|
||||||
|
@ -230,7 +235,7 @@ with lib; {
|
||||||
"network.dns.disablePrefetchFromHTTPS" = true;
|
"network.dns.disablePrefetchFromHTTPS" = true;
|
||||||
"network.http.referer.XOriginPolicy" = 0; # Relaxed
|
"network.http.referer.XOriginPolicy" = 0; # Relaxed
|
||||||
"network.predictor.enabled" = false;
|
"network.predictor.enabled" = false;
|
||||||
"pref.privacy.disable_button.view_passwords" = true;
|
"pref.privacy.disable_button.view_passwords" = false;
|
||||||
"privacy.fingerprintingProtection" = false;
|
"privacy.fingerprintingProtection" = false;
|
||||||
"privacy.globalprivacycontrol.enabled" = true;
|
"privacy.globalprivacycontrol.enabled" = true;
|
||||||
"privacy.resistFingerprinting.autoDeclineNoUserInputCanvasPrompts" = false;
|
"privacy.resistFingerprinting.autoDeclineNoUserInputCanvasPrompts" = false;
|
||||||
|
@ -265,20 +270,6 @@ with lib; {
|
||||||
"gnomeTheme.bookmarksToolbarUnderTabs" = true;
|
"gnomeTheme.bookmarksToolbarUnderTabs" = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
bookmarks = [
|
|
||||||
{
|
|
||||||
name = "Nix User Repository";
|
|
||||||
keyword = "nur";
|
|
||||||
url = "https://nur.nix-community.org/";
|
|
||||||
}
|
|
||||||
|
|
||||||
{
|
|
||||||
name = "Nix Ryantm";
|
|
||||||
keyword = "nry";
|
|
||||||
url = "https://ryantm.github.io/nixpkgs/";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
|
|
||||||
# https://searchfox.org/mozilla-central/rev/669329e284f8e8e2bb28090617192ca9b4ef3380/toolkit/components/search/SearchEngine.jsm#1138-1177
|
# https://searchfox.org/mozilla-central/rev/669329e284f8e8e2bb28090617192ca9b4ef3380/toolkit/components/search/SearchEngine.jsm#1138-1177
|
||||||
search = {
|
search = {
|
||||||
force = true;
|
force = true;
|
||||||
|
@ -468,7 +459,7 @@ with lib; {
|
||||||
};
|
};
|
||||||
|
|
||||||
"Niri Issues" = {
|
"Niri Issues" = {
|
||||||
definedAliases = ["nri"];
|
definedAliases = ["nii"];
|
||||||
iconUpdateURL = "https://github.com/favicon.ico";
|
iconUpdateURL = "https://github.com/favicon.ico";
|
||||||
urls = [{template = "https://github.com/YaLTeR/niri/issues?q=is%3Aissue+is%3Aopen+{searchTerms}";}];
|
urls = [{template = "https://github.com/YaLTeR/niri/issues?q=is%3Aissue+is%3Aopen+{searchTerms}";}];
|
||||||
};
|
};
|
|
@ -17,7 +17,7 @@ in {
|
||||||
{
|
{
|
||||||
# https://www.mozilla.org/en-US/firefox/developer
|
# https://www.mozilla.org/en-US/firefox/developer
|
||||||
programs.firefox = mkMerge [
|
programs.firefox = mkMerge [
|
||||||
(import "${inputs.self}/modules/firefox/default.nix" {inherit config inputs lib pkgs;})
|
(import ./.common.nix {inherit config inputs lib pkgs;})
|
||||||
|
|
||||||
{
|
{
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
@ -18,7 +18,7 @@ in {
|
||||||
# https://librewolf.net/
|
# https://librewolf.net/
|
||||||
# https://codeberg.org/librewolf
|
# https://codeberg.org/librewolf
|
||||||
programs.librewolf = mkMerge [
|
programs.librewolf = mkMerge [
|
||||||
(import "${inputs.self}/modules/firefox/default.nix" {inherit config inputs lib pkgs;})
|
(import ./.common.nix {inherit config inputs lib pkgs;})
|
||||||
|
|
||||||
{
|
{
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
9
options/custom/programs/firefox/userContent.css
Normal file
9
options/custom/programs/firefox/userContent.css
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
/***
|
||||||
|
https://github.com/rafaelmardojai/firefox-gnome-theme
|
||||||
|
***/
|
||||||
|
|
||||||
|
@-moz-document url("about:newtab"), url("about:home"), url("about:blank") {
|
||||||
|
body {
|
||||||
|
background-color: #073642 !important;
|
||||||
|
}
|
||||||
|
}
|
|
@ -18,7 +18,7 @@ in {
|
||||||
# https://zen-browser.app/
|
# https://zen-browser.app/
|
||||||
# https://github.com/youwen5/zen-browser-flake
|
# https://github.com/youwen5/zen-browser-flake
|
||||||
programs.zen-browser = mkMerge [
|
programs.zen-browser = mkMerge [
|
||||||
(import "${inputs.self}/modules/firefox/default.nix" {
|
(import ./.common.nix {
|
||||||
inherit config inputs lib pkgs;
|
inherit config inputs lib pkgs;
|
||||||
|
|
||||||
# TODO: Revisit Zen themes
|
# TODO: Revisit Zen themes
|
||||||
|
@ -28,24 +28,30 @@ in {
|
||||||
{
|
{
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
profiles.default.settings = {
|
profiles.default = {
|
||||||
"zen.pinned-tab-manager.close-shortcut-behavior" = "reset-unload-switch";
|
settings = {
|
||||||
"zen.pinned-tab-manager.restore-pinned-tabs-to-pinned-url" = true;
|
"zen.pinned-tab-manager.close-shortcut-behavior" = "reset-unload-switch";
|
||||||
"zen.tab-unloader.timeout-minutes" = 60;
|
"zen.pinned-tab-manager.restore-pinned-tabs-to-pinned-url" = true;
|
||||||
"zen.theme.accent-color" = "#d33682";
|
"zen.splitView.change-on-hover" = true;
|
||||||
"zen.theme.color-prefs.colorful" = false;
|
"zen.tab-unloader.timeout-minutes" = 60;
|
||||||
"zen.theme.color-prefs.use-workspace-colors" = true;
|
"zen.theme.accent-color" = "#d33682";
|
||||||
"zen.theme.pill-button" = true;
|
"zen.theme.color-prefs.colorful" = false;
|
||||||
"zen.urlbar.replace-newtab" = false;
|
"zen.theme.color-prefs.use-workspace-colors" = true;
|
||||||
"zen.view.compact.hide-toolbar" = true;
|
"zen.theme.pill-button" = true;
|
||||||
"zen.view.sidebar-expanded" = false;
|
"zen.urlbar.replace-newtab" = false;
|
||||||
"zen.view.use-single-toolbar" = false;
|
"zen.view.compact.hide-toolbar" = true;
|
||||||
"zen.welcome-screen.seen" = true;
|
"zen.view.show-newtab-button-top" = false;
|
||||||
"zen.workspaces.container-specific-essentials-enabled" = true;
|
"zen.view.sidebar-expanded" = false;
|
||||||
"zen.workspaces.force-container-workspace" = true;
|
"zen.view.use-single-toolbar" = false;
|
||||||
"zen.workspaces.hide-deactivated-workspaces" = true;
|
"zen.welcome-screen.enabled" = false;
|
||||||
"zen.workspaces.individual-pinned-tabs" = false;
|
"zen.welcome-screen.seen" = true;
|
||||||
"zen.workspaces.show-icon-strip" = false;
|
"zen.workspaces.container-specific-essentials-enabled" = true;
|
||||||
|
"zen.workspaces.force-container-workspace" = true;
|
||||||
|
"zen.workspaces.hide-deactivated-workspaces" = true;
|
||||||
|
"zen.workspaces.individual-pinned-tabs" = false;
|
||||||
|
"zen.workspaces.show-icon-strip" = true;
|
||||||
|
"zen.workspaces.show-workspace-indicator" = false;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{lib, ...}:
|
{lib, ...}:
|
||||||
with lib; {
|
with lib; {
|
||||||
# Import all *.nix options from custom directory
|
# Import all *.nix options from custom directory, excluding .*.nix
|
||||||
imports = filter (f: strings.hasSuffix ".nix" f) (filesystem.listFilesRecursive ./custom);
|
imports = filter (f: hasSuffix ".nix" f && !hasPrefix "." (builtins.baseNameOf f)) (filesystem.listFilesRecursive ./custom);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue