• 2 Posts
  • 222 Comments
Joined 3 years ago
cake
Cake day: June 20th, 2023

help-circle

  • JTskulk@lemmy.worldtoLeopards Ate My Face@lemmy.world*Permanently Deleted*
    link
    fedilink
    English
    arrow-up
    31
    arrow-down
    1
    ·
    9 days ago

    Now, a New Mexico newborn has died, and while medical experts have not yet determined an exact cause, they have determined that “the most likely source of infection was unpasteurized milk.” Not because the baby drank raw milk, but because their mother did, while she was pregnant.

    Yooooo new legal abortion pill just dropped



  • There used to be a thing in KDE where you could execute actions and macros based on window titles, but it’s since been removed. I’ve had to recreate this behavior with a shell script, here’s a modified version you can use if you use Xorg:

    #!/bin/bash
    
    xprop -spy -root _NET_ACTIVE_WINDOW | grep --line-buffered -o '0[xX][a-zA-Z0-9]\{7\}' |
    while read -r id; do
        class="`xprop -id $id WM_CLASS 2> /dev/null | grep Viber`"
        if [ -n "$class" ]; then
            if xprop -id "$id" | grep -q 'WM_NAME(STRING) = "Viber Window Name"'; then
                echo "key alt+f4" | xdotool -
                # wait for the window to be closed
                xprop -spy -id $id > /dev/null 2>&1
                fi
        fi
    done
    

    The first Viber is is looking for the Viber in the application name, replace “Viber Window Name” with the actual window title you want to be closed. If you don’t use Xorg, you’ll have to find a replacement for both xprop and xdotool.







  • Interesting, thanks for the link. I really hadn’t had many problems with the whole session management aspect of it. I just want the activity to not be listed in the pager when I’m not using it. Sounds like maybe it’s possible to still stop activities without using that broken session manager part. I also wrote about this a little on KDE discuss:

    I’m very sad that the ability to stop activities was removed. This was a good feature that broke my workflow, I hate having to look at activities that I’m no longer using.

    I know there’s a lot of drama around activities, but I really think it’s a good system that needs to be expanded upon. I think the main issues with it is marketing and slightly buggy code. I didn’t understand what activities were after reading about it, so I decided to force myself to use it until I figured it out. When describing activities to others, I’d say that they are virtual desktops that you can start and stop at will and have their own application launcher favorites and widgets.

    I think activities and virtual desktops can and should be merged in a way that makes everyone happy. Call it virtual desktops, but keep all the features of activities. Allow users to start and stop activities, script that along with the activation and deactivation that currently still work, and make separate widgets optional. This way if you only want virtual desktops, you get that. If you want more functionality, it should all be a few gui configuration options as is the KDE way.