sping

joined 1 year ago
[–] [email protected] 8 points 5 days 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 6 days 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 6 days 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] 2 points 6 days ago* (last edited 6 days ago) (1 children)

I’m not surprised Emacs users would be seeking them out

They aren't. Someone did it, probably more than one person, but if you look hard enough you can find people who do all sorts of weird stuff. It's not an "Emacs thing" at all.

This and the joke itself really make me wonder about bizarre Emacs (and Emacs users) that exists in people's heads.

I see you use capital letters in your post, so you presumably used a modifier key (shift) - unless you do modal caps with CapsLock all the time. I don't know why people find that normal and easy, but as soon as it's Ctrl or Alt they get in a tizzy and start talking about RSI.

Funny how over the decades I've known many Emacs users, and many RSI sufferers, but the overlap in my Venn diagram of that is exactly one person.

[–] [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 3 weeks ago* (last edited 3 weeks ago)
[–] [email protected] 2 points 3 weeks 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 4 weeks 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.

 

In Cambridge, MA, USA, and nearby communities, bike advocates have made real progress with lanes and paths and general infrastructure. Also the city requires that new builds have a proper bike room. This building was recently gutted and fitted out and this is the bike room today - overloaded, and the building is barely half full... Looks like they will need to find more efficient bike racks!

Meanwhile in a recent commute I was in a queue of 30 bicycles at a light at which about 6-8 cars get through at a time. 10-15 years ago I was one of the few bikes on the roads at any time.

Hats off to the advocates and representatives of the local cities that have made this happen through continuous pressure and work over decades...

 

The lack of keyboard interface on Lemmy is killing me, but really what I want is a good client in Emacs. However, it's beyond my Elisp to design and start such a project, but I could probably help. Anyone on it?

view more: next ›