diff options
author | Xiao Pan <gky44px1999@gmail.com> | 2024-04-01 18:49:48 -0700 |
---|---|---|
committer | Xiao Pan <gky44px1999@gmail.com> | 2024-04-01 18:49:48 -0700 |
commit | b3b99d1a7d5f0a791bf0b1b89d6e0057e91f7b7b (patch) | |
tree | ff49674ed8818332916d2b6eca9b97215238f12a | |
parent | d63bf5abe30403e8f178a32ec5234c8c4fe6855f (diff) |
better comment
-rw-r--r-- | config.def.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/config.def.h b/config.def.h index ac93aae..42c992e 100644 --- a/config.def.h +++ b/config.def.h @@ -133,7 +133,8 @@ static const Key keys[] = { // mod-shift-prtsc and mod-ctrl-prtsc does not work well, maybe because of sysrq? but mod-prtsc works well tho { 0, XK_Print, spawn, SHCMD("ffmpeg -f x11grab -i \"$DISPLAY\" -vframes 1 \"$XDG_PICTURES_DIR/screenshots/$(time-uuid).jxl\" && notify-send 'Screenshot Finished'") }, { MODKEY, XF86XK_AudioMute, spawn, {.v = toggle_audio_capture_cmd } }, - // `| { IFS= read -r p; printf '%s\n' "$p"; }` steal from https://git.zx2c4.com/password-store/tree/contrib/dmenu/passmenu#n34, GPL-2.0-or-later; I use this because it is much faster than `| head -n1` + // steal GPL-2.0-or-later code from https://git.zx2c4.com/password-store/tree/contrib/dmenu/passmenu#n34 + // I use `{ IFS= read -r p; printf '%s\n' \"$p\";}` because it is much faster than `| head -n1` { MODKEY, XK_a, spawn, SHCMD("pass master | { IFS= read -r p; printf '%s\n' \"$p\";} | xdotool type --clearmodifiers --file -") }, { MODKEY, XK_e, spawn, SHCMD("firefox --search \"$(xsel -op)\"") }, { MODKEY, XK_g, spawn, SHCMD("xrectsel '%w %h %x %y' | xargs sh -c 'ffmpeg -f x11grab -s \"$1x$2\" -i \"$DISPLAY+$3,$4\" -vframes 1 \"$XDG_PICTURES_DIR/screenshots/$(time-uuid).jxl\"' shell && notify-send 'Screenshot Finished'") }, |