flameshot icon indicating copy to clipboard operation
flameshot copied to clipboard

provide kksrc file (for KDE plasma settings)

Open DavidBruchmann opened this issue 1 year ago • 11 comments

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:

image

DavidBruchmann avatar Jun 10 '24 01:06 DavidBruchmann

According adjustment of the documentation would be helpful.

DavidBruchmann avatar Jun 10 '24 01:06 DavidBruchmann

Thanks, you've saved my day! I updated to KDE 6 yesterday and all of my previous hotkey settings for Flameshot got lost.

Kilkenni avatar Sep 23 '24 00:09 Kilkenni

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 = print
  • flameshot screen -d 3000 = ctrl + print
  • flameshot full = shift + print
  • flameshot full -c = ctrl + shit + print

Not the most elegant solution, but I hope it'll help others save time.

tshiunghan avatar Oct 14 '24 13:10 tshiunghan

@tshiunghan it seems you've several version installed if I interpret it correctly ...

DavidBruchmann avatar Oct 14 '24 14:10 DavidBruchmann

@DavidBruchmann I only have one version of Flameshot installed. I think each shortcut is associated with a different desktop file.

tshiunghan avatar Oct 14 '24 15:10 tshiunghan

ok, I've no knowledge about the desktop files.

DavidBruchmann avatar Oct 14 '24 15:10 DavidBruchmann

Same...

tshiunghan avatar Oct 14 '24 15:10 tshiunghan

Things proposed above seem to be workarounds. What would be the proper (elegant) way of doing this?

jvschiavo avatar Dec 16 '24 22:12 jvschiavo

looking for that too xD

uphiago avatar Mar 17 '25 17:03 uphiago

@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 avatar May 14 '25 12:05 borgmanJeremy

@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.

DavidBruchmann avatar Jun 02 '25 07:06 DavidBruchmann