commit 74d3b2cb23e7e2aab5dd064876cf63aafbaaba01 (tree)
parent 9f32c033a50287b586ee1355c83ece7432ddc4f4
Author: Motiejus Jakštys <motiejus@jakstys.lt>
Date: Sun, 17 Sep 2023 07:06:19 +0300
some autorandr
Diffstat:
3 files changed, 31 insertions(+), 5 deletions(-)
diff --git a/hosts/fwminex/configuration.nix b/hosts/fwminex/configuration.nix
@@ -3,7 +3,9 @@
pkgs,
myData,
...
-}: {
+}: let
+ randr = import ./randr.nix;
+in {
zfs-root = {
boot = {
enable = true;
@@ -101,6 +103,29 @@
};
};
+ home-manager.users.motiejus = {pkgs, ...}: {
+ programs.autorandr.profiles = {
+ dualhome = {
+ fingerprint = {inherit (randr) DP-3 DP-4;};
+ config = {
+ eDP-1.enable = false;
+ DP-4 = {
+ enable = true;
+ mode = "2560x1440";
+ pos = "2560x0";
+ primary = true;
+ };
+ DP-3 = {
+ enable = true;
+ mode = "2560x1440";
+ position = "0x0";
+ crtc = 2;
+ };
+ };
+ };
+ };
+ };
+
environment.systemPackages = with pkgs; [
iw
texlive.combined.scheme-medium
diff --git a/hosts/fwminex/randr.nix b/hosts/fwminex/randr.nix
@@ -0,0 +1,4 @@
+{
+ DP-3 = "00ffffffffffff0010ac8b4157343231151d0103803c2278eab6e5a9534ca3250a5054a54b00714f8180a940d1c00101010101010101565e00a0a0a029503020350055502100001a000000ff004343315a4d53320a2020202020000000fc0044454c4c20533237313944430a000000fd00304b1e7820000a20202020202001a3020327f149101f0413121103020123097f078301000067030c0010000040681a00000101304be6a073006aa0a029500820350055502100001a023a801871382d40582c450055502100001e7e3900a080381f4030203a0055502100001a011d007251d01e206e28550055502100001e00000000000000000000000000000000aa";
+ DP-4 = "00ffffffffffff0010ac31424c38334114200104b53c22783eee95a3544c99260f5054a54b00714f8180a9c0a940d1c0010101010101565e00a0a0a029503020350055502100001a000000ff004a4450444448330a2020202020000000fc0044454c4c20553237323244450a000000fd00314c1e5a19010a2020202020200146020319f14c90040302011112131f20212223097f0783010000023a801871382d40582c450055502100001e7e3900a080381f4030203a0055502100001a011d007251d01e206e28550055502100001ebf1600a08038134030203a0055502100001a00000000000000000000000000000000000000000000000000000000000006";
+}
diff --git a/modules/profiles/desktop/default.nix b/modules/profiles/desktop/default.nix
@@ -115,16 +115,13 @@
enableSshSupport = true;
};
- programs.autorandr = {
- enable = true;
- };
+ programs.autorandr.enable = true;
programs.firefox = {
enable = true;
profiles = {
xdefault = {
isDefault = true;
- #search.default = "DuckDuckGo";
settings = {
"browser.contentblocking.category" = "strict";
"layout.css.prefers-color-scheme.content-override" = 0;