You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
Recently I installed CopyQ in MacOS 27, and faced a problem with global hotkey: CopyQ window opens, but it is not active and keyboard events still goes to the previous window. I needed to click on the CopyQ window to focus on it and to be able to select an item.
After some research (with llm) I managed to make it work.
I'm posting my flow here:
Open Automator → New Document → Quick Action. Set it to receive no input in any application.
Add Run Shell Script, select /bin/bash, and paste:
/Applications/CopyQ.app/Contents/MacOS/copyq show
/usr/bin/osascript <<'APPLESCRIPT'
tell application "System Events"
tell (first application process whose name contains "copyq")
set frontmost to true
if exists window 1 then
perform action "AXRaise" of window 1
end if
end tell
end tell
APPLESCRIPT
Save as copyq-show-focus. Confirm it exists at:
~/Library/Services/copyq-show-focus.workflow
If it’s missing from keyboard shortcuts, quit System Settings and run:
/System/Library/CoreServices/pbs -flush
/System/Library/CoreServices/pbs -update
Reopen System Settings → Keyboard → Keyboard Shortcuts → Services → General and assign its hotkey. Remove the same hotkey from CopyQ.
Grant the workflow runner Accessibility access in the system settings or run: open "x-apple.systempreferences:com.apple.preference.security?Privacy_Accessibility"
If necessary, quit and reopen System Settings for the pane to appear.
Reveal the runner executable: open -R "/System/Library/Frameworks/AppKit.framework/Versions/C/XPCServices/WorkflowServiceRunner.xpc/Contents/MacOS/WorkflowServiceRunner"
Drag the selected WorkflowServiceRunner executable from Finder into the Accessibility permission list and enable it.
Your hotkey should now show CopyQ and let you select items with the keyboard.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Hello,
Recently I installed CopyQ in MacOS 27, and faced a problem with global hotkey: CopyQ window opens, but it is not active and keyboard events still goes to the previous window. I needed to click on the CopyQ window to focus on it and to be able to select an item.
After some research (with llm) I managed to make it work.
I'm posting my flow here:
Open Automator → New Document → Quick Action. Set it to receive no input in any application.
Add Run Shell Script, select /bin/bash, and paste:
Save as copyq-show-focus. Confirm it exists at:
~/Library/Services/copyq-show-focus.workflow
If it’s missing from keyboard shortcuts, quit System Settings and run:
/System/Library/CoreServices/pbs -flush
/System/Library/CoreServices/pbs -update
Reopen System Settings → Keyboard → Keyboard Shortcuts → Services → General and assign its hotkey. Remove the same hotkey from CopyQ.
Grant the workflow runner Accessibility access in the system settings or run:
open "x-apple.systempreferences:com.apple.preference.security?Privacy_Accessibility"If necessary, quit and reopen System Settings for the pane to appear.
Reveal the runner executable:
open -R "/System/Library/Frameworks/AppKit.framework/Versions/C/XPCServices/WorkflowServiceRunner.xpc/Contents/MacOS/WorkflowServiceRunner"Drag the selected WorkflowServiceRunner executable from Finder into the Accessibility permission list and enable it.
Your hotkey should now show CopyQ and let you select items with the keyboard.
All reactions