Merge branch 'arch-dsktp' into 'master'
Merge changes from my arch desktop to my master See merge request n0x_io/scklss!1
This commit is contained in:
commit
9cea44da48
@ -64,6 +64,10 @@ static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn()
|
|||||||
static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_teal, "-sf", col_gray4, NULL };
|
static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_teal, "-sf", col_gray4, NULL };
|
||||||
static const char *termcmd[] = { "st", NULL };
|
static const char *termcmd[] = { "st", NULL };
|
||||||
|
|
||||||
|
/* Own commands */
|
||||||
|
static const char *screenshot[] = { "makescreenshot", NULL };
|
||||||
|
|
||||||
|
|
||||||
static Key keys[] = {
|
static Key keys[] = {
|
||||||
/* modifier key function argument */
|
/* modifier key function argument */
|
||||||
{ MODKEY, XK_p, spawn, {.v = dmenucmd } },
|
{ MODKEY, XK_p, spawn, {.v = dmenucmd } },
|
||||||
@ -92,6 +96,7 @@ static Key keys[] = {
|
|||||||
{ MODKEY, XK_minus, setgaps, {.i = -1 } },
|
{ MODKEY, XK_minus, setgaps, {.i = -1 } },
|
||||||
{ MODKEY, XK_equal, setgaps, {.i = +1 } },
|
{ MODKEY, XK_equal, setgaps, {.i = +1 } },
|
||||||
{ MODKEY|ShiftMask, XK_equal, setgaps, {.i = 0 } },
|
{ MODKEY|ShiftMask, XK_equal, setgaps, {.i = 0 } },
|
||||||
|
{ MODKEY|ShiftMask, XK_s, spawn, {.v = screenshot } },
|
||||||
TAGKEYS( XK_1, 0)
|
TAGKEYS( XK_1, 0)
|
||||||
TAGKEYS( XK_2, 1)
|
TAGKEYS( XK_2, 1)
|
||||||
TAGKEYS( XK_3, 2)
|
TAGKEYS( XK_3, 2)
|
||||||
|
@ -64,6 +64,10 @@ static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn()
|
|||||||
static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_teal, "-sf", col_gray4, NULL };
|
static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_teal, "-sf", col_gray4, NULL };
|
||||||
static const char *termcmd[] = { "st", NULL };
|
static const char *termcmd[] = { "st", NULL };
|
||||||
|
|
||||||
|
/* Own commands */
|
||||||
|
static const char *screenshot[] = { "makescreenshot", NULL };
|
||||||
|
|
||||||
|
|
||||||
static Key keys[] = {
|
static Key keys[] = {
|
||||||
/* modifier key function argument */
|
/* modifier key function argument */
|
||||||
{ MODKEY, XK_p, spawn, {.v = dmenucmd } },
|
{ MODKEY, XK_p, spawn, {.v = dmenucmd } },
|
||||||
@ -92,6 +96,7 @@ static Key keys[] = {
|
|||||||
{ MODKEY, XK_minus, setgaps, {.i = -1 } },
|
{ MODKEY, XK_minus, setgaps, {.i = -1 } },
|
||||||
{ MODKEY, XK_equal, setgaps, {.i = +1 } },
|
{ MODKEY, XK_equal, setgaps, {.i = +1 } },
|
||||||
{ MODKEY|ShiftMask, XK_equal, setgaps, {.i = 0 } },
|
{ MODKEY|ShiftMask, XK_equal, setgaps, {.i = 0 } },
|
||||||
|
{ MODKEY|ShiftMask, XK_s, spawn, {.v = screenshot } },
|
||||||
TAGKEYS( XK_1, 0)
|
TAGKEYS( XK_1, 0)
|
||||||
TAGKEYS( XK_2, 1)
|
TAGKEYS( XK_2, 1)
|
||||||
TAGKEYS( XK_3, 2)
|
TAGKEYS( XK_3, 2)
|
||||||
|
@ -1,11 +1,14 @@
|
|||||||
//Modify this file to change what commands output to your statusbar, and recompile using the make command.
|
//Modify this file to change what commands output to your statusbar, and recompile using the make command.
|
||||||
static const Block blocks[] = {
|
static const Block blocks[] = {
|
||||||
/*Icon*/ /*Command*/ /*Update Interval*/ /*Update Signal*/
|
/*Icon*/ /*Command*/ /*Update Interval*/ /*Update Signal*/
|
||||||
{" ", "freememory", 30, 0},
|
{"", "dwmmemory", 10, 0},
|
||||||
{" ", "batstatus", 30, 0},
|
{"", "dwmcpu", 5, 0},
|
||||||
|
{"", "dwmnetwork", 5, 0},
|
||||||
|
{"", "dwmdisk", 600, 0},
|
||||||
|
/* Battery not needed on desktop system {"", "dwmbatterdwmbattery, 0}, */
|
||||||
{" ", "date '+%b %d %H:%M'", 5, 0},
|
{" ", "date '+%b %d %H:%M'", 5, 0},
|
||||||
};
|
};
|
||||||
|
|
||||||
//sets delimeter between status commands. NULL character ('\0') means no delimeter.
|
//sets delimeter between status commands. NULL character ('\0') means no delimeter.
|
||||||
static char delim[] = " ";
|
static char delim[] = " ";
|
||||||
static unsigned int delimLen = 5;
|
static unsigned int delimLen = 5;
|
||||||
|
@ -283,7 +283,7 @@ static Key key[] = {
|
|||||||
{ XK_KP_Delete, ControlMask, "\033[3;5~", +1, 0},
|
{ XK_KP_Delete, ControlMask, "\033[3;5~", +1, 0},
|
||||||
{ XK_KP_Delete, ShiftMask, "\033[2K", -1, 0},
|
{ XK_KP_Delete, ShiftMask, "\033[2K", -1, 0},
|
||||||
{ XK_KP_Delete, ShiftMask, "\033[3;2~", +1, 0},
|
{ XK_KP_Delete, ShiftMask, "\033[3;2~", +1, 0},
|
||||||
{ XK_KP_Delete, XK_ANY_MOD, "\033[P", -1, 0},
|
{ XK_KP_Delete, XK_ANY_MOD, "\033[3~", -1, 0},
|
||||||
{ XK_KP_Delete, XK_ANY_MOD, "\033[3~", +1, 0},
|
{ XK_KP_Delete, XK_ANY_MOD, "\033[3~", +1, 0},
|
||||||
{ XK_KP_Multiply, XK_ANY_MOD, "\033Oj", +2, 0},
|
{ XK_KP_Multiply, XK_ANY_MOD, "\033Oj", +2, 0},
|
||||||
{ XK_KP_Add, XK_ANY_MOD, "\033Ok", +2, 0},
|
{ XK_KP_Add, XK_ANY_MOD, "\033Ok", +2, 0},
|
||||||
@ -351,7 +351,7 @@ static Key key[] = {
|
|||||||
{ XK_Delete, ControlMask, "\033[3;5~", +1, 0},
|
{ XK_Delete, ControlMask, "\033[3;5~", +1, 0},
|
||||||
{ XK_Delete, ShiftMask, "\033[2K", -1, 0},
|
{ XK_Delete, ShiftMask, "\033[2K", -1, 0},
|
||||||
{ XK_Delete, ShiftMask, "\033[3;2~", +1, 0},
|
{ XK_Delete, ShiftMask, "\033[3;2~", +1, 0},
|
||||||
{ XK_Delete, XK_ANY_MOD, "\033[P", -1, 0},
|
{ XK_Delete, XK_ANY_MOD, "\033[3~", -1, 0},
|
||||||
{ XK_Delete, XK_ANY_MOD, "\033[3~", +1, 0},
|
{ XK_Delete, XK_ANY_MOD, "\033[3~", +1, 0},
|
||||||
{ XK_BackSpace, XK_NO_MOD, "\177", 0, 0},
|
{ XK_BackSpace, XK_NO_MOD, "\177", 0, 0},
|
||||||
{ XK_BackSpace, Mod1Mask, "\033\177", 0, 0},
|
{ XK_BackSpace, Mod1Mask, "\033\177", 0, 0},
|
||||||
|
@ -94,7 +94,7 @@ char *termname = "st-256color";
|
|||||||
unsigned int tabspaces = 8;
|
unsigned int tabspaces = 8;
|
||||||
|
|
||||||
/* bg opacity */
|
/* bg opacity */
|
||||||
float alpha = 0.9;
|
float alpha = 0.95;
|
||||||
|
|
||||||
/* Terminal colors (16 first used in escape sequence) */
|
/* Terminal colors (16 first used in escape sequence) */
|
||||||
static const char *colorname[] = {
|
static const char *colorname[] = {
|
||||||
@ -177,6 +177,8 @@ static uint forcemousemod = ShiftMask;
|
|||||||
*/
|
*/
|
||||||
static MouseShortcut mshortcuts[] = {
|
static MouseShortcut mshortcuts[] = {
|
||||||
/* mask button function argument release */
|
/* mask button function argument release */
|
||||||
|
{ ShiftMask, Button4, kscrollup, {.i = 1} },
|
||||||
|
{ ShiftMask, Button5, kscrolldown, {.i = 1} },
|
||||||
{ XK_ANY_MOD, Button2, selpaste, {.i = 0}, 1 },
|
{ XK_ANY_MOD, Button2, selpaste, {.i = 0}, 1 },
|
||||||
{ ShiftMask, Button4, ttysend, {.s = "\033[5;2~"} },
|
{ ShiftMask, Button4, ttysend, {.s = "\033[5;2~"} },
|
||||||
{ XK_ANY_MOD, Button4, ttysend, {.s = "\031"} },
|
{ XK_ANY_MOD, Button4, ttysend, {.s = "\031"} },
|
||||||
|
@ -283,7 +283,7 @@ static Key key[] = {
|
|||||||
{ XK_KP_Delete, ControlMask, "\033[3;5~", +1, 0},
|
{ XK_KP_Delete, ControlMask, "\033[3;5~", +1, 0},
|
||||||
{ XK_KP_Delete, ShiftMask, "\033[2K", -1, 0},
|
{ XK_KP_Delete, ShiftMask, "\033[2K", -1, 0},
|
||||||
{ XK_KP_Delete, ShiftMask, "\033[3;2~", +1, 0},
|
{ XK_KP_Delete, ShiftMask, "\033[3;2~", +1, 0},
|
||||||
{ XK_KP_Delete, XK_ANY_MOD, "\033[P", -1, 0},
|
{ XK_KP_Delete, XK_ANY_MOD, "\033[3~", -1, 0},
|
||||||
{ XK_KP_Delete, XK_ANY_MOD, "\033[3~", +1, 0},
|
{ XK_KP_Delete, XK_ANY_MOD, "\033[3~", +1, 0},
|
||||||
{ XK_KP_Multiply, XK_ANY_MOD, "\033Oj", +2, 0},
|
{ XK_KP_Multiply, XK_ANY_MOD, "\033Oj", +2, 0},
|
||||||
{ XK_KP_Add, XK_ANY_MOD, "\033Ok", +2, 0},
|
{ XK_KP_Add, XK_ANY_MOD, "\033Ok", +2, 0},
|
||||||
@ -351,7 +351,7 @@ static Key key[] = {
|
|||||||
{ XK_Delete, ControlMask, "\033[3;5~", +1, 0},
|
{ XK_Delete, ControlMask, "\033[3;5~", +1, 0},
|
||||||
{ XK_Delete, ShiftMask, "\033[2K", -1, 0},
|
{ XK_Delete, ShiftMask, "\033[2K", -1, 0},
|
||||||
{ XK_Delete, ShiftMask, "\033[3;2~", +1, 0},
|
{ XK_Delete, ShiftMask, "\033[3;2~", +1, 0},
|
||||||
{ XK_Delete, XK_ANY_MOD, "\033[P", -1, 0},
|
{ XK_Delete, XK_ANY_MOD, "\033[3~", -1, 0},
|
||||||
{ XK_Delete, XK_ANY_MOD, "\033[3~", +1, 0},
|
{ XK_Delete, XK_ANY_MOD, "\033[3~", +1, 0},
|
||||||
{ XK_BackSpace, XK_NO_MOD, "\177", 0, 0},
|
{ XK_BackSpace, XK_NO_MOD, "\177", 0, 0},
|
||||||
{ XK_BackSpace, Mod1Mask, "\033\177", 0, 0},
|
{ XK_BackSpace, Mod1Mask, "\033\177", 0, 0},
|
||||||
|
20
st-0.8.4/st-delkey-20201112-4ef0cbd.diff
Normal file
20
st-0.8.4/st-delkey-20201112-4ef0cbd.diff
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
--- config.def.h.orig 2020-11-12 20:23:48.867954750 +0100
|
||||||
|
+++ config.def.h 2020-11-12 20:21:15.055922720 +0100
|
||||||
|
@@ -276,7 +276,7 @@
|
||||||
|
{ XK_KP_Delete, ControlMask, "\033[3;5~", +1, 0},
|
||||||
|
{ XK_KP_Delete, ShiftMask, "\033[2K", -1, 0},
|
||||||
|
{ XK_KP_Delete, ShiftMask, "\033[3;2~", +1, 0},
|
||||||
|
- { XK_KP_Delete, XK_ANY_MOD, "\033[P", -1, 0},
|
||||||
|
+ { XK_KP_Delete, XK_ANY_MOD, "\033[3~", -1, 0},
|
||||||
|
{ XK_KP_Delete, XK_ANY_MOD, "\033[3~", +1, 0},
|
||||||
|
{ XK_KP_Multiply, XK_ANY_MOD, "\033Oj", +2, 0},
|
||||||
|
{ XK_KP_Add, XK_ANY_MOD, "\033Ok", +2, 0},
|
||||||
|
@@ -344,7 +344,7 @@
|
||||||
|
{ XK_Delete, ControlMask, "\033[3;5~", +1, 0},
|
||||||
|
{ XK_Delete, ShiftMask, "\033[2K", -1, 0},
|
||||||
|
{ XK_Delete, ShiftMask, "\033[3;2~", +1, 0},
|
||||||
|
- { XK_Delete, XK_ANY_MOD, "\033[P", -1, 0},
|
||||||
|
+ { XK_Delete, XK_ANY_MOD, "\033[3~", -1, 0},
|
||||||
|
{ XK_Delete, XK_ANY_MOD, "\033[3~", +1, 0},
|
||||||
|
{ XK_BackSpace, XK_NO_MOD, "\177", 0, 0},
|
||||||
|
{ XK_BackSpace, Mod1Mask, "\033\177", 0, 0},
|
Loading…
Reference in New Issue
Block a user