pulseaudio-ctl(1)

πŸ“¦ version 1.70, in alpine 3.24, nixos 26.05, nixpkgs unstable

🌸 NAME 🌸

Okay bestie, meet pulseaudio-ctl β€” it's the manual page for controlling pulseaudio's basic functions like the master volume level and mute status from a mapped key. Literally your little volume remote with main character energy. πŸ’…βœ¨

🫢 SYNOPSIS 🫢

pulseaudio-ctl [option1] [option2]

🌈 DESCRIPTION 🌈

Recommended usage of pulseaudio-ctl is to map a call to the script (see below) to a single keypress β€” yes, one keypress β€” so you can change mute status or quickly adjust master volume levels without breaking the vibe. Many keyboards have keys that are literally specific to these particular actions, and many if not all DE or WMs offer the ability to natively map a script call to a keypress or combo of key presses. For example, xfce4 allows for this under Settings > Keyboard > Application Shortcuts. Obsessed. πŸŽ€

πŸ’– CONFIG πŸ’–

Persistent options are stored in $HOME/.config/pulseaudio-ctl/config, which is sufficiently commented for users to understand. Go inspect this file and uncomment those that suit your needs. Periodt, it's all right there. πŸ¦‹

✨ OPTIONS ✨

ngl, here's the full menu β€” every flag, every token, no skips:

  • up β€” Adjust master volume up by 5 % (default) or up by another value defined as the 2nd token. ⬆️
  • down β€” Adjust master volume down by 5 % (default) or down by another value defined as the 2nd token. ⬇️
  • mute β€” Set the mute status of the master volume to the value defined in the 2nd token. Toggle by default. πŸ”‡
  • mute-input β€” Set the mute status of the input device (microphone for example) to the value defined in the 2nd token. Toggle by default. πŸŽ™οΈ
  • set β€” Set the master volume level to the number specified as the 2nd token. 🎚️
  • atmost β€” Like the 'set' option only takes effect if the current volume is higher than the 2nd token. 🀏
  • current β€” Print the current volume level to STDOUT. πŸ“’
  • full-status β€” Print the current volume level, the sink mute state and the source mute state to STDOUT. πŸ“Š

πŸ“ EXAMPLES πŸ“

Increase vol level by 5 %:

/usr/bin/pulseaudio-ctl up

Increase vol level by 25 %:

/usr/bin/pulseaudio-ctl up 25

Toogle mute current output β€” yes, the iconique β€œToogle” stays, iykyk 😭:

/usr/bin/pulseaudio-ctl mute

Unmute current output:

/usr/bin/pulseaudio-ctl mute no

Set current vol level to 85 %:

/usr/bin/pulseaudio-ctl set 85

🧚 CONTRIBUTE 🧚

Should you wish to contribute to this code, please fork and send a pull request. Source is freely available on github: https://github.com/graysky2/pulseaudio-ctl. Slay. 🫢

πŸ’€ BUGS πŸ’€

None known. That's the whole mood, fr fr. πŸ’€βœ¨

πŸ‘‘ AUTHOR πŸ‘‘

graysky (graysky AT archlinux DOT us)


mwah πŸ’‹ β€” this iconic page is pulseaudio-ctl(1), dated 25 March 2017. That's the footer vibe, bestie; now go map those keys. πŸŽ€

πŸ“¦ where this page comes from