count0

joined 1 year ago
[–] [email protected] 3 points 5 months ago

... Which means that businesses are making 'too much' money on top to sink into such endeavors, no?

[–] [email protected] 2 points 5 months ago* (last edited 5 months ago) (1 children)

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


[–] [email protected] 2 points 5 months ago (1 children)

Soo... If we could figure out how to do the first one via DBus/from the command line, you could put both in a script and bind that to a (global or so) shortcut, and be set. (?)

What qdbus command line exactly are you using to post input to the shell within Konsole?

I'll have a look later when I'm at my desktop again (and hopefully will remember).

[–] [email protected] 4 points 5 months ago* (last edited 5 months ago) (1 children)

For the vendor (non-)consent thing - Consent-O-Matic provides an appropriate framework.

(Whether such a side would even care about the preference/consent is another matter entirely - I'd suggest a throwaway browser identity and cookie auto delete for a start, anyway.)

Creating rules has a bit of a learning curve the first three or seven times, but I find that more interesting to do than go through a hostile/dark pattern cookie dialog or such the third time.

Hm, maybe the appropriate functionality from CoM could be re-wrapped as a TamperMonkey module...

Web automation for the masses 😱

[–] [email protected] 3 points 5 months ago

Great writeup, thank you so much for sharing!

Nothing more frustrating than googling an issue and (only) finding forum threads ending in "nvm it works now" 😬

[–] [email protected] 2 points 6 months ago

What exactly does it do / which problem(s) does it solve? Its website reads kinda intentionally vague to me.

[–] [email protected] 4 points 6 months ago (1 children)

Regarding weather: I just love the no-frills at-a-glance presentation of the AF Weather Widget

[–] [email protected] 7 points 9 months ago

12ft.io and/or archive.is/archive.today/... are worth trying in such cases (assuming you already have the latest version of the current ByPass addon, see the other comment).

[–] [email protected] 40 points 11 months ago (6 children)

How does writing things down help when I don't remember to read them back...?

[–] [email protected] 4 points 11 months ago

Unless someone would stumble upon a combination of microwave magnetron that "just so happens" to fit a satellite dish LNC mount. I can neither confirm nor deny that such combinations might exist.

It certainly would seem a very good way to impart... "energy" into all and sundry besides the intended target, and as such horribly dangerous and irresponsible.

[–] [email protected] 1 points 11 months ago

Regarding cookie pop-ups, there's a little known gem: https://consentomatic.au.dk/

 

Currently, I get one copy of each notification from 'here' (where I happen to have this account) for each tab under https://lemmy.dbzer0.com/ that I have opened.

This is a major inconvenience; and - I guess - at this time a not-yet implemented feature.

Beyond the issue tracker (or a PR), is there a forum/community (on Lemmy...?) to discuss such enhancements / dev/programming of and around Lemmy?

 
 

I feel this kinda fits in here.

If it's not welcome (here), I'm happy to learn of better places.

150
Catch 22. (lemmy.dbzer0.com)
 

Caught in between burnout and (self-)neglect.

221
Epiphany. (lemmy.dbzer0.com)
 
view more: next ›