diff options
author | Thomas Voss <mail@thomasvoss.com> | 2023-11-29 00:19:40 +0100 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2023-11-29 00:19:40 +0100 |
commit | ad05553b307b348f7c1a1ce7b3500ed6118e0dc4 (patch) | |
tree | 899637237394d499b824764c5f9e4c0ebccaf376 /.config/hypr/macros.m4 | |
parent | 430b60ad1fcedf6adecfad7b37aeaaf15c00f6a3 (diff) |
Hyprland: More macro goodness + shadows
Diffstat (limited to '.config/hypr/macros.m4')
-rw-r--r-- | .config/hypr/macros.m4 | 12 |
1 files changed, 11 insertions, 1 deletions
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 ]) |