From 430b60ad1fcedf6adecfad7b37aeaaf15c00f6a3 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Tue, 28 Nov 2023 21:58:17 +0100 Subject: Hyprland: Add a submap for prompt-/dmenu-style scripts --- .config/hypr/macros.m4 | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .config/hypr/macros.m4 (limited to '.config/hypr/macros.m4') diff --git a/.config/hypr/macros.m4 b/.config/hypr/macros.m4 new file mode 100644 index 0000000..f466f63 --- /dev/null +++ b/.config/hypr/macros.m4 @@ -0,0 +1,14 @@ +changequote([,]) + +define(__submap, [ + bind = $modkey, $2, submap, $1 + submap = $1 + $3 + bind = , escape, submap, reset + submap = reset +]) + +define(__subbind, [ + bind = , $1, exec, exec $2 2>/dev/null + bind = , $1, submap, reset +]) -- cgit v1.2.3