Skip Navigation
Select Audio Output Via Command Line
  • I've written a bash script i'm using daily, maybe you can adapt it to your needs. I'm using pipewire-pulse. It's probably not perfect but it does the job:

    #!/usr/bin/env bash
    DEVICE=$1
    
    # read input, parse list of available sinks (outputs)
    if [ "$DEVICE" = "pc" ]
    then
    	OUTPUT=($(pactl list short sinks | awk '{print $2}' | grep -i -E 'hdmi|samson|Targus' -v))
    elif [ "$DEVICE" = "tv" ]
    then	
    	OUTPUT=($(pactl list short sinks | awk '{print $2}' | grep -i -E 'hdmi'))
    else
    	echo "No valid input (must be either 'pc' or 'tv')"
    	exit -1
    fi
    
    # get all currently connected streams
    INPUTS=($(pactl list short sink-inputs | awk '{print $1}'))
    
    # change default sink (for new audio outputs)
    pactl set-default-sink $OUTPUT
    
    # switch sink for existing audio outputs
    for i in "${INPUTS[@]}"
    do
    	pactl move-sink-input $i $OUTPUT
    done
    
    # use notify-send to send a visual notification to the user that the sink changed
    notify-send -c info "Default sink changed" "Changed default sink and sink-inputs to $OUTPUT"
    
  • Disney wants a wrongful death lawsuit thrown out because the plaintiff had Disney+
  • Is it really possible to sign away a right to sue a company, especially hidden in an EULA? For an unrelated service as well... I guess that's something the court must decide in the end.

    It's a pity that a company who created so many beloved stories and characters fell so low.

  • High Fidelity (2000) ⭐ 7.4 | Comedy, Drama, Music

    I stole your title template @TehBamski@lemmy.world because i like it :)

    I like the actresses and actors, especially John Cusack (who is just a fantastic actor in general) and Jack Black, who stands out in another role that just feels like it's made for him (the other being School of Rock).

    The film also makes good use of its soundtrack and music in general and has some funny scenes, along with a simple but well paced main plot.

    8
    Arrival (2016) ⭐ 7.9 | Drama, Mystery, Sci-Fi
  • Can second this recommendation, very good movie! Spoilers ahead:

    spoiler

    I love the fact that it is a movie about aliens without any violent conflict but rather focused on interacting with the aliens some way

  • Frontend vs backend
  • It seems to be down right now, but if i remember correctly this one also works when you are using a terminal and curl, i.E. curl wttr.in/newyork

    Edit: It works again, you can use the command as written above :D

  • Was bringt Ihr aus einem Italienurlaub auf jeden Fall mit nach Hause?
  • Letztes Jahr war es Sonnencreme - die habe ich dort gekauft weil ich befürchtete dass mir meine mitgenommene ausgeht. Jetzt hat sich herausgestellt dass das die beste Sonnencreme ist, die ich jemals gekauft habe. Zieht super ein, riecht kaum und war sogar etwas günstiger als in der Schweiz :D

  • Anyone else loving Jagged Alliance 3?
  • Don't have time right now and i never played the originals, but i read great things. Seems like a pretty weird mix between mechanics, but great if the developers pulled it off. Glad to hear you're enjoying it as well!

    Is there a story or is it "just" mission after mission?

  • What book are you in the middle of reading right now?
  • The Mask of Mirrors by M.A. Carrick.

    It's fantasy, but feels pretty fresh to me with the focus being on the main characters trying to con a rich family and less of the more usual (but no less fun) adventuring, combat etc. (at least so far, I'm still very early in the book).

  • John Cusack inside Hollywood: They get away with it because they can
  • What's up with the writing - seems kinda weird, are the tweets real? I don't have twitter so i (semmingly?) can't check myself.

    I like John Cusack, he's a great actor and seems like a decent human being, so no big deal either way but just wondering what's up with that.

  • InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)JA
    jan75 @lemmy.ml
    Posts 1
    Comments 17