diff options
| author | pml68 <tutorialmester@gmail.com> | 2024-02-04 12:27:05 +0100 |
|---|---|---|
| committer | pml68 <tutorialmester@gmail.com> | 2024-02-04 12:27:05 +0100 |
| commit | f554a6fb619c6ac76014e98ed1637b2eb979313e (patch) | |
| tree | 8c735fd8e8b7a2967e51647bf74d9174e53cff46 /dwm/config.def.h | |
| parent | feat: add screenshot (diff) | |
| download | suckless-setup-f554a6fb619c6ac76014e98ed1637b2eb979313e.tar.gz | |
feat: add adb controls for media
Diffstat (limited to '')
| -rw-r--r-- | dwm/config.def.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/dwm/config.def.h b/dwm/config.def.h index 6b8706c..5f3ceaf 100644 --- a/dwm/config.def.h +++ b/dwm/config.def.h @@ -78,8 +78,15 @@ static const char *dmenucmd[] = { "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL}; static const char *termcmd[] = {"st", NULL}; static const char *prtscrcmd[] = {"flameshot", "gui", NULL}; +static const char *kblayoutcmd[] = {"setxkbmap", "hu", NULL}; static const char *firefoxcmd[] = {"firefox", NULL}; static const char *discordcmd[] = {"discord", NULL}; +static const char *playpausecmd[] = {"adb", "shell", "input", + "keyevent", "85", NULL}; +static const char *nextcmd[] = {"adb", "shell", "input", + "keyevent", "87", NULL}; +static const char *previouscmd[] = {"adb", "shell", "input", + "keyevent", "88", NULL}; static const Key keys[] = { /* modifier key function argument */ @@ -110,8 +117,12 @@ static const Key keys[] = { TAGKEYS(XK_5, 4) TAGKEYS(XK_6, 5) TAGKEYS(XK_7, 6) TAGKEYS(XK_8, 7) TAGKEYS(XK_9, 8){MODKEY | ShiftMask, XK_q, quit, {0}}, {0, XK_Print, spawn, {.v = prtscrcmd}}, + {MODKEY | ShiftMask, XK_h, spawn, {.v = kblayoutcmd}}, {MODKEY | ShiftMask, XK_f, spawn, {.v = firefoxcmd}}, {MODKEY | ShiftMask, XK_d, spawn, {.v = discordcmd}}, + {MODKEY | ShiftMask, XK_s, spawn, {.v = playpausecmd}}, + {MODKEY | ShiftMask, XK_n, spawn, {.v = nextcmd}}, + {MODKEY | ShiftMask, XK_p, spawn, {.v = previouscmd}}, }; /* button definitions */ |
