! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Improve the default shortcut keys
Status:
RESOLVED: FIXED
Severity:
enhancement
Product:
Libxfce4ui
Component:
General

Comments

Description Yousuf 'Jay' Philips 2020-02-25 20:11:11 CET
I would like to make the following shortcut suggestions.

1. Changing [Ctrl + Alt + Delete] to xfce4-session-logout (also suggested in bug 11979)
Ubuntu Mate, Kubuntu, Linux Mint Cinammon, and Windows use this to show the shutdown/logout dialog and think it would be good to change it to this.

2. Add [Ctrl + Shift + Escape] for xfce4-taskmanager
Easy access to the task manager is something quite useful and utilizing the same shortcut as on Windows is a good idea.

3. Add [Ctrl + Space] for xfrun4
A number of application launchers use this shortcut to launch, likely because its similar to Mac OS's Cmd + Space.

4. Add [Alt + Print] for `xfce4-screenshooter -w`
Print modifier shortcut to capture the window. Shortcut used in Xubuntu, Lubuntu, Ubuntu Mate, Ubuntu, and Linux Mint Cinammon.

5. Add [Shift + Print] for `xfce4-screenshooter -r`
Print modifier shortcut to capture a region of the screen. Shortcut used in Xubuntu, Ubuntu, and Linux Mint Cinammon.

6. Add [Ctrl + Alt + Escape] for `xkill`
Easy access to kill a GUI app. Shortcut used in Xubuntu and KDE

7. Add [Calculator]
As XFCE doesn't bundle its own calculator, the XFCE distro will assign this to their calculator (e.g. gnome-calculator, mate-calc)

== Super Key Shortcuts ==

1. Add [Super + E] for thunar
Lubuntu, Linux Mint Cinammon and Windows use this to open the file manager and [Ctrl + Alt + F] could be used as an alternative.

2. Add [Super + R] for xfrun4
Shortcut used in Xubuntu, Lubuntu and Windows

Research on these suggestions can be found in the below google spreadsheet
https://docs.google.com/spreadsheets/d/1CPvYS7Vb00nImb5cru6pwcMHFov0vmdzJV9dTBUOuYg/edit#gid=0
Comment 1 Theo Linkspfeifer editbugs 2020-02-28 17:08:44 CET
Default keybindings are defined in this XML file:
https://git.xfce.org/xfce/libxfce4ui/tree/libxfce4kbd-private/xfce4-keyboard-shortcuts.xml
Comment 2 Simon Steinbeiss editbugs 2020-02-28 21:11:48 CET
Apart from 3), which I'm a little sceptical about, I'm fine with all of those. If you'd wanna go similar to MacOS in this case I would suggest [Super + Space] instead.

If you wanna prepare a patch for all the others, I'm happy to push it to libxfce4ui for 4.15.x
Comment 3 Theo Linkspfeifer editbugs 2020-02-28 21:34:10 CET
Note that Super + Space is used by IBus to switch to the next input method.
Comment 4 Simon Steinbeiss editbugs 2020-02-28 21:40:47 CET
Agreed, that's not a great choice then...
Comment 5 Simon Steinbeiss editbugs 2020-02-28 21:40:58 CET
Agreed, that's not a great choice then... Not
Comment 6 Yousuf 'Jay' Philips 2020-02-29 22:24:55 CET
Created attachment 9504 
patch for approved shortcuts

Though 'XF86WWW' is set to launch the default web browser, it doesn't for me and i was thinking either to change it to 'HomePage' which works for me or add a new entry for 'Homepage'. Does 'XF86WWW' work for any of you guys?
Comment 7 Git Bot editbugs 2020-03-01 23:16:57 CET
Yousuf Philips referenced this bugreport in commit 0ec62b59985453c52a1c5026221b0de846cda291

Add more default keyboard shortcuts (Bug #16470)

https://git.xfce.org/xfce/libxfce4ui/commit?id=0ec62b59985453c52a1c5026221b0de846cda291
Comment 8 Simon Steinbeiss editbugs 2020-03-01 23:18:39 CET
FYI I split up your commit and attributed the change to "xfce4-session-logout" to https://bugzilla.xfce.org/show_bug.cgi?id=11979

Also, I have neither "Homepage" nor "XF86WWW" on my keyboard...
Comment 9 Theo Linkspfeifer editbugs 2020-03-02 00:28:12 CET
I suggest to change xfrun4 (a symlink) to xfce4-appfinder.

Also, adding a keyboard shortcut for the Calculator key should be done by the distributions.
Comment 10 Yousuf 'Jay' Philips 2020-03-02 05:41:36 CET
(In reply to Simon Steinbeiss from comment #5)
> Agreed, that's not a great choice then... Not

So is Ctrl + Space on the table? KDE uses Alt + Space, but that already set to the windows operations menu.

(In reply to Simon Steinbeiss from comment #8)
> Also, I have neither "Homepage" nor "XF86WWW" on my keyboard...

XF86WWW is supposed to be linked up with the Homepage key, similar to how XF86Mail is linked up with Mail key.
https://cgit.freedesktop.org/xorg/proto/x11proto/tree/XF86keysym.h#n69

(In reply to Theo Linkspfeifer from comment #9)
> I suggest to change xfrun4 (a symlink) to xfce4-appfinder.

Ok

> Also, adding a keyboard shortcut for the Calculator key should be done by
> the distributions.

I can remove the automatic setting of it from gnome-calculator to blank, though setting it to something means less work for some distros. Xubuntu uses mate-calculator, linux mint and linux lite use gnome-calculator and manjaro and mx us galculator.

----

Would be good to also assign the Super key to the whisker menu.
Comment 11 Yousuf 'Jay' Philips 2020-03-03 19:15:43 CET
Created attachment 9529 
patch for super, homepage, and ctrl + space
Comment 12 Yousuf 'Jay' Philips 2020-03-03 19:39:38 CET
Created attachment 9530 
patch for homepage and ctrl + space

If setting super in my previous patch was problematic, then here is the patch without super.
Comment 13 Simon Steinbeiss editbugs 2020-04-01 08:08:51 CEST
(In reply to Theo Linkspfeifer from comment #9)
> I suggest to change xfrun4 (a symlink) to xfce4-appfinder.
> 
> Also, adding a keyboard shortcut for the Calculator key should be done by
> the distributions.

I agree and have pushed both proposed changes.

I also included the Homepage shortcut. Let's close this bugreport, it's already getting very messy and hard to follow (it demands a lot of attention just to know what has or hasn't been included...)
If there are still open points please open a new report.

Bug #16470

Reported by:
Yousuf 'Jay' Philips
Reported on: 2020-02-25
Last modified on: 2020-04-01

People

Assignee:
Simon Steinbeiss
CC List:
1 user

Version

Version:
4.14.0

Attachments

patch for approved shortcuts (2.20 KB, patch)
2020-02-29 22:24 CET , Yousuf 'Jay' Philips
no flags
patch for super, homepage, and ctrl + space (1.99 KB, patch)
2020-03-03 19:15 CET , Yousuf 'Jay' Philips
no flags
patch for homepage and ctrl + space (1.90 KB, patch)
2020-03-03 19:39 CET , Yousuf 'Jay' Philips
no flags

Additional information