dwm-flyschemes-6.6-st-optionscheme-integration.diff (1418B)
1 diff -up dwm-6.6-flyschemes/config.def.h dwm-6.6-flyschemes-stoptionschemeintegration/config.def.h 2 --- dwm-6.6-flyschemes/config.def.h 2025-12-21 18:53:52.460002790 +0300 3 +++ dwm-6.6-flyschemes-stoptionschemeintegration/config.def.h 2025-12-23 17:08:52.466681818 +0300 4 @@ -116,7 +116,23 @@ static const char *dmenucmd[] = { 5 "-sf", "$eeeeee", /* changed as dmenucmd[12] in cycle_flyschemes */ 6 NULL 7 }; 8 -static const char *termcmd[] = { "st", NULL }; 9 + 10 +static const char *st_optionschemes[] = { 11 + "default", 12 + "light", 13 + "plan9", 14 + "dracula", 15 + "solarized", 16 + "nord", 17 + "gruvbox", 18 + "cyberpunk" 19 +}; 20 + 21 +static const char *termcmd[] = { 22 + "st", 23 + "-S", "default", /* changed as termcmd[2] in cycle_flyschemes */ 24 + NULL 25 +}; 26 27 static const Key keys[] = { 28 /* modifier key function argument */ 29 diff -up dwm-6.6-flyschemes/dwm.c dwm-6.6-flyschemes-stoptionschemeintegration/dwm.c 30 --- dwm-6.6-flyschemes/dwm.c 2025-12-21 18:53:52.460002790 +0300 31 +++ dwm-6.6-flyschemes-stoptionschemeintegration/dwm.c 2025-12-23 17:08:42.620014949 +0300 32 @@ -2151,6 +2151,8 @@ update_scheme() 33 dmenucmd[8] = flyschemes[iflysch][SchemeNorm][0]; 34 dmenucmd[10] = flyschemes[iflysch][SchemeSel][1]; 35 dmenucmd[12] = flyschemes[iflysch][SchemeSel][0]; 36 + int optschlen = LENGTH(st_optionschemes); 37 + termcmd[2] = st_optionschemes[iflysch % optschlen]; 38 Client *cl = selmon->sel; 39 Client *c; 40 Monitor *m;