I've added the concept of role to change only certain apps (like music or phone):
$ pulseaudio_toggle_default_sink -h
Usage:
pulseaudio_toggle_default_sink [OPTION] [ACTION]
Toggle your defaut sound output or change your music player from an output to another
Options
-h, --help: Show help
-o, --output <output index>: use a specific output
Actions
default: change default output (default action)
list: list detected inputs and outputs
reset: reset all active input to the default output
media <ROLE>: change <ROLE> input to another output
Roles
One of the strings video, music, game, event, phone, animation, production, a11y, test
Thanks to /u/abbidabbi for the idea, I have updated my script to handle media role.
Usage:
pulseaudio_toggle_default_sink [OPTION] [ACTION]
Toggle your defaut sound output or change your music player from an output to another
Options
-h, --help Show help
Actions
default: change default output (default action)
reset: reset all active input to the default output
media <ROLE>: change <ROLE> input to another output
Roles
One of the strings video, music, game, event, phone, animation, production, a11y, test
I use something similar to switch the default sink.
I've added the concept of role to change only certain apps (like music or phone):
https://bash-it.readthedocs.io/en/latest/themes-list/barbuk/#fonts-and-glyphs
You can use any Nerd font or patch your preferred font.
Thanks to /u/abbidabbi for the idea, I have updated my script to handle media role.
Yes exactly, it's my use case. I want all current audio to pass from my headphone to my DAC for example.
It's a quick hack to be honest.
Thanks for the hint about media.role, I will check how to update my script to only change a specific role:
I use a snippets manager that was born on archlinux forum and was since updated to include more features.
https://github.com/BarbUk/snippy
I have the same thing in bash that toggle the default sink. It's compatible with pipewire too.
Nice tool.
I tested it this morning and added it to my awesome config for futur use.
Nice ! Check also aur-publish-docker-action.
It is used for two packages that I publish to aur.
Yeah, I hesitated after reading the sidebar. Too late now :)
You're welcome :)
And use tlp to set the battery limit: https://wiki.archlinux.org/index.php/TLP
Use the dkms version https://aur.archlinux.org/packages/acpi_call-dkms/
Neat, thanks
Nice. Do you have your script somewhere on github ? I've made a backlight script some times ago, but yours looks better :)
You have to clone the repo and build with makepkg 01_freetype2-iu:
yep, the problem with fontconfig is with the tests.
FYI, i have the same error with the official package from: https://git.archlinux.org/svntogit/packages.git/tree/trunk?h=packages/fontconfig
I have updated and build without issue the pkgbuild in 01_freetype2-iu and 03_cairo-iu.
I see the test error in fontconfig, checking now for a solution.
I have updated the pkgbuild for freetype and Cairo if you want to build them:
https://github.com/BarbUk/fontconfig-ultimate
I have updated the pkgbuild for freetype and Cairo of you want to build them yourself.
https://github.com/BarbUk/fontconfig-ultimate
Nice, i also do that for gtk, vim, sublime text, termite and dmenu. I just use sed in a function. The file
End of this list.
Back to top