sites

public wiki contents of suckless.org
git clone git://git.suckless.org/sites
Log | Files | Refs

commit f67faf29ca3ed628d7b91aea3a8c1c0f42f21d3c
parent dad1a50b00c4f435f8e94f8dd5fa903482106df4
Author: elbachir-one <bachiralfa@gmail.com>
Date:   Sat,  7 Mar 2026 21:33:25 +0000

[dwm][patches][conditional] Fixed index.md

Diffstat:
Mdwm.suckless.org/patches/conditional/index.md | 20+++++++++++++-------
1 file changed, 13 insertions(+), 7 deletions(-)

diff --git a/dwm.suckless.org/patches/conditional/index.md b/dwm.suckless.org/patches/conditional/index.md @@ -1,17 +1,23 @@ -ifroot -====== +conditional +=========== Description ----------- -Adds the `conditional` function to modify the behavior of keybindings based on a condition encoded as a function. -`conditional` takes three function pointers, namely `condition`, `func_true`, and `func_false`, along with arguments for the last two. -`func_true` is invoked when `conditional` returns true, otherwise `func_false` is invoked. -`NULL` can be passed as `func_true` or `func_false` and acts as a no-op. +Adds the `conditional` function to modify the behavior of keybindings based on a +condition implemented as a function. + +`conditional` takes three function pointers: +`condition`, `func_true`, and `func_false`, along with arguments for the last two. + +- `func_true` is invoked when `condition` returns `true`. +- Otherwise, `func_false` is invoked. + +`NULL` can be passed as `func_true` or `func_false`, in which case it acts as a no-op. Download -------- * [dwm-conditional-6.8.diff](dwm-conditional-6.8.diff) -Authors +Author ------- * Noah Osterholz - <osterholznoah@gmail.com>