|
|
|
@ -26,20 +26,20 @@
|
|
|
|
|
rotate_lisgd = pkgs.writeShellScriptBin "rotate_lisgd" ''
|
|
|
|
|
# PREV_ORIENTATION and ORIENTATION are given by rot8
|
|
|
|
|
|
|
|
|
|
LISGD_INPUT=/dev/input/by-path/platform-AMDI0010:02-event
|
|
|
|
|
# open nwggrid (Meta+D) by swiping up from the bottom edge
|
|
|
|
|
LISGD_ACTIONS=("1,DU,B,*,R,${pkgs.ydotool}/bin/ydotool key 125:1 32:1 32:0 125:0")
|
|
|
|
|
# close window (Meta+Shift+Q) by swiping down with 3 fingers
|
|
|
|
|
LISGD_ACTIONS+=("3,UD,*,L,R,${pkgs.ydotool}/bin/ydotool key 125:1 42:1 16:1 16:0 42:0 125:0")
|
|
|
|
|
LISGD_INPUT=/dev/input/event14
|
|
|
|
|
# open nwggrid by swiping up from the bottom edge
|
|
|
|
|
LISGD_ACTIONS=("1,DU,B,*,R,${pkgs.sway}/bin/swaymsg exec ${pkgs.nwg-launchers}/bin/nwggrid -client")
|
|
|
|
|
# close window by swiping down with 3 fingers
|
|
|
|
|
LISGD_ACTIONS+=("3,UD,*,L,R,${pkgs.sway}/bin/swaymsg kill")
|
|
|
|
|
|
|
|
|
|
# move window left (Meta+Shift+H) by swiping left with 2 fingers
|
|
|
|
|
LISGD_ACTIONS+=("2,UD,*,*,R,${pkgs.ydotool}/bin/ydotool key 125:1 42:1 35:1 35:0 42:0 125:0")
|
|
|
|
|
# move window down (Meta+Shift+J) by swiping down with 2 fingers
|
|
|
|
|
LISGD_ACTIONS+=("2,UD,*,*,R,${pkgs.ydotool}/bin/ydotool key 125:1 42:1 36:1 36:0 42:0 125:0")
|
|
|
|
|
# move window up (Meta+Shift+K) by swiping up with 2 fingers
|
|
|
|
|
LISGD_ACTIONS+=("2,UD,*,*,R,${pkgs.ydotool}/bin/ydotool key 125:1 42:1 37:1 37:0 42:0 125:0")
|
|
|
|
|
# move window right (Meta+Shift+L) by swiping right with 2 fingers
|
|
|
|
|
LISGD_ACTIONS+=("2,UD,*,*,R,${pkgs.ydotool}/bin/ydotool key 125:1 42:1 38:1 38:0 42:0 125:0")
|
|
|
|
|
# move window left by swiping left with 2 fingers
|
|
|
|
|
LISGD_ACTIONS+=("2,UD,*,*,R,${pkgs.sway}/bin/swaymsg move left")
|
|
|
|
|
# move window down by swiping down with 2 fingers
|
|
|
|
|
LISGD_ACTIONS+=("2,UD,*,*,R,${pkgs.sway}/bin/swaymsg move down")
|
|
|
|
|
# move window up by swiping up with 2 fingers
|
|
|
|
|
LISGD_ACTIONS+=("2,UD,*,*,R,${pkgs.sway}/bin/swaymsg move up")
|
|
|
|
|
# move window right by swiping right with 2 fingers
|
|
|
|
|
LISGD_ACTIONS+=("2,UD,*,*,R,${pkgs.sway}/bin/swaymsg move right")
|
|
|
|
|
|
|
|
|
|
LISGD_ACTION_OPTIONS=()
|
|
|
|
|
for str in "''${LISGD_ACTIONS[@]}"; do
|
|
|
|
@ -105,6 +105,12 @@ in {
|
|
|
|
|
DP-5 = {
|
|
|
|
|
bg = "'${bg1080vert}' fit";
|
|
|
|
|
};
|
|
|
|
|
DP-6 = {
|
|
|
|
|
bg = "'${bg1080}' fit";
|
|
|
|
|
};
|
|
|
|
|
DP-7 = {
|
|
|
|
|
bg = "'${bg1080vert}' fit";
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
input = {
|
|
|
|
@ -202,11 +208,11 @@ in {
|
|
|
|
|
workspaceOutputAssign = [
|
|
|
|
|
{
|
|
|
|
|
workspace = "main";
|
|
|
|
|
output = ["DP-4" "HDMI-A-1" "eDP-1"];
|
|
|
|
|
output = ["DP-4" "DP-6" "HDMI-A-1" "eDP-1"];
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
workspace = "term";
|
|
|
|
|
output = ["DP-5" "eDP-1"];
|
|
|
|
|
output = ["DP-5" "DP-7" "eDP-1"];
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
workspace = "msg";
|
|
|
|
@ -218,7 +224,7 @@ in {
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
workspace = "5";
|
|
|
|
|
output = ["DP-4" "HDMI-A-1" "eDP-1"];
|
|
|
|
|
output = ["DP-4" "DP-6" "HDMI-A-1" "eDP-1"];
|
|
|
|
|
}
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
@ -433,6 +439,30 @@ in {
|
|
|
|
|
"${pkgs.sway}/bin/swaymsg workspace 5, move workspace to DP-4"
|
|
|
|
|
];
|
|
|
|
|
};
|
|
|
|
|
dock_luhbots3 = {
|
|
|
|
|
outputs = [
|
|
|
|
|
{
|
|
|
|
|
criteria = "eDP-1";
|
|
|
|
|
position = "0,1080";
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
criteria = "Dell Inc. DELL U2422HE 53DCH83";
|
|
|
|
|
position = "0,0";
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
criteria = "Dell Inc. DELL U2412M 0FFXD46I4U5S";
|
|
|
|
|
transform = "90";
|
|
|
|
|
position = "1920,0";
|
|
|
|
|
}
|
|
|
|
|
];
|
|
|
|
|
exec = [
|
|
|
|
|
"${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 3, 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"
|
|
|
|
|
];
|
|
|
|
|
};
|
|
|
|
|
laptop_hannspree = {
|
|
|
|
|
outputs = [
|
|
|
|
|
{
|
|
|
|
|