diff options
| author | Nikita Langer <nikitalanger@icloud.com> | 2026-04-10 18:10:00 +0200 |
|---|---|---|
| committer | Nikita Langer <nikitalanger@icloud.com> | 2026-04-10 18:10:00 +0200 |
| commit | 960d0661f6ed5ab6fd9c371c53a5f5b137864da1 (patch) | |
| tree | 888e78125707c56c4cf3ad50256e99be753dd86d /config.def.h | |
| parent | 16139cc61d8ea1d6e222345f0f1072411c545d66 (diff) | |
| download | dwl-960d0661f6ed5ab6fd9c371c53a5f5b137864da1.tar.gz dwl-960d0661f6ed5ab6fd9c371c53a5f5b137864da1.tar.bz2 dwl-960d0661f6ed5ab6fd9c371c53a5f5b137864da1.tar.xz dwl-960d0661f6ed5ab6fd9c371c53a5f5b137864da1.zip | |
Diffstat (limited to 'config.def.h')
| -rw-r--r-- | config.def.h | 25 |
1 files changed, 22 insertions, 3 deletions
diff --git a/config.def.h b/config.def.h index 851abbb..0777892 100644 --- a/config.def.h +++ b/config.def.h @@ -176,8 +176,8 @@ static const int cursor_timeout = 5; #define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } } /* commands */ -// static const char *termcmd[] = { "foot", NULL }; -static const char *termcmd[] = { "kitty", NULL }; +static const char *termcmd[] = { "foot", NULL }; +// static const char *termcmd[] = { "kitty", NULL }; static const char *menucmd[] = { "wmenu-run", "-f", wmenufont, NULL }; static const char *firefox[] = { "firefox", NULL }; static const char *steam[] = { "steam", NULL }; @@ -193,6 +193,11 @@ static const char *minecraft[] = { "prismlauncher", NULL }; static const char *lockcmd[] = { "swaylock", NULL }; static const char *brighter[] = { "/usr/local/bin/dwm-scripts/bright.sh", "5", NULL }; static const char *dimmer[] = { "/usr/local/bin/dwm-scripts/bright.sh", "-5", NULL }; +static const char *playpause[] = { "playerctl", "play-pause", NULL }; +static const char *nexttrack[] = { "playerctl", "next", NULL }; +static const char *prevtrack[] = { "playerctl", "previous", NULL }; +static const char *stoptrack[] = { "playerctl", "stop", NULL }; +static const char *mutemic[] = { "pactl", "set-source-mute", "@DEFAULT_SOURCE@", "toggle", NULL }; static const Key keys[] = { /* Note that Shift changes certain key codes: 2 -> at, etc. */ @@ -219,7 +224,21 @@ static const Key keys[] = { { MODKEY, XKB_KEY_l, setmfact, {.f = +0.05f} }, { MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_Return, zoom, {0} }, { MODKEY, XKB_KEY_Tab, view, {0} }, - { MODKEY, XKB_KEY_x, movecenter, {0} }, + { MODKEY, XKB_KEY_x, movecenter, {0} }, + /* Media Control Keys */ + { 0, XKB_KEY_XF86AudioPlay, spawn, {.v = playpause} }, + { 0, XKB_KEY_XF86AudioNext, spawn, {.v = nexttrack} }, + { 0, XKB_KEY_XF86AudioPrev, spawn, {.v = prevtrack} }, + { 0, XKB_KEY_XF86AudioStop, spawn, {.v = stoptrack} }, + { 0, XKB_KEY_XF86AudioRaiseVolume, spawn, {.v = upvol} }, + { 0, XKB_KEY_XF86AudioLowerVolume, spawn, {.v = downvol} }, + { 0, XKB_KEY_XF86AudioMute, spawn, {.v = mutevol} }, + { 0, XKB_KEY_XF86AudioMicMute, spawn, {.v = mutemic} }, + { 0, XKB_KEY_XF86MonBrightnessUp, spawn, {.v = brighter} }, + { 0, XKB_KEY_XF86MonBrightnessDown, spawn, {.v = dimmer } }, + { MODKEY, XKB_KEY_F11, spawn, {.v = dimmer } }, + { MODKEY, XKB_KEY_F12, spawn, {.v = brighter } }, + /* Vanity gaps */ { MODKEY|WLR_MODIFIER_CTRL, XKB_KEY_h, incgaps, {.i = +1 } }, |
