- GTK-Style-Script und Template-System entfernt (Catppuccin fest) - 15 tote/inkompatible Scripts gelöscht (Hyprland, X11, Duplikate) - Rasi-Themes von Einzelordnern in themes/ konsolidiert - Waybar: Timezone fix, BAT0, JSON-Struktur, Icons restored - Waybar: GTK-Menu durch wlogout on-click ersetzt - Alle Script-Pfade auf /etc/xdg/rofi/themes/ aktualisiert - moonarch-session als Rofi-basierte Übergangslösung hinzugefügt - moonarch-dnd: broken pipe bei Waybar-Restart behoben - Style.css vom System übernommen
17 lines
761 B
Bash
Executable File
17 lines
761 B
Bash
Executable File
#!/usr/bin/bash
|
|
# ABOUTME: Rofi-based PulseAudio sink switcher using ponymix.
|
|
# ABOUTME: Changes the default sink and moves all active streams to it.
|
|
|
|
# choose pulseaudio sink via rofi or dmenu
|
|
# changes default sink and moves all streams to that sink
|
|
#https://gist.github.com/Nervengift/844a597104631c36513c?permalink_comment_id=1826282
|
|
|
|
sink=$(ponymix -t sink list|awk '/^sink/ {s=$1" "$2;getline;gsub(/^ +/,"",$0);print s" "$0}'|rofi -dmenu -theme '/etc/xdg/rofi/themes/volume.rasi' -mesg ' Sink Switcher' -p 'pulseaudio sink:' -location 6 -width 100|grep -Po '[0-9]+(?=:)') &&
|
|
|
|
|
|
ponymix set-default -d $sink &&
|
|
for input in $(ponymix list -t sink-input|grep -Po '[0-9]+(?=:)');do
|
|
echo "$input -> $sink"
|
|
ponymix -t sink-input -d $input move $sink
|
|
done
|