mirror of
https://github.com/mr0xb/dotfiles_chezmoi.git
synced 2026-08-27 19:34:57 -04:00
initial commit
This commit is contained in:
commit
f1374f54c4
46 changed files with 4121 additions and 0 deletions
20
dot_local/bin/executable_fedora-reset-audio
Normal file
20
dot_local/bin/executable_fedora-reset-audio
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
#!/usr/bin/env bash
|
||||
set -Eeuo pipefail
|
||||
|
||||
usage() {
|
||||
cat <<'USAGE'
|
||||
Usage: fedora-reset-audio
|
||||
|
||||
Restart the common Fedora Workstation audio user services:
|
||||
pipewire, pipewire-pulse, wireplumber
|
||||
|
||||
Useful when Bluetooth/audio devices disappear or sound gets weird.
|
||||
USAGE
|
||||
}
|
||||
|
||||
[[ "${1:-}" == "-h" || "${1:-}" == "--help" ]] && { usage; exit 0; }
|
||||
|
||||
printf '\nRestarting audio user services...\n'
|
||||
systemctl --user restart pipewire pipewire-pulse wireplumber
|
||||
printf '\nStatus:\n'
|
||||
systemctl --user --no-pager --full status pipewire pipewire-pulse wireplumber || true
|
||||
Loading…
Reference in a new issue