Skip to content

Instantly share code, notes, and snippets.

@enrialonso
Last active October 29, 2022 23:51
Show Gist options
  • Save enrialonso/f878f91406ff336acd3ba249c9374c4f to your computer and use it in GitHub Desktop.
Save enrialonso/f878f91406ff336acd3ba249c9374c4f to your computer and use it in GitHub Desktop.
Auto restore custom settings for alsamixer every reboot

Edit your alsamixer settings

alsamixer

Store the changes on a file

alsactl --file /home/<<USER>>/.config/asound.state store

Create autostart restore config for alsamixer

nano /home/<<USER>>/.config/autostart/alsarestore.desktop

Content of this file

[Desktop Entry]
Type=Application
Terminal=false
Name=alsarestore
Exec=alsactl --file /home/<<USER>>/.config/asound.state restore

And reboot to test the need settings...

Source: link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment