diff --git a/modules/home-manager/sway.nix b/modules/home-manager/sway.nix index e89818e..a1d5487 100644 --- a/modules/home-manager/sway.nix +++ b/modules/home-manager/sway.nix @@ -27,19 +27,19 @@ # 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") + # 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