sping

joined 1 year ago
[–] [email protected] 8 points 1 week ago

I'm still on i3 as it's been convenient, but this:

this has all become very specialized over the past decade

resonates. I keep incrementally adding personal tweaks and hotkeys to my setup, and I have all my dotfiles in a repo so it's persistent across installations.

One example was I made my headphone button pause/play videos with i3's config:

bindsym XF86AudioPlay exec playerctl play-pause

But then I adopted a script to toggle mic mute on work Zoom meetings, so I combined it with the above - if I'm in a meeting it toggles mute, otherwise it play-pauses any current video. The script, for now:

#!/bin/bash
#
# Handler script for hitting mute on the headphone.
#

CURRENT=$(xdotool getwindowfocus)
ZOOM=$(xdotool search --limit 1 --name "Zoom Meeting")

if [[ -n "$ZOOM" ]]; then
    # if zoom is active, toggle mic mute
    xdotool windowactivate --sync ${ZOOM}
    xdotool key --clearmodifiers "alt+a"
    xdotool windowactivate --sync ${CURRENT}
else
    # otherwise do play/pause
    playerctl play-pause # will fail if no player found
fi

and of course I altered the i3 config to launch that script rather than playerctl directly.

[–] [email protected] 1 points 1 week ago

Yeah. Heaviest awk I've ever done is extracting a value to a variable from a line with one pattern and using it to populate output from later lines matching another pattern.

[–] [email protected] 1 points 1 week ago

Great, cause we haven't been burning enough energy jetting around the globe up to now. Glad they found a way to burn a whole lot more.

[–] [email protected] 4 points 2 weeks ago* (last edited 2 weeks ago)

Must have been the 323, before they rebranded to 3 in the early 2000s. Shame for you it was broken, they were good drivers' cars in a modest way

[–] [email protected] 4 points 3 weeks ago* (last edited 3 weeks ago)

It's obviously trivial energy waste in the big picture, but it's 100% waste if you don't need it. Like turning on lights in empty rooms.

[–] [email protected] 11 points 3 weeks ago (2 children)

wasting energy to somehow stick it to the man?

Exhibit 56845 why humanity is fucking doomed.

[–] [email protected] 2 points 1 month ago* (last edited 1 month ago)
[–] [email protected] 2 points 1 month ago (1 children)

I was just thinking of the likes of what you get for searching for esp32 audio kit on AliExpress. About us$12. Has microphones, amplifiers, buttons etc.

[–] [email protected] 3 points 1 month ago (3 children)

Esp32 is very suitable but they jumped through a lot of hoops to recreate the ESP audio development boards you can buy for very little money with all of those parts already built in.

[–] [email protected] 2 points 1 month ago

Not to mention an emissions decline means we're still making things worse, but not quite so quickly.

Obviously the path to making things better would have to pass through here, but just as people thinking electric cars are a solution rather than more of the problem, the delusion that this is winning is also part of the problem.

[–] [email protected] 1 points 1 month ago (1 children)

Could you explain what he's saying about caret (presumably cursor?) positions because I can't make sense of it.

[–] [email protected] 8 points 2 months ago* (last edited 2 months ago) (4 children)

Avoid categories where a lot of items have fake specs (storage devices, LED bulbs, anything that claims a runtime on a Li-Ion battery)

I'd say be aware rather than avoid. E.g I bought a $10 camping lantern that claimed 2.5 times its true capacity, but it still runs for hours and is a great, well designed, if flimsy, product for the price.

view more: next ›