17

CopyQ clipboard manager global shortcut to show/hide main window does not work on Ubuntu 21.04 (doesn't work under Wayland windows manager)

quinta
  • 681

5 Answers5

28

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.

quinta
  • 681
  • 2
    Is 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
  • 3
    The command 'copyq toggle' is enough btw. – Bim May 31 '22 at 08:52
  • Actually copyq is fine on Gnome. Kubuntu doesn't hinor the show/hide shortcut. That was since 22.04 and note 24.04. – will Jul 14 '24 at 07:01
12

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.

  1. Open Setting from the top bar, select keyboard shortcuts

  2. Scroll to the bottom and hit "+"

  3. Set the command instead to copyq menu

  4. Hit Set Shortcut and press your favorite keys.

From the menu, you can use the arrow keys and hit enter to open the Main Window

kossboss
  • 121
3

To have the CopyQ window focused using the workaround suggested by quinta, try checking "Always on top" in CopyQ settings, General.

2

For Ubuntu 21.04 and above you can better follow the below steps to open Show/hide main window.

Setting > Keyboard > Keyboard Shortcuts > View and Customise Shortcuts > Custom Shortcuts > Fill the name to Copyq > command to copyq toggle > Shortcut Press Alt + q enter image description here

0

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

Dmitriy
  • 381