• 0 Posts
  • 4 Comments
Joined 2 years ago
cake
Cake day: August 7th, 2023

help-circle
  • it’s somewhat vibe coded but the one i probably use the most is this one to swap between speakers and headset. the device name to look for is just put directly in there, it’d take some adjustment to run it on different machines. this is in my .bashrc:

    # switch sinks
    toggle_audio() {
      # Find headset sink ID dynamically
      headset_id=$(pactl list sinks short | grep "Plantronics" | awk '{print $1}')
      
      # Find speakers sink ID dynamically
      speakers_id=$(pactl list sinks short | grep "pci-0000_05_00.6" | awk '{print $1}')
      
      # Get current default sink
      current_sink=$(pactl get-default-sink)
      
      # Get current sink ID
      current_id=$(pactl list sinks short | grep "$current_sink" | awk '{print $1}')
      
      # Toggle between the two
      if [ "$current_id" = "$headset_id" ]; then
        pactl set-default-sink "$speakers_id"
        echo "Switched to speakers (Sink $speakers_id)"
      else
        pactl set-default-sink "$headset_id"
        echo "Switched to headset (Sink $headset_id)"
      fi
    }
    

    generally i try not to use too many custom things because for work i regularly work on all kinds of different servers and i’ve just been too lazy to set up some solution to keep it all in sync. someday…


  • the cursor locking still happens in a handful of games for me - most work perfectly fine but sometimes i do end up running something with gamescope with the --force-grab-cursor argument to fix it.

    this is when running games with either steam or wine/bottles/lutris.

    strange that it happens in virualbox, i would think it “virtualizing” an entire display would fix issues like that. does virtualbox itself “grab” the cursor, or allow it to go off the screen by default? sorry i don’t really know virtualbox, never used it much


  • i mean… it is massively better, but yes it still sucks. but what do you move friends and family to? last i looked into element it was not an option for several reasons, and i don’t think anyone would switch to basically noname apps like simplex or similar, even if they might be decent solutions. i really want the last few contacts i have on whatsapp to move, but i’m not gonna push hard to get them to use signal just to get it enshittified in the near future. also a few switched to telegram, which while not facebook, is not really better mainly because it doesn’t even e2ee by default.