LukeSmithxyz / dwm

Luke's build of dwm
MIT License
800 stars 532 forks source link

set volume with `wpctl` instead of `pamixer` #219

Closed kj-cxa closed 1 year ago

kj-cxa commented 1 year ago

Untested in LARBS, but if it works there, pamixer can be removed from it's dependencies wpctl allows boosted volumes by default, use the -l flag to limit volume (-l 1 would cap volume at 100%, -l 0.5 50%, etc. See $ wpctl set-volume -h)

warthog18 commented 1 year ago

Untested in LARBS, but if it works there, pamixer can be removed from it's dependencies wpctl allows boosted volumes by default, use the -l flag to limit volume (-l 1 would cap volume at 100%, -l 0.5 50%, etc. See $ wpctl set-volume -h)

Hey guys, we are having issues here caused by the passage from pamixer to wpctl.. System: Thinkpad x220 with Artix linux installed 2 years ago. Used to run DWM 6.2. Upgraded to DWM 6.4 with the result that the sound system is not working. wpctl Audio Sink is empty, so the hotkeys and bar buttons don't work. Tried to create another user from scratch using LARBS on the same system. Same result. The audio system is not working with wireplumber. In order to make it to work, you need to substitute in config.h of dwm every string from wpctl to pamixer commands. Same in sb-volume. Still, the system doesn't recognize automatically the status of the volume when a headphone is inserted... Anyone can reproduce this? Thanks!

warthog18 commented 1 year ago

Still, the system doesn't recognize automatically the status of the volume when a headphone is inserted... Anyone can reproduce this? Thanks!

Solved! Just needed to install pipewire-audio package which was missing in LARBS installation...