You are not logged in.

#1 2018-10-02 20:26:55

SamBaqai94
Member
Registered: 2018-10-02
Posts: 2

how to assign pactl command on rc.lua

Hello,
I am trying to create a keybind for my volumes on awesome wm and i cant get to work for pulseaudio
here is the code:

awful.key({ altkey }, "Up",                                                                                                                                                         
412         function ()                                                                                                                                                                     
413                 os.execute(string.format("pactl -- set-sink-volume 0  +1", beautiful.volume.channel))                                                                                   
414             beautiful.volume.update()                                                                                                                                                   
415         end,                                                                                                                                                                             
416         {description = "volume up", group = "hotkeys"}),   

I have an idea for how to do it for amixer but cant find any google link for pulseaudio

Thank you
Sameed Baqai
PS I AM NEW TO AWESOME AND STILL LEARNING
smile

Last edited by SamBaqai94 (2018-10-02 20:27:18)

Offline

#2 2018-10-02 20:58:40

HalosGhost
Forum Fellow
From: Twin Cities, MN
Registered: 2012-06-22
Posts: 2,097
Website

Re: how to assign pactl command on rc.lua

Welcome to the BBS.

Please use code tags when posting code (and do not include line numbers).

More substantively, what is the error you are running into with this code? Also, note that you are using string.format() but have no format specifiers in that string.

All the best,

-HG

Offline

Board footer

Powered by FluxBB