summaryrefslogtreecommitdiff
path: root/.config/hypr/macros.m4
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2023-11-28 21:58:17 +0100
committerThomas Voss <mail@thomasvoss.com> 2023-11-28 21:58:17 +0100
commit430b60ad1fcedf6adecfad7b37aeaaf15c00f6a3 (patch)
tree6beeb6dd6e9c448ef5a4a3e420ad1cb7849eef5e /.config/hypr/macros.m4
parente811e53398f7e204be538d2a9ffea29239739f77 (diff)
Hyprland: Add a submap for prompt-/dmenu-style scripts
Diffstat (limited to '.config/hypr/macros.m4')
-rw-r--r--.config/hypr/macros.m414
1 files changed, 14 insertions, 0 deletions
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
+])