Bug 362061 - Use popular shortcuts for Spectacle for sake of consistency with other environments
Summary: Use popular shortcuts for Spectacle for sake of consistency with other enviro...
Status: ASSIGNED
Alias: None
Product: Spectacle
Classification: Applications
Component: General (show other bugs)
Version: unspecified
Platform: Fedora RPMs Linux
: HI wishlist
Target Milestone: ---
Assignee: Boudhayan Gupta
URL:
Keywords: usability
Depends on: 386253
Blocks:
  Show dependency treegraph
 
Reported: 2016-04-22 03:54 UTC by Sudhir Khanger
Modified: 2019-06-12 08:37 UTC (History)
12 users (show)

See Also:
Latest Commit:
Version Fixed In: 16.08
kde: Usability?


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sudhir Khanger 2016-04-22 03:54:31 UTC
GNOME and Ubuntu use following shortcuts.

Prt Scrn to take a screenshot of the desktop.
Alt+Prt Scrn to take a screenshot of a window.
Shift+Prt Scrn to take a screenshot of an area you select.

Windows also uses same Prt Scrn and Alt+Prt Scrn as above.

I think it would be a great idea if Spectacle also used these shortcuts so that users who have to use multiple OS and desktop environment feel right at home when using Plasma.

Reproducible: Always



Expected Results:  
Set following shortcuts for Spectacle 

Prt Scrn to take a screenshot of the desktop.
Alt+Prt Scrn to take a screenshot of a window.
Shift+Prt Scrn to take a screenshot of an area you select.

https://help.gnome.org/users/gnome-help/stable/shell-keyboard-shortcuts.html.en
https://help.ubuntu.com/16.04/ubuntu-help/shell-keyboard-shortcuts.html
http://windows.microsoft.com/en-in/windows/take-screen-capture-print-screen#take-screen-capture-print-screen=windows-8
Comment 1 Boudhayan Gupta 2016-04-22 08:10:43 UTC
This sounds like a good idea in principle, but should we shake things up again?

I'm deferring the decision to Plasma - your usability guys can take a call. Changing the keybindings once a decision has been made is easy.
Comment 2 Thomas Pfeiffer 2016-04-22 19:59:20 UTC
Yes, please, change it!
Spectacle is still young enough that the benefit of being consistent with other desktops/OSes is bigger than the cost of changing compared to previous versions of Spectacle.

We should put a notice in the release announcement for the next release that the shortcuts have changed, of course.
Comment 3 Boudhayan Gupta 2016-04-22 21:59:33 UTC
Excellent. I'll have the changes done in master for 16.08
Comment 4 Aranjedeath 2016-06-29 23:05:54 UTC
Did these changes get committed? :D
Comment 5 Peter Wu 2016-10-13 00:57:25 UTC
Print Screen currently open Spectacle.
Alt + Print Screen does nothing.
Shift + Print Screen currently saves the full screen to a file without showing the dialog.

This does not really match the GNOME shortcuts, would you like to see it differently?
Comment 6 Sudhir Khanger 2016-12-06 17:31:50 UTC
Doesn't look like changes were made.
Comment 7 Gregor Mi 2016-12-06 18:04:14 UTC
I checked the spectacle source log: https://cgit.kde.org/spectacle.git/log/. In the log messages on the first three pages I cannot see any keyboard shortcut related change. But I am not sure if the global shortcut settings are done in this repository or maybe somewhere else.
Comment 8 Peter Wu 2016-12-06 18:11:08 UTC
There were no changes made to Spectacle. I think these are handled by KWin, but not sure.

If you are going to implement this, you probably have to interface with DBus (see dbus/org.kde.Spectacle.xml for the interface).
Comment 9 Sudhir Khanger 2016-12-06 18:39:51 UTC
Shortcuts are defined in custom shortcuts using dbus specs. I do have two problems.

1. I am unable to set Alt+PrtSc as keyboard shortcuts.
2. I don't know what Arguments mean in dbus settings.
Comment 10 Gregor Mi 2016-12-06 18:54:46 UTC
@Sudhir: you are working on this? If yes, cool. :) ...Would you create a review request for this (on reviewboard or phabricator depending on the repository) with your current development state? Prefix the review request title with WIP to make it clear it is not finished yet and post the URL back to here. Code discussion is easier there than here.
Comment 11 Nate Graham 2017-10-28 14:58:02 UTC
> I am unable to set Alt+PrtSc as keyboard shortcuts.

That looks like https://bugs.kde.org/show_bug.cgi?id=386253

We'll need to fix that before we can do this.
Comment 12 Gregor Mi 2018-02-03 10:10:52 UTC
I would like to add that it would be helpful if the behaviour of "Prt Scrn" could be configured in the screenshot tool itself. By default it would be "Screenshot of whole desktop". "Select area" might be a second option; Greenshot for example has this as default action.
Comment 13 ariasuni 2018-11-13 18:08:15 UTC
Any news on this?
Comment 14 David Redondo 2019-06-12 08:37:33 UTC
I created a task https://phabricator.kde.org/T10574
Feel free to comment there