st

fork of st
git clone git://popovic.xyz/st.git
Log | Files | Refs | README | LICENSE

commit 90e05472885bc3f9671027101e16cd27e7be110b
parent af9563283022998bcc36f6a939857ff061d7a591
Author: Milutin Popovic <mika@popovic.xyz>
Date:   Sun, 30 Nov 2025 18:46:22 +0000

add scroll

Diffstat:
Mconfig.h | 11+++++++----
1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/config.h b/config.h @@ -241,11 +241,9 @@ static MouseShortcut mshortcuts[] = { #define TERMMOD (Mod1Mask|ShiftMask) static char *openurlcmd[] = { "/bin/sh", "-c", "st-urlhandler", "externalpipe", NULL }; - static char *copyurlcmd[] = { "/bin/sh", "-c", "tmp=$(sed 's/.*│//g' | tr -d '\n' | grep -aEo '(((http|https|gopher|gemini|ftp|ftps|git)://|www\\.)[a-zA-Z0-9.]*[:]?[a-zA-Z0-9./@$&%?$#=_-~]*)|((magnet:\\?xt=urn:btih:)[a-zA-Z0-9]*)' | uniq | sed 's/^www./http:\\/\\/www\\./g' ); IFS=; [ ! -z $tmp ] && echo $tmp | dmenu -i -p 'Copy which url?' -l 10 | tr -d '\n' | xclip -selection clipboard", "externalpipe", NULL }; - static char *copyoutput[] = { "/bin/sh", "-c", "st-copyout", "externalpipe", NULL }; static Shortcut shortcuts[] = { @@ -266,11 +264,16 @@ static Shortcut shortcuts[] = { { MODKEY|ShiftMask, XK_L, copyurl, {.i = 1} }, { TERMMOD, XK_K, zoom, {.f = +1} }, { TERMMOD, XK_J, zoom, {.f = -1} }, - { MODKEY, XK_k, kscrollup, {.i = -1} }, - { MODKEY, XK_j, kscrolldown, {.i = -1} }, + { MODKEY, XK_Page_Up, kscrollup, {.i = -1} }, + { MODKEY, XK_Page_Down, kscrolldown, {.i = -1} }, + { MODKEY, XK_u, kscrollup, {.i = 15} }, + { MODKEY, XK_d, kscrolldown, {.i = 15} }, + { MODKEY, XK_k, kscrollup, {.i = 1} }, + { MODKEY, XK_j, kscrolldown, {.i = 1} }, { MODKEY, XK_l, externalpipe, {.v = openurlcmd } }, { MODKEY, XK_y, externalpipe, {.v = copyurlcmd } }, { MODKEY, XK_o, externalpipe, {.v = copyoutput } }, + }; /*