provide kksrc file (for KDE plasma settings)
Feature Description
the existing *.hotkeys file doesn't satisfy the needs in current KDE plasma settings, as a *.kksrc file is needed. While on the one hand the options are quite limited which key(-combination)s can be entered, there might be still more key-words (Configure, Capture, Launcher, _launch, ...) that could be added perhaps, fiddling out what these keywords could be. I haven't done though. A simple adjusted file could look like this:
[org.flameshot.Flameshot.desktop][Global Shortcuts]
Capture=Print
Configure=Alt+F
Launcher=Alt+L
_launch=Shift+Print
Not all options are covered, as the key-words are as mentioned not known, the options should at least cover this list from the documentation:
According adjustment of the documentation would be helpful.
Thanks, you've saved my day! I updated to KDE 6 yesterday and all of my previous hotkey settings for Flameshot got lost.
I manually added the shortcuts and exported the scheme and this is what I got.
[flameshot-2.desktop][Global Shortcuts]
_launch=Ctrl+Print
[flameshot-3.desktop][Global Shortcuts]
_launch=Shift+Print
[flameshot-4.desktop][Global Shortcuts]
_launch=Ctrl+Shift+Print
[flameshot.desktop][Global Shortcuts]
_launch=Print
I don't think you'd be able to copy this snippet into a .kksrc file and import it into your shortcuts, so I'll just give the commands and the corresponding shortcuts. You'll have to manually add them.
flameshot gui= printflameshot screen -d 3000= ctrl + printflameshot full= shift + printflameshot full -c= ctrl + shit + print
Not the most elegant solution, but I hope it'll help others save time.
@tshiunghan it seems you've several version installed if I interpret it correctly ...
@DavidBruchmann I only have one version of Flameshot installed. I think each shortcut is associated with a different desktop file.
ok, I've no knowledge about the desktop files.
Same...
Things proposed above seem to be workarounds. What would be the proper (elegant) way of doing this?
looking for that too xD
@DavidBruchmann Can you take a stab at a pull request to fix this? I don't think this is really a core flameshot bug, but if we can improve the shortcut file in the doc/ folder that would be good.
@borgmanJeremy sorry, I didn't really understand how things are working, or things have changed. As I've not much understanding of how the configuration for flameshot could be automatized or at least be made easier, I'm certainly not the best person to provide any PR here. The way described in https://github.com/flameshot-org/flameshot?tab=readme-ov-file#on-kde-plasma-desktop has worked in my current installation though, even the description never seems to reflect the current state and options of the System Settings entirely, as the shortcuts for Spectacle couldn't be deactivated, but only deleted completely.