mirror of
https://github.com/tiyn/st
synced 2025-10-18 13:51:23 +02:00
Compare commits
4 Commits
3ec0bd40b0
...
base
Author | SHA1 | Date | |
---|---|---|---|
d6315b6054 | |||
38c5d4fd4c | |||
f2f92955cc | |||
45c5e9b3c1 |
2
.gitignore
vendored
2
.gitignore
vendored
@@ -50,5 +50,3 @@ modules.order
|
|||||||
Module.symvers
|
Module.symvers
|
||||||
Mkfile.old
|
Mkfile.old
|
||||||
dkms.conf
|
dkms.conf
|
||||||
|
|
||||||
st
|
|
||||||
|
43
README.md
43
README.md
@@ -1,43 +0,0 @@
|
|||||||
# st
|
|
||||||
|
|
||||||
This is my patched version of st. The base version is directly from suckless.org.
|
|
||||||
This belongs to my larbs installation script, but does not directly depend on it.
|
|
||||||
It is supposed to work in the environment after the larbs-base-installation.
|
|
||||||
|
|
||||||
## Patches
|
|
||||||
|
|
||||||
The list below shows the currently applied patches to the master branch.
|
|
||||||
|
|
||||||
- st-alpha-20220206-0.8.5.diff (adds transparency)
|
|
||||||
- st-anysize-20220718-baa9357.diff (st leaves no gaps if the height/width doesn't match a multiple of
|
|
||||||
character height)
|
|
||||||
- st-ligatures-scrollback-20230105-0.9.diff (scrollback compatible addition of ligatures)
|
|
||||||
- st-scrollback-0.8.5.diff (add scrollback functionality)
|
|
||||||
|
|
||||||
## Hotkeys
|
|
||||||
|
|
||||||
There are various shortcuts and hotkeys used in this version. Included in my build are the following.
|
|
||||||
|
|
||||||
| ModKey | Shift | Key | Function |
|
|
||||||
| ------ | ----- | --------------- | --------------- |
|
|
||||||
| Alt | | Break | Send break |
|
|
||||||
| Alt | | Print | Toggle printer |
|
|
||||||
| Alt | | Print | Print screen |
|
|
||||||
| | Shift | Insert | Clipboard paste |
|
|
||||||
| Alt | | c | Clipboard copy |
|
|
||||||
| Alt | | v | Clipboard paste |
|
|
||||||
| Alt | | p | Selected paste |
|
|
||||||
| Alt | | NumLock | Toggle Numlock |
|
|
||||||
| Alt | | k | Scroll up |
|
|
||||||
| Alt | | j | Scroll down |
|
|
||||||
| | | MouseScrollUp | Scroll up |
|
|
||||||
| | | MouseScrollDown | Scroll down |
|
|
||||||
| Alt | Shift | u | Zoom in |
|
|
||||||
| Alt | Shift | i | Zoom out |
|
|
||||||
|
|
||||||
## Installation
|
|
||||||
|
|
||||||
The most basic way is to clone the repository and then invoke make.
|
|
||||||
|
|
||||||
- `git clone https://github.com/tiyn/st`
|
|
||||||
- `make clean install`
|
|
87
config.def.h
87
config.def.h
@@ -5,7 +5,7 @@
|
|||||||
*
|
*
|
||||||
* font: see http://freedesktop.org/software/fontconfig/fontconfig-user.html
|
* font: see http://freedesktop.org/software/fontconfig/fontconfig-user.html
|
||||||
*/
|
*/
|
||||||
static char *font = "mono:pixelsize=16:antialias=true:autohint=true";
|
static char *font = "Liberation Mono:pixelsize=12:antialias=true:autohint=true";
|
||||||
static int borderpx = 2;
|
static int borderpx = 2;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -96,27 +96,32 @@ unsigned int tabspaces = 8;
|
|||||||
/* Terminal colors (16 first used in escape sequence) */
|
/* Terminal colors (16 first used in escape sequence) */
|
||||||
static const char *colorname[] = {
|
static const char *colorname[] = {
|
||||||
/* 8 normal colors */
|
/* 8 normal colors */
|
||||||
"#1e1e1e",
|
"black",
|
||||||
"#f44747",
|
"red3",
|
||||||
"#608b4e",
|
"green3",
|
||||||
"#dcdcaa",
|
"yellow3",
|
||||||
"#569cd6",
|
"blue2",
|
||||||
"#c678dd",
|
"magenta3",
|
||||||
"#56b6c2",
|
"cyan3",
|
||||||
"#d4d4d4",
|
"gray90",
|
||||||
"#808080",
|
|
||||||
"#f44747",
|
/* 8 bright colors */
|
||||||
"#608b4e",
|
"gray50",
|
||||||
"#dcdcaa",
|
"red",
|
||||||
"#569cd6",
|
"green",
|
||||||
"#c678dd",
|
"yellow",
|
||||||
"#56b6c2",
|
"#5c5cff",
|
||||||
"#d4d4d4",
|
"magenta",
|
||||||
|
"cyan",
|
||||||
|
"white",
|
||||||
|
|
||||||
[255] = 0,
|
[255] = 0,
|
||||||
|
|
||||||
/* more colors can be added after 255 to use with DefaultXX */
|
/* more colors can be added after 255 to use with DefaultXX */
|
||||||
"#1e1e1e", /* 256 -> bg */
|
"#cccccc",
|
||||||
"#d4d4d4", /* 257 -> fg */
|
"#555555",
|
||||||
"#a4a4a4", /* 258 -> cursor */
|
"gray90", /* default foreground colour */
|
||||||
|
"black", /* default background colour */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@@ -124,10 +129,10 @@ static const char *colorname[] = {
|
|||||||
* Default colors (colorname index)
|
* Default colors (colorname index)
|
||||||
* foreground, background, cursor, reverse cursor
|
* foreground, background, cursor, reverse cursor
|
||||||
*/
|
*/
|
||||||
unsigned int defaultfg = 257;
|
unsigned int defaultfg = 258;
|
||||||
unsigned int defaultbg = 256;
|
unsigned int defaultbg = 259;
|
||||||
unsigned int defaultcs = 258;
|
unsigned int defaultcs = 256;
|
||||||
static unsigned int defaultrcs = 0;
|
static unsigned int defaultrcs = 257;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Default shape of cursor
|
* Default shape of cursor
|
||||||
@@ -171,10 +176,11 @@ static uint forcemousemod = ShiftMask;
|
|||||||
*/
|
*/
|
||||||
static MouseShortcut mshortcuts[] = {
|
static MouseShortcut mshortcuts[] = {
|
||||||
/* mask button function argument release */
|
/* mask button function argument release */
|
||||||
{ Button4, XK_NO_MOD, "\031" },
|
{ XK_ANY_MOD, Button2, selpaste, {.i = 0}, 1 },
|
||||||
{ Button5, XK_NO_MOD, "\005" },
|
{ ShiftMask, Button4, ttysend, {.s = "\033[5;2~"} },
|
||||||
{ XK_NO_MOD, Button4, kscrollup, {.i = 1} },
|
{ XK_ANY_MOD, Button4, ttysend, {.s = "\031"} },
|
||||||
{ XK_NO_MOD, Button5, kscrolldown,{.i = 1} },
|
{ ShiftMask, Button5, ttysend, {.s = "\033[6;2~"} },
|
||||||
|
{ XK_ANY_MOD, Button5, ttysend, {.s = "\005"} },
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Internal keyboard shortcuts. */
|
/* Internal keyboard shortcuts. */
|
||||||
@@ -183,19 +189,18 @@ static MouseShortcut mshortcuts[] = {
|
|||||||
|
|
||||||
static Shortcut shortcuts[] = {
|
static Shortcut shortcuts[] = {
|
||||||
/* mask keysym function argument */
|
/* mask keysym function argument */
|
||||||
{ MODKEY, XK_Break, sendbreak, {.i = 0} },
|
{ XK_ANY_MOD, XK_Break, sendbreak, {.i = 0} },
|
||||||
{ MODKEY, XK_Print, toggleprinter, {.i = 0} },
|
{ ControlMask, XK_Print, toggleprinter, {.i = 0} },
|
||||||
{ MODKEY, XK_Print, printscreen, {.i = 0} },
|
{ ShiftMask, XK_Print, printscreen, {.i = 0} },
|
||||||
{ ShiftMask, XK_Insert, clippaste, {.i = 0} },
|
{ XK_ANY_MOD, XK_Print, printsel, {.i = 0} },
|
||||||
{ MODKEY, XK_c, clipcopy, {.i = 0} },
|
{ TERMMOD, XK_Prior, zoom, {.f = +1} },
|
||||||
{ MODKEY, XK_v, clippaste, {.i = 0} },
|
{ TERMMOD, XK_Next, zoom, {.f = -1} },
|
||||||
{ MODKEY, XK_p, selpaste, {.i = 0} },
|
{ TERMMOD, XK_Home, zoomreset, {.f = 0} },
|
||||||
{ MODKEY, XK_Num_Lock, numlock, {.i = 0} },
|
{ TERMMOD, XK_C, clipcopy, {.i = 0} },
|
||||||
{ MODKEY, XK_k, kscrollup, {.i = 1} },
|
{ TERMMOD, XK_V, clippaste, {.i = 0} },
|
||||||
{ MODKEY, XK_j, kscrolldown, {.i = 1} },
|
{ TERMMOD, XK_Y, selpaste, {.i = 0} },
|
||||||
{ MODKEY, XK_U, zoom, {.f = +1} },
|
{ ShiftMask, XK_Insert, selpaste, {.i = 0} },
|
||||||
{ MODKEY|ShiftMask, XK_U, zoom, {.f = +1} },
|
{ TERMMOD, XK_Num_Lock, numlock, {.i = 0} },
|
||||||
{ MODKEY|ShiftMask, XK_I, zoom, {.f = -1} },
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Reference in New Issue
Block a user