Commit 6d93462

HPCesia <me@hpcesia.com>
2026-06-24 18:21:12
Add kanshi for screen scale adjust
1 parent e04ef4b
Changed files (1)
modules
hosts
modules/hosts/kevin/hardware.nix
@@ -20,5 +20,59 @@
         };
       };
     };
+
+    homeManager = {
+      services.kanshi = {
+        enable = true;
+        settings = [
+          {
+            output = {
+              criteria = "AU Optronics 0xF1A7 Unknown";
+              mode = "3200x2000@165.002";
+              position = "0,0";
+              scale = 2.0;
+              alias = "INTERNAL";
+            };
+          }
+          {
+            output = {
+              criteria = "Dell Inc. BoltSnake 8R33926O00QS";
+              mode = "2160x1440@60.002";
+              position = "0,0";
+              scale = 1.5;
+              alias = "PORTABLE";
+            };
+          }
+          {
+            profile = {
+              name = "single";
+              outputs = [
+                {
+                  criteria = "$INTERNAL";
+                  scale = 2.0;
+                }
+              ];
+            };
+          }
+          {
+            profile = {
+              name = "home";
+              outputs = [
+                {
+                  criteria = "$INTERNAL";
+                  scale = 2.0;
+                }
+                {
+                  criteria = "$PORTABLE";
+                  transform = "270";
+                  scale = 2.0;
+                  position = "1600,0";
+                }
+              ];
+            };
+          }
+        ];
+      };
+    };
   };
 }