feat(sway): fix workspaces to monitors
parent
06de03dd73
commit
d6b4959e03
32
xps.nix
32
xps.nix
|
@ -1,5 +1,9 @@
|
|||
{ ... }:
|
||||
|
||||
{ pkgs, ... }:
|
||||
let
|
||||
swaymsg = "${pkgs.sway}/bin/swaymsg";
|
||||
acer_left = "Acer Technologies Acer PE270K 0x0027A130";
|
||||
acer_right = "Acer Technologies Acer PE270K 0x0027A150";
|
||||
in
|
||||
{
|
||||
services.kanshi = {
|
||||
enable = true;
|
||||
|
@ -22,7 +26,7 @@
|
|||
name = "home_office";
|
||||
outputs = [
|
||||
{
|
||||
criteria = "Acer Technologies Acer PE270K 0x0027A130";
|
||||
criteria = acer_left;
|
||||
mode = "3840x2160";
|
||||
scale = 1.75;
|
||||
status = "enable";
|
||||
|
@ -30,7 +34,7 @@
|
|||
transform = "normal";
|
||||
}
|
||||
{
|
||||
criteria = "Acer Technologies Acer PE270K 0x0027A150";
|
||||
criteria = acer_right;
|
||||
mode = "3840x2160";
|
||||
scale = 1.75;
|
||||
status = "enable";
|
||||
|
@ -43,17 +47,17 @@
|
|||
}
|
||||
];
|
||||
exec = ''
|
||||
exec swaymsg workspace 0, move workspace to output '"Acer Technologies Acer PE270K 0x0027A130"'
|
||||
exec swaymsg workspace 8, move workspace to output '"Acer Technologies Acer PE270K 0x0027A130"'
|
||||
exec swaymsg workspace 6, move workspace to output '"Acer Technologies Acer PE270K 0x0027A130"'
|
||||
exec swaymsg workspace 4, move workspace to output '"Acer Technologies Acer PE270K 0x0027A130"'
|
||||
exec swaymsg workspace 2, move workspace to output '"Acer Technologies Acer PE270K 0x0027A130"'
|
||||
exec ${swaymsg} workspace 10 output '"${acer_left}"', workspace 10, move workspace to output '"${acer_left}"'
|
||||
exec ${swaymsg} workspace 8 output '"${acer_left}"', workspace 8, move workspace to output '"${acer_left}"'
|
||||
exec ${swaymsg} workspace 6 output '"${acer_left}"', workspace 6, move workspace to output '"${acer_left}"'
|
||||
exec ${swaymsg} workspace 4 output '"${acer_left}"', workspace 4, move workspace to output '"${acer_left}"'
|
||||
exec ${swaymsg} workspace 2 output '"${acer_left}"', workspace 2, move workspace to output '"${acer_left}"'
|
||||
|
||||
exec swaymsg workspace 9, move workspace to output '"Acer Technologies Acer PE270K 0x0027A150"'
|
||||
exec swaymsg workspace 7, move workspace to output '"Acer Technologies Acer PE270K 0x0027A150"'
|
||||
exec swaymsg workspace 5, move workspace to output '"Acer Technologies Acer PE270K 0x0027A150"'
|
||||
exec swaymsg workspace 3, move workspace to output '"Acer Technologies Acer PE270K 0x0027A150"'
|
||||
exec swaymsg workspace 1, move workspace to output '"Acer Technologies Acer PE270K 0x0027A150"'
|
||||
exec ${swaymsg} workspace 9 output '"${acer_right}"', workspace 9, move workspace to output '"${acer_right}"'
|
||||
exec ${swaymsg} workspace 7 output '"${acer_right}"', workspace 7, move workspace to output '"${acer_right}"'
|
||||
exec ${swaymsg} workspace 5 output '"${acer_right}"', workspace 5, move workspace to output '"${acer_right}"'
|
||||
exec ${swaymsg} workspace 3 output '"${acer_right}"', workspace 3, move workspace to output '"${acer_right}"'
|
||||
exec ${swaymsg} workspace 1 output '"${acer_right}"', workspace 1, move workspace to output '"${acer_right}"'
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue