From 3628aab9ae095f4063b1068c5f40c90817a7f534 Mon Sep 17 00:00:00 2001 From: Joe Date: Thu, 15 Sep 2022 11:01:38 +0200 Subject: up --- config.h | 2 +- config.mk | 2 +- st.c | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/config.h b/config.h index 754fc00..8c45f89 100644 --- a/config.h +++ b/config.h @@ -225,7 +225,7 @@ static Shortcut shortcuts[] = { { TERMMOD, XK_V, clippaste, {.i = 0} }, { ShiftMask, XK_Insert, selpaste, {.i = 0} }, { TERMMOD, XK_Num_Lock, numlock, {.i = 0} }, - { ControlMask|Mod1Mask, XK_c, keyboard_select,{.i = 0} }, + { TERMMOD, XK_space, keyboard_select,{.i = 0} }, { ShiftMask, XK_Page_Up, kscrollup, {.i = -1} }, { ShiftMask, XK_Page_Down, kscrolldown, {.i = -1} }, { TERMMOD, XK_U, kscrollup, {.i = -1} }, diff --git a/config.mk b/config.mk index a0ca32f..8d33114 100644 --- a/config.mk +++ b/config.mk @@ -21,7 +21,7 @@ LIBS = -L$(X11LIB) -lm -lrt -lX11 -lutil -lXft \ `$(PKG_CONFIG) --libs freetype2` # flags -CFLAGS = -std=c99 -march=ivybridge -Os -pipe +CFLAGS = -std=c99 -march=tigerlake -O3 -pipe STCPPFLAGS = -DVERSION=\"$(VERSION)\" -D_XOPEN_SOURCE=600 STCFLAGS = $(INCS) $(STCPPFLAGS) $(CPPFLAGS) $(CFLAGS) STLDFLAGS = $(LIBS) $(LDFLAGS) diff --git a/st.c b/st.c index e625766..a0498cd 100644 --- a/st.c +++ b/st.c @@ -2876,7 +2876,7 @@ int trt_kbdselect(KeySym ksym, char *buf, int len) { cu.x = term.c.x, cu.y = term.c.y; set_notifmode(0, ksym); return MODE_KBDSELECT; - case XK_s : + case XK_v : if ( selectsearch_mode & 1 ) selclear(); else @@ -2899,7 +2899,7 @@ int trt_kbdselect(KeySym ksym, char *buf, int len) { case XK_Escape : if ( !in_use ) break; selclear(); - case XK_Return : + case XK_y : set_notifmode(4, ksym); term.c.x = cu.x, term.c.y = cu.y; select_or_drawcursor(selectsearch_mode = 0, type); -- cgit v1.2.3