this post was submitted on 30 Oct 2024
167 points (98.3% liked)

Linux

47947 readers
1695 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

So a few months back I asked about you guys os in c/asklemmy, so this time I wanna ask about your desktops you use on this same account.
(I use kde but plan to move to cinnamon I find kde buggy and gnome tracker3 randomly broke for no reason + themeing so yh idk if these happened to anybody)

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 10 points 1 day 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.