CopyQ clipboard manager global shortcut to show/hide main window does not work on Ubuntu 21.04 (doesn't work under Wayland windows manager)
4 Answers
Workaround is assigning a shortcut in Gnome
Open Setting from the top bar, select keyboard shortcuts
Scroll to the bottom and hit "+"
Enter the name of your choice, type copyq -e "toggle()"in the Command field
Hit Set Shortcut and press your favorite keys.
- 441
- 4
- 13
-
2Is there any advice how to make copyq window focused and bring it to the front after the hotkey is pressed, when using this workaround? Otherwise it opens but stays behind the current windows. – Dmitriy Jul 28 '21 at 03:19
-
1The command 'copyq toggle' is enough btw. – Bim May 31 '22 at 08:52
Just like the top answer by @quinta, set the Gnome Settings Custom Keyboard shortcuts which take precedence on a Ubuntu desktop system. However instead of opening the main window with copyq toggle, we will use a different command to open its menu. I think its more streamlined to open copyqs menu as its more compact.
Open Setting from the top bar, select keyboard shortcuts
Scroll to the bottom and hit "+"
Set the command instead to
copyq menuHit Set Shortcut and press your favorite keys.
From the menu, you can use the arrow keys and hit enter to open the Main Window
- 71
- 1
- 1
To have the CopyQ window focused using the workaround suggested by quinta, try checking "Always on top" in CopyQ settings, General.
- 31
- 1
Another solution to consider would be to choose "Ubuntu on XOrg" in the login screen and keep using XOrg for a bit more until remaining Wayland issues are ironed out, hopefully in the next release.
(Click on the gear icon in the bottom right corner of the login screen. If it is not there, go to the password prompt step.)
- 361
- 2
- 7