diff options
author | xyz <gky44px1999@gmail.com> | 2022-01-25 21:53:13 -0800 |
---|---|---|
committer | xyz <gky44px1999@gmail.com> | 2022-01-25 21:53:13 -0800 |
commit | 24627639068278ea98ec5b22f3bbed18cb10b612 (patch) | |
tree | 80cda58cdbb0cd4313fc6af693509f56780ecf0e /config.def.h | |
parent | f8763b1b22ff3c8d81c400d0566d5978a580b02b (diff) |
alt-s use env inside alacritty -e to fix a bug
Diffstat (limited to 'config.def.h')
-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 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") }, |