• 1 Post
  • 27 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



  • for me the most critical ones are replacements for discord and microsoft teams. for discord the critical piece is the login - people don’t want to make accounts on each server, so until we have proper federation with a good user experience people won’t actually move off it.

    for teams i’m sure theres projects in development, i just don’t know them or their status - all i know is that i want a project to combine several specialized FOSS services (jitsi is great, and there’s lots of other collaboration tools for email/calendar/chat) into one nice unified frontend that is actually reasonably easy to self-host and maintain.


  • android yes, but the entire google play ecosystem is not, and some things are very hard to do without being inside that ecosystem.

    I’m using my fairphone without any google account (so no play store), and it works, but there are some obstacles. Luckily my bank still offers a good website and even uses some international standard for 2 factor auth, so i can do my ebanking without the app - which, like most companies, is only offered in the play store.

    for public transport, i downloaded the app from apkpure (in hindsight, the aurora store would likely be the better option) and it works fine for buying tickets. this is just my lazyness, i could buy tickets on the website (but it sucks) or at ticket machines, but the app is super convenient.

    for various other services i just refuse to install apps. parking payments, my insurance company, work (luckily i have a bunch of freedom at work, using linux on my work laptop too)… is all stuff that would be convenient but it’s all just available in play store. it looks like aurora is a good option, but 1. i don’t know how long until google kills it and 2. i want to completely stop being dependent on adtech anyway.


  • 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.


  • 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.



  • 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 think flatpak has done a lot to make this easier, but at the same time… i’ll admit i’m not a fan of it (mostly due to random issues).

    the way i see it, more distros need something like arch linux’ AUR. if an application is reasonably easy to build, it really does not take much to get it into the AUR, from where there’s also a path towards inclusion in the official repos.

    i don’t know too much about other distros, but arch really makes it amazingly easy to package software and publish everything needed for others to use it. i feel like linux needs more of this, not less - there’s a great writeup that puts why linux maintainers are important way better than i ever could:

    https://web.archive.org/web/20230525163337/https://kmkeen.com/maintainers-matter/


  • i’d suggest starting by finding out what package in your distro actually decides where audio goes - mostly it is pulseaudio (older) or pipewire (newer).

    depending on the details of how your distro and the dongle work, it could either be a simple “pactl set-default-sink <headset-name>”, or a more complicated set of udev rules or pipewire/wireplumber scripts.

    note that distros using pipewire still often support a lot of pactl commands, so it may be worth looking at the simple option even when not using pulseaudio.



  • i bought the tuxedo nano (a mini pc but decently powerful), and its not 100% linux compatible. i imagine its better if you install their own distro (maybe) but running arch linux with the standard kernel on it, i’ve had issues with HPET/TSC (some cpu timekeeping stuff, ruined performance when it happened), the wifi card it came with is known to have issues and i’ve had plenty (usable, but super slow bandwidth depending on what AP i connect to, and no its not the AP all other devices work fine on it), and some lockups when my usb microphone is connected (sometimes it only crashed the usb hub which i could reset).

    NONE of these issues are present running arch linux on my old desktop and 2 work laptops. Support wasnt helpful either.

    However, its still my main device, i just had to work around these issues.

    edit oh, and the fan is not controllable from linux at all, i’ve spent hours trying to find a way. i do not know if it’s controllable from windows either, maybe it’s just the mainboard that doesn’t allow fan control at all outside of the UEFI settings.


  • using dd for that is outdated info that everyone keeps blindly parroting with zero understanding why. cat is simpler and works fine.

    note: both cat and dd only work for this when the image is made in a compatible way, my linux isos always work fine but a windows iso didnt and needs a more specific tool.