Correctly exit the mode after pressing esc or return

This commit is contained in:
Charlotte 🦝 Delenk 2022-01-19 10:17:03 +01:00
parent 828501358c
commit 7a3cd8672e
Signed by: darkkirb
GPG key ID: 015E3768A70AFBC5
2 changed files with 2 additions and 1 deletions

View file

@ -42,6 +42,8 @@
Print = ''exec ${pkgs.grim}/bin/grim -g "$(${pkgs.slurp}/bin/slurp - d) " - | ${pkgs.wl-clipboard}/bin/wl-copy -t image/png''; Print = ''exec ${pkgs.grim}/bin/grim -g "$(${pkgs.slurp}/bin/slurp - d) " - | ${pkgs.wl-clipboard}/bin/wl-copy -t image/png'';
Space = ''exec ${pkgs.grim}/bin/grim -g "$(${pkgs.sway}/bin/swaymsg -t get_tree | ${pkgs.jq}/bin/jq -r '.. | select(.focused?) | .rect | "\(.x),\(.y) \(.width)x\(.height)"')" - | ${pkgs.wl-clipboard}/bin/wl-copy -t image/png''; Space = ''exec ${pkgs.grim}/bin/grim -g "$(${pkgs.sway}/bin/swaymsg -t get_tree | ${pkgs.jq}/bin/jq -r '.. | select(.focused?) | .rect | "\(.x),\(.y) \(.width)x\(.height)"')" - | ${pkgs.wl-clipboard}/bin/wl-copy -t image/png'';
f = ''exec ${pkgs.grim}/bin/grim - | ${pkgs.wl-clipboard}/bin/wl-copy -t image/png''; f = ''exec ${pkgs.grim}/bin/grim - | ${pkgs.wl-clipboard}/bin/wl-copy -t image/png'';
Escape = ''mode "default"'';
Return = ''mode "default"'';
}; };
}; };
}; };

1
result
View file

@ -1 +0,0 @@
/nix/store/x5zfwixpxbyl1c28hnz93cg62vqnp366-nixos-system-nutty-noon-22.05.20220119.966ea2c