From 297c7aee5d7fbec6575688acd4b73329ef5516c4 Mon Sep 17 00:00:00 2001 From: JakeGinesin Date: Tue, 29 Apr 2025 02:34:48 -0400 Subject: [PATCH] 29 current 2025-04-29 02:34:34 25.05.20250424.f771eb4 6.12.24 * --- home/programs/firefox/default.nix | 13 +++++++++++-- home/programs/polybar/default.nix | 2 +- hosts/thonkpad/configuration.nix | 3 --- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/home/programs/firefox/default.nix b/home/programs/firefox/default.nix index 29f0718..8c87a21 100644 --- a/home/programs/firefox/default.nix +++ b/home/programs/firefox/default.nix @@ -1,8 +1,17 @@ { pkgs, lib, + osConfig, ... -}: { +}: let + # osConfig carries config from configuration.nix + scale = + if osConfig.res == "1366x768" + then 0.80 + else if osConfig.res == "2560x1440" + then 1.25 + else 1.00; +in { home.activation.copyStartpage = lib.mkAfter '' mkdir -p ~/.firefox-startpage cp -r ${./startpage}/* ~/.firefox-startpage/ @@ -121,7 +130,7 @@ "mousewheel.with_control.action" = "1"; # should change this based on your resolution - "layout.css.devPixelsPerPx" = 1.25; + "layout.css.devPixelsPerPx" = scale; "extensions.activeThemeID" = "firefox-compact-dark@mozilla.org"; "full-screen-api.ignore-widgets" = true; diff --git a/home/programs/polybar/default.nix b/home/programs/polybar/default.nix index 414c4f3..5440947 100644 --- a/home/programs/polybar/default.nix +++ b/home/programs/polybar/default.nix @@ -44,7 +44,7 @@ font-0 = "NotoSans-Regular:size=9;2.5" font-1 = "JetBrainsMono Nerd Font:style=Regular:size=9;2.5" font-2 = "Noto Sans Symbols:size=9;1" - offset-x = 4 + offset-x = 2 offset-y = 2 ''; diff --git a/hosts/thonkpad/configuration.nix b/hosts/thonkpad/configuration.nix index b7380c7..cabcd77 100644 --- a/hosts/thonkpad/configuration.nix +++ b/hosts/thonkpad/configuration.nix @@ -38,9 +38,6 @@ in { inherit config pkgs lib; }) ]; - # users.synchronous = import ../../home/home.nix { - # inherit config lib pkgs; - # }; }; res = "1366x768";