Benutzer-Werkzeuge

Webseiten-Werkzeuge


audio_ausgänge_umschalten

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen RevisionVorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
audio_ausgänge_umschalten [2026/02/23 18:35] – [5.3 Bluetooth] ktt73audio_ausgänge_umschalten [2026/02/23 18:57] (aktuell) – [PipeWire Audio-Umschaltung unter GuideOS] ktt73
Zeile 1: Zeile 1:
 ====== PipeWire Audio-Umschaltung unter GuideOS ====== ====== PipeWire Audio-Umschaltung unter GuideOS ======
- +<block round box 70%> 
-Mit diesen Scripten kann man die Audioausgänge mit nur einem Mausklick in der Taskleiste umschalten. Ein öffnen des Audiomenüs ist nicht notwendig.+Die Skripte schalten den Standard-Audioausgang per Klick zwischen Kopfhörer, Lautsprecher/Boxen und/oder Bluetooth-Headset um – über pactl direkt auf PipeWire-Ebene. 
 +</block>
  
 ===== Voraussetzungen ===== ===== Voraussetzungen =====
 +<block round box 70%>
 GuideOS mit Cinnamon-Desktop läuft GuideOS mit Cinnamon-Desktop läuft
  
Zeile 10: Zeile 11:
  
 ''pactl'' ist verfügbar (Paket ''libpulse0'' vorhanden) ''pactl'' ist verfügbar (Paket ''libpulse0'' vorhanden)
 +</block>
 +===== Schritt 1: Sink-IDs und Ports ermitteln =====
  
-===== Schritt 1: Sink-IDs und Ports ermitteln =====+<block round box 70%>
 <code bash> <code bash>
 pactl list short sinks pactl list short sinks
 pactl list sinks | grep -E "(Sink #|Ports:|Active Port)" pactl list sinks | grep -E "(Sink #|Ports:|Active Port)"
 </code> </code>
 +</block>
  
 +<block round box 70%>
 Beispiel-Ausgabe: Beispiel-Ausgabe:
  
Zeile 23: Zeile 28:
 | 74 | alsa_output.usb-Logitech... (Kopfhörer) | analog-output | analog-output | | 74 | alsa_output.usb-Logitech... (Kopfhörer) | analog-output | analog-output |
 | 95 | bluez_output... (Bluetooth) | headset-output | headset-output | | 95 | bluez_output... (Bluetooth) | headset-output | headset-output |
 +</block>
 ===== Schritt 2: Verzeichnis anlegen ===== ===== Schritt 2: Verzeichnis anlegen =====
 +<block round box 70%>
 <code bash> <code bash>
 mkdir -p ~/.local/bin mkdir -p ~/.local/bin
 </code> </code>
 +</block>
  
 Sicherstellen, dass ''~/.local/bin'' im PATH liegt: Sicherstellen, dass ''~/.local/bin'' im PATH liegt:
 +<block round box 70%>
 <code bash> <code bash>
 echo $PATH | grep ".local/bin" echo $PATH | grep ".local/bin"
 </code> </code>
 +</block>
  
 Falls nicht vorhanden, in ''~/.bashrc'' ergänzen: Falls nicht vorhanden, in ''~/.bashrc'' ergänzen:
 +<block round box 70%>
 <code bash> <code bash>
 export PATH="$HOME/.local/bin:$PATH" export PATH="$HOME/.local/bin:$PATH"
 source ~/.bashrc source ~/.bashrc
 </code> </code>
 +</block>
 ===== Schritt 3: Skripte erstellen ===== ===== Schritt 3: Skripte erstellen =====
  
 ==== 3.1 Kopfhörer (01-Headphone.sh) ==== ==== 3.1 Kopfhörer (01-Headphone.sh) ====
 +<block round box 70%>
 <code bash> <code bash>
 nano ~/.local/bin/01-Headphone.sh nano ~/.local/bin/01-Headphone.sh
Zeile 54: Zeile 65:
 pactl set-default-sink "$sink" pactl set-default-sink "$sink"
 </code> </code>
 +</block>
 ==== 3.2 Boxen (02-Box.sh) ==== ==== 3.2 Boxen (02-Box.sh) ====
 +<block round box 70%>
 <code bash> <code bash>
 nano ~/.local/bin/02-Box.sh nano ~/.local/bin/02-Box.sh
Zeile 67: Zeile 79:
 pactl set-default-sink "$sink" pactl set-default-sink "$sink"
 </code> </code>
 +</block>
 ==== 3.3 Bluetooth (03-Blue.sh) ==== ==== 3.3 Bluetooth (03-Blue.sh) ====
 +<block round box 70%>
 <code bash> <code bash>
 nano ~/.local/bin/03-Blue.sh nano ~/.local/bin/03-Blue.sh
