This commit is contained in:
2026-03-17 21:37:47 +01:00
parent cd55626328
commit 790b0b3451
3 changed files with 26 additions and 3 deletions

6
flake.lock generated
View File

@@ -49,11 +49,11 @@
]
},
"locked": {
"lastModified": 1770112394,
"narHash": "sha256-H8d0WplmDeuvOM4bsHNt77T6OWiSJMaTP6UG1XyMNxA=",
"lastModified": 1772137435,
"narHash": "sha256-dqkfxxpIiIs4wdWhT4lfQi1lfA0CgIftPiYGvw0tUOk=",
"owner": "Lassulus",
"repo": "wrappers",
"rev": "23625835eb91d925c498780f5a37442ead1ae8e5",
"rev": "4e12f430ae705d9bbb591ca9c51cbccbee050a23",
"type": "github"
},
"original": {

View File

@@ -55,6 +55,10 @@
inherit (inputs) wrappers;
pkgs = final;
};
niphas-kanshi = import packages/kanshi.nix {
inherit (inputs) wrappers;
pkgs = final;
};
niphas-wallpaper =
prev.runCommand "niphas-wallpaper.png"
{
@@ -106,6 +110,7 @@
niphas-bar
niphas-git
niphas-niri
niphas-kanshi
niphas-editor
niphas-wallpaper
niphas-set-wallpaper

18
packages/kanshi.nix Normal file
View File

@@ -0,0 +1,18 @@
{ wrappers, pkgs }:
let
kanshi = wrappers.wrapperModules.kanshi.apply {
inherit pkgs;
configFile.content = ''
profile {
output "eDP-1" enable
}
# laptop above external monitor
profile {
output "HDMI-A-1" enable position 0,0
output "eDP-1" enable position 0,1440
}
'';
};
in
kanshi.wrapper