diff --git a/.shenanigans.sh b/.shenanigans.sh index e65d4983ef65bbf7445c63c25d9cf0d280a050ba..935c1b32c90ea8fa1511be2da3f259e221e09316 100755 --- a/.shenanigans.sh +++ b/.shenanigans.sh @@ -90,7 +90,6 @@ --exclude '.import/' \ --exclude '.godot/' \ --exclude '.zig-cache/' \ --exclude 'node_modules/' \ - --exclude 'digg-v5/' \ --delete \ $VHOME/ /media/Void/Backup/$ME/ @@ -102,26 +101,3 @@ # Return back to original directory cd $CWD } -# Toggles between pulseaudio sinks in round-robin. -togglesink() { - sinks=($(pactl list short sinks | awk '{print $2}')) - current_sink=$(pactl get-default-sink) - current_index=-1 - - for i in "${!sinks[@]}"; do - if [[ "${sinks[$i]}" == "$current_sink" ]]; then - current_index=$i - break - fi - done - - if [[ $current_index -eq -1 ]]; then - next_index=0 - else - next_index=$(( (current_index + 1) % ${#sinks[@]} )) - fi - - pactl set-default-sink "${sinks[$next_index]}" - notify-send "Switched to sink: ${sinks[$next_index]}" -} -