changes to cursor look and printscreen toggle instead of f6
This commit is contained in:
parent
54ccb7a159
commit
4de207b986
2 changed files with 43 additions and 7 deletions
30
config.h
30
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} },
|
||||
|
||||
};
|
||||
|
||||
|
|
|
|||
20
st.c
20
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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue