Skip to content

Instantly share code, notes, and snippets.

@theodric
Created February 1, 2026 23:59
Show Gist options
  • Select an option

  • Save theodric/0fc0a3a6e472b178332fd53c3bfdee13 to your computer and use it in GitHub Desktop.

Select an option

Save theodric/0fc0a3a6e472b178332fd53c3bfdee13 to your computer and use it in GitHub Desktop.
Mute speakers on login (KDE)
<mute-speakers.sh.desktop>
`
[Desktop Entry]
Exec=/path/to/mute-speakers.sh
Icon=application-x-shellscript
Name=mute-speakers.sh
Type=Application
X-KDE-AutostartScript=true
`
<mute-speakers.sh>
`
#!/bin/bash
pactl set-sink-mute @DEFAULT_SINK@ 1
wpctl set-mute @DEFAULT_AUDIO_SINK@ 1
amixer set Master mute
`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment