M modules/hosts/ws/arwen/default.nix => modules/hosts/ws/arwen/default.nix +34 -0
@@ 57,6 57,40 @@ in {
{
home.stateVersion = config.system.stateVersion;
home.file.".config/niri/config.kdl".source = ./niri.kdl;
+
+ services.kanshi = {
+ enable = true;
+ systemdTarget = "graphical-session.target";
+ settings = let
+ internal = {
+ criteria = "eDP-1";
+ mode = "1920x1080@60.008";
+ scale = 1.0;
+ };
+ in [
+ {
+ profile.name = "standalone";
+ profile.outputs = [
+ internal
+ ];
+ }
+ {
+ profile.name = "deskgaming";
+ profile.outputs = [
+ (
+ internal
+ // {
+ status = "disable";
+ }
+ )
+ {
+ criteria = "PNP(BNQ) BenQ EL2870U H9J03659SL0";
+ mode = "1920x1080@60.000";
+ }
+ ];
+ }
+ ];
+ };
}
# TODO: see alice
M modules/hosts/ws/arwen/niri.kdl => modules/hosts/ws/arwen/niri.kdl +0 -5
@@ 10,11 10,6 @@ input {
focus-follows-mouse
}
-output "eDP-1" {
- mode "1920x1080@60.008"
- scale 1
-}
-
layout {
gaps 8