added multimedia keys
This commit is contained in:
parent
b088f0e1a4
commit
37bbf85de5
13
config.def.h
13
config.def.h
@ -60,6 +60,13 @@ static const Layout layouts[] = {
|
|||||||
static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */
|
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 *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL };
|
||||||
static const char *termcmd[] = { "kitty", NULL };
|
static const char *termcmd[] = { "kitty", NULL };
|
||||||
|
/* multimedia */
|
||||||
|
static const char *volup[] = { "/home/murat/scripts/sesac.sh", NULL };
|
||||||
|
static const char *voldown[] = { "/home/murat/scripts/seskis.sh", NULL };
|
||||||
|
static const char *volmute[] = { "/home/murat/scripts/sessustur.sh", NULL };
|
||||||
|
static const char *next[] = { "/home/murat/scripts/sonraki.sh", NULL };
|
||||||
|
static const char *play[] = { "/home/murat/scripts/durdurbaslat.sh", NULL };
|
||||||
|
static const char *prev[] = { "/home/murat/scripts/onceki.sh", NULL };
|
||||||
/* Custom Commands */
|
/* Custom Commands */
|
||||||
static const char *rofi[] = { "/home/murat/.config/rofi/launchers/type-1/launcher.sh", NULL };
|
static const char *rofi[] = { "/home/murat/.config/rofi/launchers/type-1/launcher.sh", NULL };
|
||||||
static const char *zenbrowser[] = { "zen-browser", NULL };
|
static const char *zenbrowser[] = { "zen-browser", NULL };
|
||||||
@ -95,6 +102,12 @@ static const 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 } },
|
||||||
|
{ 0, XF86XK_AudioRaiseVolume, spawn, {.v = volup } },
|
||||||
|
{ 0, XF86XK_AudioLowerVolume, spawn, {.v = voldown } },
|
||||||
|
{ 0, XF86XK_AudioMute, spawn, {.v = volmute } },
|
||||||
|
{ 0, XF86XK_AudioNext, spawn, {.v = next } },
|
||||||
|
{ 0, XF86XK_AudioPlay, spawn, {.v = play } },
|
||||||
|
{ 0, XF86XK_AudioPrev, spawn, {.v = prev } },
|
||||||
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
dwm.c
1
dwm.c
@ -36,6 +36,7 @@
|
|||||||
#include <X11/Xlib.h>
|
#include <X11/Xlib.h>
|
||||||
#include <X11/Xproto.h>
|
#include <X11/Xproto.h>
|
||||||
#include <X11/Xutil.h>
|
#include <X11/Xutil.h>
|
||||||
|
#include <X11/XF86keysym.h> /* multimedya tuşları için */
|
||||||
#ifdef XINERAMA
|
#ifdef XINERAMA
|
||||||
#include <X11/extensions/Xinerama.h>
|
#include <X11/extensions/Xinerama.h>
|
||||||
#endif /* XINERAMA */
|
#endif /* XINERAMA */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user