[user/malte] Fix sway/kanshi after monitor name change

This commit is contained in:
Malte Tammena 2022-06-19 09:58:56 +02:00
parent 58fafea618
commit f1e1ad6957
2 changed files with 5 additions and 9 deletions

View file

@ -6,10 +6,6 @@
notify = profile: [
"${pkgs.libnotify}/bin/notify-send -t 10000 -a 'Kanshi' '${profile}' 'Profile activated'"
];
move = workspace: output: [
"${pkgs.sway}/bin/swaymsg workspace ${builtins.toString workspace}"
"${pkgs.sway}/bin/swaymsg move workspace to output '${output}'"
];
in {
services.kanshi = {
enable = true;
@ -21,7 +17,7 @@ in {
docked = {
outputs = [
{
criteria = "eDP-1";
criteria = "California Institute of Technology 0x1500 Unknown";
mode = "3840x2160@60Hz";
position = "0,1380";
scale = 2.0;
@ -34,7 +30,7 @@ in {
transform = "270";
}
{
criteria = "Goldstar Company Ltd IPS226 SerialNumber";
criteria = "LG Electronics IPS226 SerialNumber";
mode = "1920x1080@60Hz";
position = "3000,420";
scale = 1.0;
@ -52,7 +48,7 @@ in {
transform = "270";
}
{
criteria = "Goldstar Company Ltd IPS226 SerialNumber";
criteria = "LG Electronics IPS226 SerialNumber";
mode = "1920x1080@60Hz";
position = "3000,420";
scale = 1.0;

View file

@ -282,8 +282,8 @@ in {
};
output = {
"Unknown 0x1500 0x00000000".bg = "${backgrounds}/forest2.jpg fill";
"Goldstar Company Ltd IPS226 SerialNumber".bg = "${backgrounds}/future-town.jpg fill";
"California Institute of Technology 0x1500 Unknown".bg = "${backgrounds}/forest2.jpg fill";
"LG Electronics IPS226 SerialNumber".bg = "${backgrounds}/future-town.jpg fill";
"BenQ Corporation BenQ GW2270 P9J02423SL0".bg = "${backgrounds}/leaves3.jpg fill";
};
};