flameshot-org / flameshot

Powerful yet simple to use screenshot software :desktop_computer: :camera_flash:
https://flameshot.org
GNU General Public License v3.0
24.94k stars 1.6k forks source link

provide kksrc file (for KDE plasma settings) #3629

Open DavidBruchmann opened 4 months ago

DavidBruchmann commented 4 months ago

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 commented 4 months ago

According adjustment of the documentation would be helpful.

Kilkenni commented 1 month ago

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

tshiunghan commented 3 weeks ago

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.

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

DavidBruchmann commented 3 weeks ago

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

tshiunghan commented 3 weeks ago

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

DavidBruchmann commented 3 weeks ago

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

tshiunghan commented 3 weeks ago

Same...