smol changes - dwm - dynamic window manager HTML git clone https://git.parazyd.org/dwm DIR Log DIR Files DIR Refs DIR README DIR LICENSE --- DIR commit 8f6b3c299e84a2682264118ddd01b18ffb538f06 DIR parent a8ebe5f1b8dbbfb40840229f0c8467489f766094 HTML Author: parazyd <parazyd@dyne.org> Date: Fri, 2 Dec 2022 19:24:50 +0100 smol changes Diffstat: M config.h | 19 +++++++------------ M dwm.c | 6 +++--- M movestack.c | 3 +-- 3 files changed, 11 insertions(+), 17 deletions(-) --- DIR diff --git a/config.h b/config.h @@ -69,43 +69,38 @@ static const Layout layouts[] = { /* commands */ 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_cyan, "-sf", col_gray4, NULL }; -static const char *thingcmd[] = { "thinglaunch", NULL }; static const char *termcmd[] = { "st", NULL }; static const char scratchpadname[] = "scratchpad"; static const char *scratchpadcmd[] = { "st", "-t", scratchpadname, "-g", "120x34", NULL }; -static const char *uskeycmd[] = { "setxkbmap", "-layout", "us", "-option", "caps:escape", NULL }; -static const char *rskeycmd[] = { "setxkbmap", "-layout", "rs", "-option", "caps:escape", NULL }; -static const char *hrkeycmd[] = { "setxkbmap", "-layout", "hr", "-option", "caps:escape", NULL }; +static const char *uskeycmd[] = { "setxkbmap", "-layout", "us", NULL }; +static const char *rskeycmd[] = { "setxkbmap", "-layout", "rs", NULL }; +static const char *hrkeycmd[] = { "setxkbmap", "-layout", "hr", NULL }; -static const char *slockcmd[] = { "slock", NULL }; - -static const char *dmenuraisecmd[] = { "dmenuraise", NULL }; static const char *dmenupasscmd[] = { "dmenupass", NULL }; -static const char *glyphcmd[] = { "glyph", NULL }; +static const char *glyphcmd[] = { "splatmoji", "copy", NULL }; static const char *mathglyphcmd[] = { "mathglyph", NULL }; static const char *texglyphcmd[] = { "texglyph", NULL }; static const char *dunstclosecmd[] = { "dunstctl", "close", NULL }; -static const char *rickcmd[] = { "mpv", "--no-video", "never_gonna_give_you_up.mp3", NULL }; +static const char *rickcmd[] = { "mpv", "--no-video", "mu/never_gonna_give_you_up.mp3", NULL }; +static const char *thinglaunch[] = { "thinglaunch", NULL }; #include "focusurgent.c" #include "movestack.c" static const Key keys[] = { /* modifier key function argument */ + { MODKEY, XK_p, spawn, {.v = thinglaunch } }, { MODKEY|ShiftMask, XK_p, spawn, {.v = dmenucmd } }, - { MODKEY, XK_p, spawn, {.v = thingcmd } }, { MODKEY, XK_Return, spawn, {.v = termcmd } }, { MODKEY, XK_F1, spawn, {.v = uskeycmd } }, { MODKEY, XK_F2, spawn, {.v = rskeycmd } }, { MODKEY, XK_F3, spawn, {.v = hrkeycmd } }, - { MODKEY, XK_F7, spawn, {.v = slockcmd } }, { MODKEY, XK_F8, spawn, {.v = glyphcmd } }, { MODKEY, XK_F9, spawn, {.v = mathglyphcmd } }, { MODKEY|ShiftMask, XK_F9, spawn, {.v = texglyphcmd } }, { MODKEY, XK_F10, spawn, {.v = dmenupasscmd } }, - { MODKEY, XK_Print, spawn, {.v = dmenuraisecmd } }, { MODKEY|ShiftMask, XK_F12, spawn, {.v = rickcmd } }, { MODKEY, XK_grave, togglescratch, {.v = scratchpadcmd } }, { MODKEY, XK_space, spawn, {.v = dunstclosecmd } }, DIR diff --git a/dwm.c b/dwm.c @@ -196,7 +196,7 @@ static void focusstack(const Arg *arg); static Atom getatomprop(Client *c, Atom prop); static int getrootptr(int *x, int *y); static long getstate(Window w); -static unsigned int getsystraywidth(); +static unsigned int getsystraywidth(void); static int gettextprop(Window w, Atom atom, char *text, unsigned int size); static void grabbuttons(Client *c, int focused); static void grabkeys(void); @@ -1066,7 +1066,7 @@ getstate(Window w) } unsigned int -getsystraywidth() +getsystraywidth(void) { unsigned int w = 0; Client *i; @@ -2249,7 +2249,7 @@ updatebarpos(Monitor *m) } void -updateclientlist() +updateclientlist(void) { Client *c; Monitor *m; DIR diff --git a/movestack.c b/movestack.c @@ -45,4 +45,4 @@ movestack(const Arg *arg) { arrange(selmon); } -} -\ No newline at end of file +}