614 current 1970-01-01 01:00:00 24.11.20250421.9684b53 6.6.87 *
This commit is contained in:
parent
5d729b4948
commit
dbc625d989
@ -131,10 +131,12 @@ in {
|
|||||||
};
|
};
|
||||||
# map laptop touchscreen to laptop display
|
# map laptop touchscreen to laptop display
|
||||||
"1267:11676:ELAN2513:00_04F3:2D9C" = lib.mkIf cfg.laptop {
|
"1267:11676:ELAN2513:00_04F3:2D9C" = lib.mkIf cfg.laptop {
|
||||||
|
tap = "enable";
|
||||||
map_to_output = "'AU Optronics 0x4B2D Unknown'";
|
map_to_output = "'AU Optronics 0x4B2D Unknown'";
|
||||||
};
|
};
|
||||||
# map laptop stylus to laptop display
|
# map laptop stylus to laptop display
|
||||||
"1267:11676:ELAN2513:00_04F3:2D9C_Stylus" = lib.mkIf cfg.laptop {
|
"1267:11676:ELAN2513:00_04F3:2D9C_Stylus" = lib.mkIf cfg.laptop {
|
||||||
|
tap = "enable";
|
||||||
map_to_output = "'AU Optronics 0x4B2D Unknown'";
|
map_to_output = "'AU Optronics 0x4B2D Unknown'";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@ -255,7 +257,7 @@ in {
|
|||||||
extraConfig = lib.mkIf cfg.laptop ''
|
extraConfig = lib.mkIf cfg.laptop ''
|
||||||
bindswitch --reload --locked lid:on exec "[ $(${pkgs.sway}/bin/swaymsg -t get_outputs | ${pkgs.jq}/bin/jq '. | length') -gt 1 ] && ${pkgs.sway}/bin/swaymsg output eDP-1 disable"
|
bindswitch --reload --locked lid:on exec "[ $(${pkgs.sway}/bin/swaymsg -t get_outputs | ${pkgs.jq}/bin/jq '. | length') -gt 1 ] && ${pkgs.sway}/bin/swaymsg output eDP-1 disable"
|
||||||
bindswitch --reload --locked lid:off output eDP-1 enable
|
bindswitch --reload --locked lid:off output eDP-1 enable
|
||||||
bindgesture swipe:down exec ${pkgs.nwg-launchers}/bin/nwggrid -client
|
bindgesture --input-device=\'1267:11676:ELAN2513:00_04F3:2D9C\' swipe:3:down exec ${pkgs.nwg-launchers}/bin/nwggrid -client
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -52,24 +52,25 @@ in {
|
|||||||
profile.outputs = [
|
profile.outputs = [
|
||||||
{
|
{
|
||||||
criteria = "eDP-1";
|
criteria = "eDP-1";
|
||||||
position = "1080,1080";
|
position = "0,1080";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
criteria = "Dell Inc. DELL U2422HE 8YCPH83";
|
criteria = "Dell Inc. DELL U2422HE 8YCPH83";
|
||||||
position = "1080,0";
|
transform = "normal";
|
||||||
|
position = "0,0";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
criteria = "NEC Corporation E243WMi 59118576NB";
|
criteria = "Dell Inc. DELL P2422HE 28XL9M3";
|
||||||
transform = "90";
|
transform = "normal";
|
||||||
position = "0,0";
|
position = "1920,0";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
profile.exec = [
|
profile.exec = [
|
||||||
"${pkgs.sway}/bin/swaymsg [workspace=main] move workspace to DP-4"
|
"${pkgs.sway}/bin/swaymsg [workspace=main] move workspace to '\"Dell Inc. DELL U2422HE 8YCPH83\"'"
|
||||||
"${pkgs.sway}/bin/swaymsg [workspace=term] move workspace to DP-5"
|
"${pkgs.sway}/bin/swaymsg [workspace=term] move workspace to '\"Dell Inc. DELL P2422HE 28XL9M3\"'"
|
||||||
"${pkgs.sway}/bin/swaymsg [workspace=msg] move workspace to eDP-1"
|
"${pkgs.sway}/bin/swaymsg [workspace=msg] move workspace to eDP-1"
|
||||||
"${pkgs.sway}/bin/swaymsg [workspace=music] move workspace to eDP-1"
|
"${pkgs.sway}/bin/swaymsg [workspace=music] 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 '\"Dell Inc. DELL U2422HE 8YCPH83\"'"
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user