Disable startup notifications for volume control commands

This commit is contained in:
Sasha Bogdanov 2017-03-11 20:33:33 +03:00
parent 332075a603
commit fcb8ff3d86
1 changed files with 3 additions and 3 deletions

View File

@ -23,11 +23,11 @@ volume_widget = wibox.widget {
]]
volume_widget:connect_signal("button::press", function(_,_,_,button)
if (button == 4) then
awful.spawn("amixer -D pulse sset Master 5%+")
awful.spawn("amixer -D pulse sset Master 5%+", false)
elseif (button == 5) then
awful.spawn("amixer -D pulse sset Master 5%-")
awful.spawn("amixer -D pulse sset Master 5%-", false)
elseif (button == 1) then
awful.spawn("amixer -D pulse sset Master toggle")
awful.spawn("amixer -D pulse sset Master toggle", false)
end
end)