diff --git a/PKGBUILD b/PKGBUILD index 5ef2e2e..ed7e574 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -19,7 +19,7 @@ source=(http://dl.suckless.org/dwm/dwm-$pkgver.tar.gz 0001-add-support-for-_NET_SUPPORTING_WM_CHECK.patch 0002-add-support-for-columns-layout.patch) md5sums=('f0b6b1093b7207f89c2a90b848c008ec' - '07659aac8becb4c40cb5a43e82a4acfb' + '30f60b9084afba41217e6e279250693b' '939f403a71b6e85261d09fc3412269ee' '2491115ff8327a4526a3361228071bc2' '33569a6627811e3de3185753a23db5f8') diff --git a/config.h b/config.h index 5ce76bc..be4ded6 100644 --- a/config.h +++ b/config.h @@ -52,11 +52,12 @@ static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, static const char *termcmd[] = { "st", NULL }; static const char *lockcmd[] = { "physlock", "-m", NULL }; static const char *scrot[] = { "scrot", "/home/alex/Pictures/Screenshots/%Y-%m-%d-%H%M%S_$wx$h.png", NULL }; -static const char *brightnessup[] = { "xbacklight", "+1", NULL }; -static const char *brightnessdown[] = { "xbacklight", "-1", NULL }; -static const char *voldown[] = { "amixer", "sset", "'Master'", "3%-", "-q", NULL }; -static const char *volup[] = { "amixer", "sset", "'Master'", "3%+", "-q", NULL }; -static const char *togglemute[] = { "amixer", "sset", "'Master'", "toggle", "-q", NULL }; +static const char *brightnessup[] = { "xbacklight", "+5", NULL }; +static const char *brightnessdown[] = { "xbacklight", "-5", NULL }; +/* https://askubuntu.com/questions/97936/terminal-command-to-set-audio-volume/1086235#1086235 */ +static const char *voldown[] = { "pactl", "set-sink-volume", "@DEFAULT_SINK@", "-5%", NULL }; +static const char *volup[] = { "pactl", "set-sink-volume", "@DEFAULT_SINK@", "+5%", NULL }; +static const char *togglemute[] = { "pactl", "set-sink-mute", "@DEFAULT_SINK@", "toggle", NULL }; static Key keys[] = { /* modifier key function argument */