Zeile 80: Zeile 93:
 pactl set-default-sink "$sink" pactl set-default-sink "$sink"
 </code> </code>
 +</block>
 ===== Schritt 4: Skripte ausführbar machen ===== ===== Schritt 4: Skripte ausführbar machen =====
 +<block round box 70%>
 <code bash> <code bash>
 chmod +x ~/.local/bin/01-Headphone.sh chmod +x ~/.local/bin/01-Headphone.sh
Zeile 87: Zeile 101:
 chmod +x ~/.local/bin/03-Blue.sh chmod +x ~/.local/bin/03-Blue.sh
 </code> </code>
 +</block>
 ===== Schritt 5: .desktop-Dateien erstellen ===== ===== Schritt 5: .desktop-Dateien erstellen =====
 Für die Taskleisten-Integration braucht Cinnamon ''.desktop''-Dateien mit Icon und Befehl. Für die Taskleisten-Integration braucht Cinnamon ''.desktop''-Dateien mit Icon und Befehl.
  
 ==== 5.1 Kopfhörer ==== ==== 5.1 Kopfhörer ====
 +<block round box 70%>
 <code bash> <code bash>
 nano ~/.local/share/applications/audio-headphone.desktop nano ~/.local/share/applications/audio-headphone.desktop
Zeile 102: Zeile 117:
 Terminal=false Type=Application Categories=AudioVideo;  Terminal=false Type=Application Categories=AudioVideo; 
 </code> </code>
 +</block>
 ==== 5.2 Boxen ==== ==== 5.2 Boxen ====
 +<block round box 70%>
 <code bash> <code bash>
 nano ~/.local/share/applications/audio-box.desktop nano ~/.local/share/applications/audio-box.desktop
Zeile 116: Zeile 131:
 Type=Application Categories=AudioVideo;  Type=Application Categories=AudioVideo; 
 </code> </code>
 +</block>
 ==== 5.3 Bluetooth ==== ==== 5.3 Bluetooth ====
 +<block round box 70%>
 <code bash> <code bash>
 nano ~/.local/share/applications/audio-bluetooth.desktop nano ~/.local/share/applications/audio-bluetooth.desktop
Zeile 131: Zeile 146:
 Type=Application Categories=AudioVideo;  Type=Application Categories=AudioVideo; 
 </code> </code>
 +</block>
  
 +<WRAP round tip 70%>
 Hinweis: ''BENUTZERNAME'' durch deinen echten Linux-Benutzernamen ersetzen (''whoami''). Hinweis: ''BENUTZERNAME'' durch deinen echten Linux-Benutzernamen ersetzen (''whoami'').
 +</WRAP>
 ===== Schritt 6: Icons in Taskleiste einbinden ===== ===== Schritt 6: Icons in Taskleiste einbinden =====
 +<block round box 70%>
 Rechtsklick auf die Taskleiste → "Applets" Rechtsklick auf die Taskleiste → "Applets"
  
Zeile 151: Zeile 168:
  
 Schritte für Boxen (''audio-speakers'') und Bluetooth (''audio-headset'') wiederholen Schritte für Boxen (''audio-speakers'') und Bluetooth (''audio-headset'') wiederholen
 +</block>
 ===== Schritt 7: Testen ===== ===== Schritt 7: Testen =====
 +<block round box 70%>
 Klick auf das Kopfhörer-Icon in der Taskleiste Klick auf das Kopfhörer-Icon in der Taskleiste
  
Zeile 159: Zeile 176:
  
 GUI-Kontrolle: ''pavucontrol'' → Tab "Ausgabegeräte" GUI-Kontrolle: ''pavucontrol'' → Tab "Ausgabegeräte"
 +</block>
 ===== Fehlerbehebung ===== ===== Fehlerbehebung =====
 +<block round box 70%>
 ^ Problem ^ Lösung ^ ^ Problem ^ Lösung ^
 | Skript startet nicht | ''chmod +x'' erneut ausführen | | Skript startet nicht | ''chmod +x'' erneut ausführen |
Zeile 167: Zeile 184:
 | Sink-ID nicht gefunden | ''pactl list short sinks'' → IDs in Skripten anpassen | | Sink-ID nicht gefunden | ''pactl list short sinks'' → IDs in Skripten anpassen |
 | Bluetooth kein Ton | Erst ''bluetoothctl connect MAC'', dann Skript ausführen | | Bluetooth kein Ton | Erst ''bluetoothctl connect MAC'', dann Skript ausführen |
 +</block>
audio_ausgänge_umschalten.1771868114.txt.gz · Zuletzt geändert: von ktt73

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki