From 6c2ccc75a207bd8310b7632d73353c696e80ee50 Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Mon, 11 Sep 2023 13:34:18 +0400 Subject: [PATCH] Revert "audio" This reverts commit 0041c14bfad70003fb6bef2728d27d5a3a79134d. --- config/dwm/config.def.h | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/config/dwm/config.def.h b/config/dwm/config.def.h index 4630736c..fe2419db 100644 --- a/config/dwm/config.def.h +++ b/config/dwm/config.def.h @@ -1,8 +1,5 @@ /* See LICENSE file for copyright and license details. */ -// audio/brightness keys -#include - /* appearance */ static const unsigned int borderpx = 1; /* border pixel of windows */ static const unsigned int snap = 32; /* snap pixel */ @@ -79,8 +76,6 @@ static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", NULL }; static const char *roficmd[] = { "rofi", "-show-icons", "-show", "drun", NULL}; static const char *termcmd[] = { "kitty", NULL }; -static const char *brightness[2][] = {{"xbacklight", "-inc", "5%", NULL},{"xbacklight", "-dec", "5%", NULL}}; -static const char *audio[3][] = {{"pactl", "set-sink-volume", "0", "+5%", NULL},{"pactl", "set-sink-volume", "0", "-5%", NULL},{"pactl", "set-sink-mute", "0", "toggle", NULL}}; static const Key keys[] = { /* modifier key function argument */ @@ -107,13 +102,6 @@ static const Key keys[] = { { MODKEY, XK_period, focusmon, {.i = +1 } }, { MODKEY|ShiftMask, XK_comma, tagmon, {.i = -1 } }, { MODKEY|ShiftMask, XK_period, tagmon, {.i = +1 } }, - // brightness - {0, XF86XK_MonBrightnessUp, spawn, {.v=brightness[0]}, - {0, XF86XK_MonBrightnessDown, spawn, {.v=brightness[1]}, - // audio - {0, XF86XK_MonRaiseVolume, spawn, {.v=audio[0]}, - {0, XF86XK_MonLowerVolume, spawn, {.v=audio[1]}, - {0, XF86XK_MonAudioMute, spawn, {.v=audio[2]}, TAGKEYS( XK_1, 0) TAGKEYS( XK_2, 1) TAGKEYS( XK_3, 2)