mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-06-16 01:55:13 -05:00
feat: updated niri
This commit is contained in:
parent
2b91a4d407
commit
ee42e007a7
13 changed files with 562 additions and 488 deletions
39
modules/home/gui/desktop/niri/config/outputs.nix
Executable file
39
modules/home/gui/desktop/niri/config/outputs.nix
Executable file
|
@ -0,0 +1,39 @@
|
|||
{
|
||||
colourHelpers,
|
||||
flake,
|
||||
osConfig,
|
||||
...
|
||||
}:
|
||||
let
|
||||
inherit (flake.config.machines) devices;
|
||||
|
||||
mars = devices.mars.name;
|
||||
deimos = devices.deimos.name;
|
||||
host = osConfig.networking.hostName;
|
||||
|
||||
deviceLogic =
|
||||
d: m:
|
||||
if host == deimos then
|
||||
d
|
||||
else if host == mars then
|
||||
m
|
||||
else
|
||||
null;
|
||||
in
|
||||
{
|
||||
outputs = {
|
||||
"${deviceLogic "eDP-1" "DP-1"}" = {
|
||||
background-color = colourHelpers.makeColour colourHelpers.el.base02;
|
||||
scale = 1.0;
|
||||
mode = {
|
||||
width = deviceLogic 1920 2560;
|
||||
height = 1080;
|
||||
refresh = deviceLogic 59.94 199.92;
|
||||
};
|
||||
position = {
|
||||
x = 0;
|
||||
y = 0;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue