bazzett

joined 1 year ago
 

Hello. I want to write an Udev rule to change my laptops's EasyEffects profile whenever I connect a speaker set or headphones to the 3.5mm jack. The concept is relatively simple: when I connect something to the jack, I want it to fire a script that will set this Dconf setting:

gsettings set com.github.wwmm.easyeffects last-loaded-output-preset 'None'

And when I unplug the speakers/headphones, it'll set this:

gsettings set com.github.wwmm.easyeffects last-loaded-output-preset 'Laptop'

("None" and "Laptop" are EasyEffects profiles).

Unfortunately, I haven't been able to find useful info, since almost all of the results I found online refer to Bluetooth or USB devices. I checked within /sys/class/sound/ and /dev/ for a file where I could query the status of the jack (something like "connected"/"disconnected") but I can't find something relevant. I have a similar rule that changes GNOME's font scaling when I plug my HDMI display, and it does that by running this script:

function monitorConnected () {
  statuses=$(cat /sys/class/drm/card1-HDMI-A-{1,2,3,4}/status 2>/dev/null)    
  for status in ${statuses[@]}                                                
  do                                                                          
        [[ ${status} == "connected" ]] && return 0                              
  done                                                                        
  return 1                                                                    
  }

So I thought that I could do something similar for the 3.5mm jack. Or maybe there's another method? Any hints? My OS is Fedora 41 and I'm using Pipewire, btw.

[–] bazzett@lemmy.world 8 points 3 weeks ago (1 children)

An uncle that uses a disk platter on his head and calls himself "member of the Church of Emacs".

[–] bazzett@lemmy.world 4 points 2 months ago

I don't know if I'm doing something wrong, but I have a secondary SSD in my laptop that I mount on /mnt/elyssa and in every DE and distro I tried it appeared as a removable drive with the "eject" button. Right now I use Fedora with Gnome and if I install this extension or enable the removable drives option in Dash to Dock, it shows me that drive. Maybe some mount option in Gnome Disks, but since it's not that big of a problem, I haven't looked too much into it.

[–] bazzett@lemmy.world 13 points 2 months ago

I always liked what Charles Darwin wrote to J. D. Hooker in 1853:

After describing a set of forms, as distinct species, tearing up my M.S., & making them one species; tearing that up & making them separate, & then making them one again (which has happened to me) I have gnashed my teeth, cursed species, & asked what sin I had committed to be so punished [...]

It describes perfectly the feelings of a biologist while doing taxonomy work.

[–] bazzett@lemmy.world 2 points 2 months ago

I mean, I mentioned that my experience with Pixelfed has not been the best, since it lacks content and discoverability. I wouldn't sign up again to Instagram (I deleted my accounts years ago), but it's obvious that it has orders of magnitude more content, and maybe the recommendation algorithm can be useful sometimes.

Personally, even if I don't want to, I have to use WhatsApp since everyone in my country uses it, even government offices.

[–] bazzett@lemmy.world 1 points 2 months ago

Yes, that's exactly it: the discoverability. I joined a small to medium server, and I thought that Pixelfed's search would be like the one in Mastodon: search for a hashtag and get results from all of the other federated servers, but no. The search function doesn't seem to work with hashtags, so subscribing to one is a pain.

And the available apps are not very good. And the official one hasn't been released yet.

[–] bazzett@lemmy.world 3 points 2 months ago (2 children)

Besides Lemmy, I have a Mastodon account. I'm not very active, though. I'm also on BlueSky, but because most of the post where uninteresting to me I uninstalled the app months ago and hadn't logged in since. And I'm exploring Pixelfed, but my experience hasn't been so good.

[–] bazzett@lemmy.world 3 points 2 months ago

Something like this Firefox theme, but with some violet mixed in.

[–] bazzett@lemmy.world 1 points 2 months ago

Some weeks ago I tried to install Arch on an old laptop, and since it have been many years since I've installed Arch for the last time, and I've heard good things about archinstall, I decided to try it. Nothing fancy: single drive, LXQt, no encryption, auto partitioning...

I tried maybe 4 or 5 times, configuring different settings in the script, and every single time it gave me a broken installation: no GRUB, or no display manager, or incorrect video driver (Intel, no Nvidia here). I supposedly configured all the options correctly, but I never got a working system. In the end I snapped and searched for some video tutorial and installed Arch the old way. I have no desire to use that script again, at least for a long time.

[–] bazzett@lemmy.world 6 points 6 months ago (1 children)

Seymour! The house is on fire!

[–] bazzett@lemmy.world 8 points 6 months ago

"Updated README"

[–] bazzett@lemmy.world 1 points 6 months ago (1 children)

Tab Stash seems to be what you're looking for.

view more: next ›