sping

joined 1 year ago
[–] sping@lemmy.sdf.org 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.

[–] sping@lemmy.sdf.org 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.

[–] sping@lemmy.sdf.org 4 points 3 weeks ago* (last edited 3 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

[–] sping@lemmy.sdf.org 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.

[–] sping@lemmy.sdf.org 1 points 1 month ago

I naively thought it I may as well take a job using Go, as learning a new language is broadening, and some people like it, so lets find out first hand... I knew it was a questionable choice, looking at how Go adoption tailed off a while ago.

Turns out I hate Go. Sure it's better than C but that's a very low bar, and C was never a good alternative choice for the use cases I'm encountering. I'm probably suffering from a codebase of bad Go, but holy shit it's painful. So much silent propagation of errors up the stack so you never know where the origin of the error was. So very much boilerplate to expand simple activities into long unreadable functions. Various Go problems I've hit can be ameliorated if you "don't do it like that", but in the real world people "do it like that" all the time.

I'm really starting to feel like there are a lot of people in the company I've joined who like to keep their world obtuse and convoluted for job security.

[–] sping@lemmy.sdf.org 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.

[–] sping@lemmy.sdf.org 8 points 2 months ago (1 children)

The sort option by "orders" is good for this. Far from infallible but still useful.

[–] sping@lemmy.sdf.org 7 points 2 months ago

That's a much broader term.

[–] sping@lemmy.sdf.org 2 points 2 months ago* (last edited 2 months ago)

Although I came from vi (pre-vim and pre-evil) and still have the muscle memory, I don't and haven't used it myself.

I hear it described as a "nearly complete" and "very comprehensive". There is definitely a solid community of people using and enjoying it, but on the other hand there are always some reports of getting tired of having to work through, and sometimes extend, an additional interface layer, so in the long run being happier to just adopt the default bindings.

I know there are a few areas where trying to follow common vim workflows doesn't work as well. Historically the performance of line number display been weak in Emacs, though I believe it's recently much improved. A lot of people seem to make heavy and constant use of it in vim but conversely for me (and I think it's more common in Emacs) it's only an occasional, transient need when some external log or error quotes a line number, so I have them only displayed when I hit the go-to-line binding.

Overall, I think the most frustrating issues people have trying to adopt Emacs from vim are due to trying to impose their specific familiar vim workflows. The most obvious example is people concerned with startup time, but for more typical Emacs workflows it's a non-issue. Users typically stay in Emacs rather than jumping in and out of it from a terminal (and if you really want that workflow, you run one instance as a daemon and pop up a new client to it instantly). My Emacs instance's uptime usually matches my computer's uptime.

The draw of Emacs is not about it only being an editor so much as a comprehensive and programmable text environment. It is a lisp-based text-processing engine that can run numerous applications, the primary being an editor (the default, or evil, or others...) but also countless other applications like file managers, VC clients, subprocess management and many others. It 95% replaces the terminal for me, and many other tools. So it's the environment through which you view and manipulate all things text that is very accessible to modify and extend to fit your needs. Hence the joke about it being an OS is pretty apt, though to believe it needs a good editor implies vim isn't a good editor ;).

[–] sping@lemmy.sdf.org 3 points 2 months ago* (last edited 2 months ago) (4 children)

Which Emacs community? I've been following it for ages in a few places (Reddit is the most common) and I literally do not encounter any of that. Calling it evil was humor - as if people who went to all the bother making it would be trying to push people away...

Using the evil package is very popular and often recommended, which means literally using it like vim, but with all the Emacs ability on top. I don't know what on earth you're talking about.

[–] sping@lemmy.sdf.org 20 points 2 months ago (7 children)

And yet Emacs users don't fight vim users. Emacs users decided vim's interface was pretty cool and added it to Emacs. Somehow people still call it a war though.

[–] sping@lemmy.sdf.org 10 points 2 months ago (2 children)

I've had buffalo wings, and American barbecue. Also I've been to American Thanksgiving meals with weird things like sweet potatoes with marshmallows on. So I've had some American ethnic food for one thing.

 

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

view more: next ›