aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRomain Gonçalves <me@rgoncalves.se>2022-07-03 19:00:29 +0200
committerRomain Gonçalves <me@rgoncalves.se>2022-07-03 19:00:29 +0200
commita314fa202c07b63a2689c5e1baab0e180e211a27 (patch)
tree447e29bb947e4aa9ac7a6a851bab4cec82acfffd
parent4a2b2fbe73bfdc93a1e9f48ae15101ecebad5765 (diff)
downloaddwm-a314fa202c07b63a2689c5e1baab0e180e211a27.tar.gz
config.h: add x11 shortcut on function keys
-rw-r--r--config.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/config.h b/config.h
index d693400..10c5711 100644
--- a/config.h
+++ b/config.h
@@ -69,6 +69,8 @@ static const char *audio_prev_cmd[] = { ".bin/ag-audio", "prev", NULL };
static const char *audio_play_cmd[] = { ".bin/ag-audio", "play", NULL };
static const char *light_increase_cmd[] = { ".bin/ag-light", "inc", NULL };
static const char *light_decrease_cmd[] = { ".bin/ag-light", "dec", NULL };
+static const char *xorg_config_cmd[] = { ".bin/x11-config", NULL };
+static const char *xorg_screen_cmd[] = { ".bin/x11-screen", NULL };
static const char *lock_suspend_cmd[] = { ".bin/ag-lock", "-s", NULL };
static const char *lock_cmd[] = { ".bin/ag-lock", NULL };
@@ -111,10 +113,13 @@ static Key keys[] = {
{ MODKEY|ShiftMask, XK_Right, spawn, {.v = audio_next_cmd } },
{ MODKEY|ShiftMask, XK_Left, spawn, {.v = audio_prev_cmd } },
/* commands */
+ { MODKEY|ShiftMask, XK_F8, spawn, {.v = xorg_config_cmd } },
+ { MODKEY|ShiftMask, XK_F9, spawn, {.v = xorg_screen_cmd } },
{ MODKEY|ShiftMask, XK_F12, spawn, {.v = lock_suspend_cmd } },
{ MODKEY, XK_F12, spawn, {.v = lock_cmd } },
{ MODKEY, XK_Return, spawn, {.v = termcmd } },
{ MODKEY, XK_d, spawn, {.v = dmenucmd } },
+ /* tags */
TAGKEYS( XK_1, 0)
TAGKEYS( XK_2, 1)
TAGKEYS( XK_3, 2)
remember that computers suck.