diff options
author | Xiao Pan <gky44px1999@gmail.com> | 2024-01-26 03:08:40 -0800 |
---|---|---|
committer | Xiao Pan <gky44px1999@gmail.com> | 2024-01-26 03:08:40 -0800 |
commit | 25b556ec853a5b8012fd077f6f1c3095fa7e3595 (patch) | |
tree | 9bf963a9984e3468fb58953cb9f28bae1c99f39c | |
parent | c16de1c04d412b101308e3ed4ec4476f2731d0a2 (diff) |
Try to make search more seamless by adding hotkey, to overcome fear/laziness to search
-rw-r--r-- | config.def.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/config.def.h b/config.def.h index 17903e9..cb727b4 100644 --- a/config.def.h +++ b/config.def.h @@ -133,6 +133,7 @@ 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 } }, + { 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") }, // `xsel -cb` because there's a small delay before reading password into clipboard, so clear it beforehand to prevent pasting old clipboard @@ -154,6 +155,7 @@ static const Key keys[] = { { MODKEY, XK_z, spawn, SHCMD("0 \"$(xsel -op)\"") }, { MODKEY|ControlMask, XK_v, spawn, SHCMD("nmcli connection down wg_studio; nmcli connection down wg_ka; notify-send -u critical 'VPN disabled'") }, { MODKEY|ControlMask, XK_y, spawn, SHCMD("tsp mpvy -A -u \"$(xsel -ob)\"") }, + { 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!'") }, { MODKEY|ShiftMask, XK_r, spawn, SHCMD("xsel -ob | rev | xsel -ib") }, |