• 3 Posts
  • 260 Comments
Joined 1 year ago
cake
Cake day: June 12th, 2023

help-circle
  • 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_WINDOW=$(xdotool getwindowfocus)
    
    # convoluted command to find the intersection of two searches
    ZOOM_WINDOW=$(comm -12 \
      <(xdotool search --name  'Meeting' | sort) \
      <(xdotool search --class 'zoom'    | sort))
    
    if [[ -n "$ZOOM_WINDOW" ]]; then
        # if zoom is active, toggle mic mute
        xdotool windowactivate --sync ${ZOOM_WINDOW}
        xdotool key --clearmodifiers "alt+a"
        xdotool windowactivate --sync ${CURRENT_WINDOW}
    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.

    [EDIT: Updated script as Zoom updated its window identities]




  • sping@lemmy.sdf.orgtoGNU+Linux Humor@lemmy.mlDurga, goddess of Emacs
    link
    fedilink
    English
    arrow-up
    2
    ·
    edit-2
    15 days ago

    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.
















  • He does seem to, where possible, taste blind and take serious efforts to exclude confounding factors.

    If it weren’t for Hoffman doing this sort of thing with grinders I’d have been intensely skeptical that there was anything more than a placebo difference between a fairly decent grinder and a very good one. At least if his videos are to be believed (and I am inclined to), he consistently distinguishes grinders even at a fairly similar price point.


  • Also, it will have been either a modest variation in caffeine intake, or else a variation in modest intake (e.g. adjusting intake say from 6->5, 2->1 or 1->0). These are people who’ve already stabilized their caffeine intake to not disrupt their lifestyle, and were just adjusting that sometimes to remove the first coffee of the day.