From 7a3cd8672e5f86a4c823c616462d38d23df141a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charlotte=20=F0=9F=A6=9D=20Delenk?= Date: Wed, 19 Jan 2022 10:17:03 +0100 Subject: [PATCH] Correctly exit the mode after pressing esc or return --- config/programs/sway.nix | 2 ++ result | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) delete mode 120000 result diff --git a/config/programs/sway.nix b/config/programs/sway.nix index 0210ae73..f489a647 100644 --- a/config/programs/sway.nix +++ b/config/programs/sway.nix @@ -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''; 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''; + Escape = ''mode "default"''; + Return = ''mode "default"''; }; }; }; diff --git a/result b/result deleted file mode 120000 index f79483d3..00000000 --- a/result +++ /dev/null @@ -1 +0,0 @@ -/nix/store/x5zfwixpxbyl1c28hnz93cg62vqnp366-nixos-system-nutty-noon-22.05.20220119.966ea2c \ No newline at end of file