sway: Update monitor configuration
For some reason, the ID of my monitor changed. Also, the home-manager module for kanshi now prefers to use the settings attribute.
This commit is contained in:
parent
2755225791
commit
29f2cca213
|
@ -1,4 +1,4 @@
|
||||||
# SPDX-FileCopyrightText: 2020-2023 Simon Bruder <simon@sbruder.de>
|
# SPDX-FileCopyrightText: 2020-2024 Simon Bruder <simon@sbruder.de>
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: AGPL-3.0-or-later
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
||||||
|
|
||||||
|
@ -64,7 +64,7 @@ in
|
||||||
output = {
|
output = {
|
||||||
"*".bg = "${wallpaper} fill";
|
"*".bg = "${wallpaper} fill";
|
||||||
} // (lib.optionalAttrs clamshellHack {
|
} // (lib.optionalAttrs clamshellHack {
|
||||||
"Acer Technologies Acer B277K 0x0000F36C" = {
|
"Acer Technologies Acer B277K 0x1261936C" = {
|
||||||
position = "1920,0";
|
position = "1920,0";
|
||||||
scale = "2";
|
scale = "2";
|
||||||
mode = "3840x2160";
|
mode = "3840x2160";
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# SPDX-FileCopyrightText: 2021-2022 Simon Bruder <simon@sbruder.de>
|
# SPDX-FileCopyrightText: 2021-2024 Simon Bruder <simon@sbruder.de>
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: AGPL-3.0-or-later
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
||||||
|
|
||||||
|
@ -7,24 +7,27 @@ let
|
||||||
getMachineConfig = machine:
|
getMachineConfig = machine:
|
||||||
if lib.hasAttr machine machineConfigs
|
if lib.hasAttr machine machineConfigs
|
||||||
then lib.getAttr machine machineConfigs
|
then lib.getAttr machine machineConfigs
|
||||||
else { };
|
else [ ];
|
||||||
|
|
||||||
machineConfigs = {
|
machineConfigs = {
|
||||||
# mayushii is handled separately in sway’s main configuration.
|
# mayushii is handled separately in sway’s main configuration.
|
||||||
# See it for more details.
|
# See it for more details.
|
||||||
# mayushii = { };
|
# mayushii = [ ];
|
||||||
hitagi = {
|
hitagi = [
|
||||||
home.outputs = lib.singleton {
|
{
|
||||||
criteria = "Acer Technologies Acer B277K 0x0000F36C";
|
profile.name = "home";
|
||||||
|
profile.outputs = lib.singleton {
|
||||||
|
criteria = "Acer Technologies Acer B277K 0x1261936C";
|
||||||
mode = "3840x2160";
|
mode = "3840x2160";
|
||||||
scale = 2.0;
|
scale = 2.0;
|
||||||
};
|
};
|
||||||
};
|
}
|
||||||
|
];
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
services.kanshi = {
|
services.kanshi = {
|
||||||
enable = true;
|
enable = true;
|
||||||
profiles = getMachineConfig (nixosConfig.networking.hostName);
|
settings = getMachineConfig (nixosConfig.networking.hostName);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue