356 current 1970-01-01 01:00:00 24.05.20240611.47b604b 6.6.31-rt31 *

This commit is contained in:
Max Känner 2024-06-12 11:56:33 +02:00
parent b1d0a85100
commit 23631f0391

View File

@ -14,15 +14,18 @@ in {
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
services.kanshi = { services.kanshi = {
enable = true; enable = true;
profiles = lib.mkIf cfg.laptop { settings = lib.mkIf cfg.laptop [
laptop.outputs = [ {
profile.name = "laptop";
profile.outputs = [
{ {
criteria = "eDP-1"; criteria = "eDP-1";
position = "0,0"; position = "0,0";
} }
]; ];
dock_luhbots = { }
outputs = [ {
profile.outputs = [
{ {
criteria = "eDP-1"; criteria = "eDP-1";
position = "0, 1080"; position = "0, 1080";
@ -37,16 +40,16 @@ in {
position = "1920,0"; position = "1920,0";
} }
]; ];
exec = [ profile.exec = [
"${pkgs.sway}/bin/swaymsg workspace 1, move workspace to DP-4" "${pkgs.sway}/bin/swaymsg workspace 1, move workspace to DP-4"
"${pkgs.sway}/bin/swaymsg workspace 2, move workspace to DP-5" "${pkgs.sway}/bin/swaymsg workspace 2, move workspace to DP-5"
"${pkgs.sway}/bin/swaymsg workspace 3, move workspace to eDP-1" "${pkgs.sway}/bin/swaymsg workspace 3, move workspace to eDP-1"
"${pkgs.sway}/bin/swaymsg workspace 4, move workspace to eDP-1" "${pkgs.sway}/bin/swaymsg workspace 4, move workspace to eDP-1"
"${pkgs.sway}/bin/swaymsg workspace 5, move workspace to DP-4" "${pkgs.sway}/bin/swaymsg workspace 5, move workspace to DP-4"
]; ];
}; }
dock_luhbots2 = { {
outputs = [ profile.outpus = [
{ {
criteria = "eDP-1"; criteria = "eDP-1";
position = "1080,1080"; position = "1080,1080";
@ -61,16 +64,16 @@ in {
position = "0,0"; position = "0,0";
} }
]; ];
exec = [ profile.exec = [
"${pkgs.sway}/bin/swaymsg workspace 1, move workspace to DP-4" "${pkgs.sway}/bin/swaymsg workspace 1, move workspace to DP-4"
"${pkgs.sway}/bin/swaymsg workspace 2, move workspace to DP-5" "${pkgs.sway}/bin/swaymsg workspace 2, move workspace to DP-5"
"${pkgs.sway}/bin/swaymsg workspace 3, move workspace to eDP-1" "${pkgs.sway}/bin/swaymsg workspace 3, move workspace to eDP-1"
"${pkgs.sway}/bin/swaymsg workspace 4, move workspace to eDP-1" "${pkgs.sway}/bin/swaymsg workspace 4, move workspace to eDP-1"
"${pkgs.sway}/bin/swaymsg workspace 5, move workspace to DP-4" "${pkgs.sway}/bin/swaymsg workspace 5, move workspace to DP-4"
]; ];
}; }
dock_luhbots3 = { {
outputs = [ profile.outputs = [
{ {
criteria = "eDP-1"; criteria = "eDP-1";
position = "0,1080"; position = "0,1080";
@ -85,16 +88,16 @@ in {
position = "1920,0"; position = "1920,0";
} }
]; ];
exec = [ profile.exec = [
"${pkgs.sway}/bin/swaymsg workspace 1, move workspace to DP-6" "${pkgs.sway}/bin/swaymsg workspace 1, move workspace to DP-6"
"${pkgs.sway}/bin/swaymsg workspace 2, move workspace to DP-7" "${pkgs.sway}/bin/swaymsg workspace 2, move workspace to DP-7"
"${pkgs.sway}/bin/swaymsg workspace 3, move workspace to eDP-1" "${pkgs.sway}/bin/swaymsg workspace 3, move workspace to eDP-1"
"${pkgs.sway}/bin/swaymsg workspace 4, move workspace to eDP-1" "${pkgs.sway}/bin/swaymsg workspace 4, move workspace to eDP-1"
"${pkgs.sway}/bin/swaymsg workspace 5, move workspace to DP-6" "${pkgs.sway}/bin/swaymsg workspace 5, move workspace to DP-6"
]; ];
}; }
dock_luhbots4 = { {
outputs = [ profile.outputs = [
{ {
criteria = "eDP-1"; criteria = "eDP-1";
position = "1080,1080"; position = "1080,1080";
@ -109,16 +112,17 @@ in {
position = "0,0"; position = "0,0";
} }
]; ];
exec = [ profile.exec = [
"${pkgs.sway}/bin/swaymsg workspace 1, move workspace to DP-3" "${pkgs.sway}/bin/swaymsg workspace 1, move workspace to DP-3"
"${pkgs.sway}/bin/swaymsg workspace 2, move workspace to DP-4" "${pkgs.sway}/bin/swaymsg workspace 2, move workspace to DP-4"
"${pkgs.sway}/bin/swaymsg workspace 3, move workspace to eDP-1" "${pkgs.sway}/bin/swaymsg workspace 3, move workspace to eDP-1"
"${pkgs.sway}/bin/swaymsg workspace 4, move workspace to eDP-1" "${pkgs.sway}/bin/swaymsg workspace 4, move workspace to eDP-1"
"${pkgs.sway}/bin/swaymsg workspace 5, move workspace to DP-3" "${pkgs.sway}/bin/swaymsg workspace 5, move workspace to DP-3"
]; ];
}; }
laptop_hannspree = { {
outputs = [ profile.name = "docked 4k";
profile.outputs = [
{ {
criteria = "eDP-1"; criteria = "eDP-1";
position = "320,1440"; position = "320,1440";
@ -130,15 +134,15 @@ in {
scale = 1.5; scale = 1.5;
} }
]; ];
exec = [ profile.exec = [
"${pkgs.sway}/bin/swaymsg workspace 1, move workspace to HDMI-A-1" "${pkgs.sway}/bin/swaymsg workspace 1, move workspace to HDMI-A-1"
"${pkgs.sway}/bin/swaymsg workspace 2, move workspace to eDP-1" "${pkgs.sway}/bin/swaymsg workspace 2, move workspace to eDP-1"
"${pkgs.sway}/bin/swaymsg workspace 3, move workspace to eDP-1" "${pkgs.sway}/bin/swaymsg workspace 3, move workspace to eDP-1"
"${pkgs.sway}/bin/swaymsg workspace 4, move workspace to eDP-1" "${pkgs.sway}/bin/swaymsg workspace 4, move workspace to eDP-1"
"${pkgs.sway}/bin/swaymsg workspace 5, move workspace to HDMI-A-1" "${pkgs.sway}/bin/swaymsg workspace 5, move workspace to HDMI-A-1"
]; ];
}; }
}; ];
}; };
}; };
} }