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 thread.
View all comments View context
10 points
*

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]

permalink
report
parent
reply

Linux

!linux@lemmy.ml

Create post

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

  • Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
  • No misinformation
  • No NSFW content
  • No hate speech, bigotry, etc

Related Communities

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

Community stats

  • 6.7K

    Monthly active users

  • 4.1K

    Posts

  • 56K

    Comments