sites

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

commit 33a9daa11903d18a04f9a739404d8269c6dabc0f
parent 2e36dafecc95cd66e468963b07c69d843aab8962
Author: Ivan Tham <pickfire@riseup.net>
Date:   Mon, 11 Feb 2019 20:53:24 +0800

[dwm][keypressrelease] Add alternative

Diffstat:
Mdwm.suckless.org/patches/keypressrelease/index.md | 13+++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)

diff --git a/dwm.suckless.org/patches/keypressrelease/index.md b/dwm.suckless.org/patches/keypressrelease/index.md @@ -15,14 +15,19 @@ Usage ----- A working `scrot -s` key binding: - static const char *scrot[] = { "scrot", "-s", NULL }; - ... - { KeyRelease, 0, XK_Print, spawn, {.v = scrot } }, + { KeyRelease, 0, XK_Print, spawn, SHCMD("scrot -s") }, Or to only display the bar while the toggle key is held down (requires that it is hidden to start with), add: - { KeyRelease, MODKEY, XK_b, togglebar, {0} }, + { KeyRelease, MODKEY, XK_b, togglebar, {0} }, + +Alternatives +------------ + +An alternative is to put a tiny sleep right before executing scrot. + + { ControlMask, XK_Print, spawn, SHCMD("sleep 0.2; scrot -s") }, Download --------