Hotkeys - dwm - dynamic window manager HTML git clone https://git.parazyd.org/dwm DIR Log DIR Files DIR Refs DIR README DIR LICENSE --- DIR commit d828c0def978069ab512aee073135fd3f79f02cf DIR parent 981ba3e87611cd5d2bd1673b20fcd0bcf2ee9553 HTML Author: parazyd <parazyd@dyne.org> Date: Sun, 24 Apr 2022 09:59:24 +0200 Hotkeys Diffstat: M config.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+), 0 deletions(-) --- DIR diff --git a/config.h b/config.h @@ -69,10 +69,30 @@ 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 *slockcmd[] = { "slock", NULL }; + +static const char *dmenuraisecmd[] = { "dmenuraise", NULL }; +static const char *dmenupasscmd[] = { "dmenupass", NULL }; +static const char *glyphcmd[] = { "glyph", NULL }; + +static const char *rickcmd[] = { "mpv", "--no-video", "never_gonna_give_you_up.mp3", NULL }; + static Key keys[] = { /* modifier key function argument */ { MODKEY, XK_p, spawn, {.v = dmenucmd } }, { 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_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_b, togglebar, {0} }, { MODKEY, XK_j, focusstack, {.i = +1 } },