From ad05553b307b348f7c1a1ce7b3500ed6118e0dc4 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Wed, 29 Nov 2023 00:19:40 +0100 Subject: Hyprland: More macro goodness + shadows --- .config/hypr/macros.m4 | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to '.config/hypr/macros.m4') diff --git a/.config/hypr/macros.m4 b/.config/hypr/macros.m4 index f466f63..db542df 100644 --- a/.config/hypr/macros.m4 +++ b/.config/hypr/macros.m4 @@ -8,7 +8,17 @@ define(__submap, [ submap = reset ]) +define(__bindX, [ + ifelse([$#], 4, [ + bind$1 = $2, $3, exec, exec $4 2>/dev/null >&2 + ], [ + bind$1 = $modkey, $2, exec, exec $3 2>/dev/null >&2 + ]) +]) + +define(__bind, [__bindX(, $@)]) +define(__binde, [__bindX(e,$@)]) define(__subbind, [ - bind = , $1, exec, exec $2 2>/dev/null + __bindX(,,$@) bind = , $1, submap, reset ]) -- cgit v1.2.3