aboutsummaryrefslogtreecommitdiff
path: root/config.def.h
diff options
context:
space:
mode:
authorxyz <gky44px1999@gmail.com>2022-01-25 21:53:13 -0800
committerxyz <gky44px1999@gmail.com>2022-01-25 21:53:13 -0800
commit24627639068278ea98ec5b22f3bbed18cb10b612 (patch)
tree80cda58cdbb0cd4313fc6af693509f56780ecf0e /config.def.h
parentf8763b1b22ff3c8d81c400d0566d5978a580b02b (diff)
alt-s use env inside alacritty -e to fix a bug
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/config.def.h b/config.def.h
index 788e835..11d9d89 100644
--- a/config.def.h
+++ b/config.def.h
@@ -119,7 +119,8 @@ static Key keys[] = {
{ MODKEY, XK_q, spawn, SHCMD("qbittorrent") },
{ MODKEY, XK_r, spawn, SHCMD("xsel -ob | rev | xsel -ib") },
// Use "$(xsel -op)" instead of "xsel -op | sdcv" because: the latter won't quit if found items similar and require user input. Not sure why.
- { MODKEY, XK_s, spawn, SHCMD("SDCV_PAGER='less -R' alacritty -e sdcv --color \"$(xsel -op)\"") },
+ // use env inside, to fix a bug: alacritty created by `alacritty msg create-window` will quit immediately if result is less than one page.
+ { MODKEY, XK_s, spawn, SHCMD("alacritty -e env SDCV_PAGER='less -R' sdcv --color \"$(xsel -op)\"") },
{ MODKEY, XK_v, spawn, SHCMD("mullvad reconnect") },
{ MODKEY, XK_w, spawn, SHCMD("$BROWSER") },
{ MODKEY, XK_y, spawn, SHCMD("mpvy -s") },