Use pactl for volume control and change backlight steps
This commit is contained in:
2
PKGBUILD
2
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')
|
||||
|
||||
11
config.h
11
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 */
|
||||
|
||||
Reference in New Issue
Block a user