aboutsummaryrefslogtreecommitdiff
path: root/config.def.h
diff options
context:
space:
mode:
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/config.def.h b/config.def.h
index 42c992e..01a46a9 100644
--- a/config.def.h
+++ b/config.def.h
@@ -134,8 +134,8 @@ static const Key keys[] = {
{ 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 } },
// 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 -") },
+ // I use `{ IFS= read -r p; printf '%s\r' \"$p\";}` because it is much faster than `| head -n1`
+ { MODKEY, XK_a, spawn, SHCMD("pass master | { IFS= read -r p; printf '%s\r' \"$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'") },
{ MODKEY, XK_n, spawn, SHCMD("dunstctl close") },
@@ -157,7 +157,7 @@ static const Key keys[] = {
{ MODKEY, XK_z, spawn, SHCMD("0 \"$(xsel -op)\"") },
{ MODKEY|ControlMask, XK_v, spawn, SHCMD("vpn ia") },
{ MODKEY|ControlMask, XK_y, spawn, SHCMD("tsp mpvy -A -u \"$(xsel -ob)\"") },
- { MODKEY|ShiftMask, XK_a, spawn, SHCMD("pass master2 | { IFS= read -r p; printf '%s\n' \"$p\";} | xdotool type --clearmodifiers --file -") },
+ { MODKEY|ShiftMask, XK_a, spawn, SHCMD("pass master2 | { IFS= read -r p; printf '%s\r' \"$p\";} | xdotool type --clearmodifiers --file -") },
{ MODKEY|ShiftMask, XK_e, spawn, SHCMD("firefox --search \"$(xsel -ob)\"") },
{ MODKEY|ShiftMask, XK_g, spawn, SHCMD("reco") },
{ MODKEY|ShiftMask, XK_n, spawn, SHCMD("alarm 12 'Boiling Water!'") },