dotfiles/st/config.sed
Sarthak 7f41cf7a82 replace the old dotfiles with the sakura line rice
The bare $HOME repo is gone. This is now the rice: install.sh, rice-*
scripts in bin/, configs in home/ linked into $HOME, theme templates, st
and the particle wallpaper. Clone to ~/rice and run install.sh.
2026-09-14 19:44:44 +05:30

24 lines
1.6 KiB
Sed

# st/config.sed - the rice's changes to st-flexipatch's config.def.h.
# The font and colours here are only fallbacks: rice-theme sets both through
# Xresources, and st re-reads them on USR1.
s|^static char \*font = .*|static char *font = "JetBrainsMono Nerd Font:pixelsize=14:antialias=true:autohint=true";|
s|^static int borderpx = .*|static int borderpx = 15;|
s|^float alpha = .*|float alpha = 0.75;|
s|^static unsigned int cursorshape = .*|static unsigned int cursorshape = 2;|
# Alt-based zoom, scrolling and transparency, as in the previous st build.
/^static Shortcut shortcuts\[\] = {/a\
{ MODKEY, XK_comma, zoom, {.f = +1} },\
{ MODKEY, XK_period, zoom, {.f = -1} },\
{ MODKEY, XK_g, zoomreset, {.f = 0} },\
{ MODKEY, XK_Page_Up, kscrollup, {.i = -1}, S_PRI },\
{ MODKEY, XK_Page_Down, kscrolldown, {.i = -1}, S_PRI },\
{ MODKEY, XK_k, kscrollup, {.i = 1}, S_PRI },\
{ MODKEY, XK_j, kscrolldown, {.i = 1}, S_PRI },\
{ MODKEY, XK_Up, kscrollup, {.i = 1}, S_PRI },\
{ MODKEY, XK_Down, kscrolldown, {.i = 1}, S_PRI },\
{ MODKEY, XK_u, kscrollup, {.i = -1}, S_PRI },\
{ MODKEY, XK_d, kscrolldown, {.i = -1}, S_PRI },\
{ MODKEY, XK_a, changealpha, {.f = +0.05} },\
{ MODKEY, XK_s, changealpha, {.f = -0.05} },