From 4de207b986d0a01ca04d681d194d1a30b7672271 Mon Sep 17 00:00:00 2001 From: Howland Owl Date: Tue, 25 Apr 2017 17:32:06 +0300 Subject: [PATCH] changes to cursor look and printscreen toggle instead of f6 --- config.h | 30 ++++++++++++++++++++++++------ st.c | 20 +++++++++++++++++++- 2 files changed, 43 insertions(+), 7 deletions(-) diff --git a/config.h b/config.h index da21470..cf4d190 100644 --- a/config.h +++ b/config.h @@ -155,13 +155,27 @@ static unsigned int defaultcs = 258; static unsigned int defaultrcs = 15; /* - * Default shape of cursor + * Default shape of cursor (1/3/5 are supposed to blink?) * 2: Block ("█") * 4: Underline ("_") * 6: Bar ("|") * 7: Snowman ("☃") + +my hexagrams: +* 8: Creative Heaven ("䷀") +* 9: Gathering (Order) ("䷬") +*10: Work on the Decayed ("䷑") +*11: Inner Truth ("䷼") + +ansi blocks: +*12: Light Shade ("░") +*13: Medium Shade ("▒") +*14: Dark Shade ("▓") + +other: +*15: This thing: ("▣") */ -static unsigned int cursorshape = 2; +static unsigned int cursorshape = 1; /* * Default colour and shape of the mouse cursor @@ -191,12 +205,16 @@ static MouseShortcut mshortcuts[] = { /* Internal keyboard shortcuts. */ #define MODKEY Mod1Mask +/* I don't use the printer, but I _do_ use f6. +So I'm going to remove the print bits and replace with toggle. +*/ + static Shortcut shortcuts[] = { /* mask keysym function argument */ { XK_ANY_MOD, XK_Break, sendbreak, {.i = 0} }, - { ControlMask, XK_Print, toggleprinter, {.i = 0} }, - { ShiftMask, XK_Print, printscreen, {.i = 0} }, - { XK_ANY_MOD, XK_Print, printsel, {.i = 0} }, + // { ControlMask, XK_Print, toggleprinter, {.i = 0} }, + // { ShiftMask, XK_Print, printscreen, {.i = 0} }, + // { XK_ANY_MOD, XK_Print, printsel, {.i = 0} }, { MODKEY|ShiftMask, XK_Prior, xzoom, {.f = +1} }, { MODKEY|ShiftMask, XK_Next, xzoom, {.f = -1} }, { MODKEY|ShiftMask, XK_Home, xzoomreset, {.f = 0} }, @@ -205,7 +223,7 @@ static Shortcut shortcuts[] = { { MODKEY|ShiftMask, XK_C, clipcopy, {.i = 0} }, { MODKEY|ShiftMask, XK_V, clippaste, {.i = 0} }, { MODKEY, XK_Num_Lock, numlock, {.i = 0} }, - { XK_ANY_MOD, XK_F6, swapcolors, {.i = 0} }, + { XK_ANY_MOD, XK_Print, swapcolors, {.i = 0} }, }; diff --git a/st.c b/st.c index 43a2209..faf1994 100644 --- a/st.c +++ b/st.c @@ -3951,8 +3951,26 @@ xdrawcursor(void) /* draw the new one */ if (xw.state & WIN_FOCUSED) { switch (xw.cursor) { + /* truck extensions - don't work + case 8: + utf8decode("䷀", &g.u, UTF_SIZ); + case 9: + utf8decode("䷬", &g.u, UTF_SIZ); + case 10: + utf8decode("䷑", &g.u, UTF_SIZ); + case 11: + utf8decode("䷼", &g.u, UTF_SIZ); + case 12: + utf8decode("░", &g.u, UTF_SIZ); + case 13: + utf8decode("▒", &g.u, UTF_SIZ); + case 14: + utf8decode("▓", &g.u, UTF_SIZ); + case 15: + utf8decode("▣", &g.u, UTF_SIZ); */ case 7: /* st extension: snowman */ - utf8decode("☃", &g.u, UTF_SIZ); + utf8decode("▒", &g.u, UTF_SIZ); + // utf8decode("☃", &g.u, UTF_SIZ); case 0: /* Blinking Block */ case 1: /* Blinking Block (Default) */ case 2: /* Steady Block */