• 0 Posts
  • 29 Comments
Joined 1 year ago
cake
Cake day: June 18th, 2023

help-circle



  • Thank you!

    This is what I came up with.

    • a script that does what you need, and reads a kinda ‘config file’ which Konsole instance/window/session to use
    • another script that saves the current session into that config file

    So you’d save the scripts somewhere you like, and run the useThisSession one in the session you’d like to be the target.

    Then, you can run / bind to a shortcut / … the runCommand script, and it will show, raise, set Session, and run the command on the target saved earlier.

    useThisSession.sh:

    #!/bin/bash
    # useThisSession
    
    echo MYCMD_SERVICE=$KONSOLE_DBUS_SERVICE > ~/.config/mycmdrc
    echo MYCMD_SESSION=${KONSOLE_DBUS_SESSION#/Sessions/} >> ~/.config/mycmdrc
    echo MYCMD_WINDOW=${KONSOLE_DBUS_WINDOW#/Windows/} >> ~/.config/mycmdrc
    

    runCommand.sh:

    #!/bin/bash
    # runCommand
    
    . ~/.config/mycmdrc
    
    qdbus $MYCMD_SERVICE /konsole/MainWindow_$MYCMD_WINDOW showNormal
    qdbus $MYCMD_SERVICE /konsole/MainWindow_$MYCMD_WINDOW raise
    qdbus $MYCMD_SERVICE /Windows/$MYCMD_WINDOW setCurrentSession $MYCMD_SESSION
    qdbus $KONSOLE_DBUS_SERVICE /Sessions/$MYCMD_SESSION runCommand "echo cmd"
    

    For testing purposes, I’m using "echo cmd" instead of '!!' (note the different type of quotes) to not cause any… unintended… executions.

    Running qdbus $MYCMD_SERVICE /konsole/MainWindow_$MYCMD_WINDOW will show you all methods available on the Window, eg, so you can pick&choose from those if you want different behaviour from show (& un-minimize) and raise.

    EDIT: syntax adjusted to work in ‘regular’ bash











  • As for the first points, yes, that may happen, but is it a problem for users who already are part of a ‘better’ experience here than on the for-profit platforms?

    I, for one, find much better discourse here than anywhere on reddit, let alone Meta or Twitter.

    Also exemplified by me engaging much more here than ever on the others. I do prefer quality over quantity - everyone is invited to join the table, but I don’t see much benefit in luring people there who would ultimately only dilute or be disruptive - ie, not really into the thing that’s happening here.

    For the last point, well, legislators can certainly try. While telling people it’s all for their benefit and upholding freedom and democracy and equal opportunity and whatnot. And even keep a straight face.



  • (Disclaimer: I haven’t read into that referenced article by ninja at all, maybe it already says something related)

    For one, it may be possible to filter accounts that were created but actually never used to log on, within a week or two of creation - those could go without much harm done IMO.

    And/or, you could message such accounts and ask them for email verification, which would need to be completed before they can interact in any way (posting, commenting, voting). That latter one is quite probably currently not directly supported by the Lemmy software, but could be patched in when the need arises.





  • I “tried” to use XMPP/Jabber in its heyday, but in my experience (& memory) it never got to the point to have a “critical mass” of community (I felt to be part of / want to be part of).

    Fediverse/Lemmy has this critical mass at least since some weeks now - unless too many of those users decide to leave for another place, I’m happy here no matter what other things get hyped in a given week.

    Back in Jabber’s day, I would have liked to see it develop some communities as they did - and still do! - exist on IRC, but that simply never happened (with one I would both be interested in and could find).