Revert "audio"

This reverts commit 0041c14bfa.
This commit is contained in:
Sakooooo 2023-09-11 13:34:18 +04:00
parent 94b111e24f
commit 6c2ccc75a2
Signed by: sako
GPG key ID: 3FD715D87D7725E0

View file

@ -1,8 +1,5 @@
/* See LICENSE file for copyright and license details. */
// audio/brightness keys
#include <X11/XF86keysym.h>
/* 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)