• 0 Posts
  • 12 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


  • Plenty of distros do package closed source software that does who knows what. i wouldn’t worry about it for now. if you are on a distro that takes a hardline stance on privacy, it was probably gone a while ago, but i don’t actually know any such distros right now.



  • luckily i can wipe my work laptop and install linux (for now, there are discussions about not letting unmanaged devices on the network at some point…), but what annoys me is seeing how much tax money we send straight to microsoft. i work in the education sector in europe and the majority of the company’s funds comes from the government, to send millions of that straight to the US, especially with the politics going on right now, seems like a horrible idea. and SO many others are doing the same thing, i swear if we invested just 10% of it into FOSS the world would be a better place already and we’d all save money.









  • i’m thinking long term - sure, right now google knowing everything about me isn’t dangerous. but if a massive political slide to the right happens in countries that host services, suddenly all the saved data from many years ago can be used against me. and don’t fall for the “end to end encrypted” bullshit either - all these services can flip a switch and have your encryption keys instantly. (or, if its an open source app that ACTUALLY keeps keys on the device only, which is extremely rare, it’s one update away from happening, and you better read the whole diff every update and compile the app yourself.)

    that’s why i choose to self host everything. yes there’s a risk of being hacked, or installing something malicious because i don’t read every diff on every update. but i feel more confortable with it being my own responsibility, and my services are also all on seperate virtual machines to hopefully isolate any breaches.