Repository navigation
Conversation
… all Upstream Omarchy's universal clipboard, for labwc: Super (Command on an Apple keyboard) with X, C, V and A sends Ctrl with that key through the virtual keyboard. In a terminal (foot, Ghostty) Command+C copies with Ctrl+Insert and Command+V pastes with Ctrl+Shift+V. Ghostty does not take Ctrl+Shift+C from the virtual keyboard as copy; it reaches the shell as Ctrl+C and stops what runs. Settings > Keyboard Shortcuts lists them under Editing. A migration adds the bindings to an existing ~/.config/labwc/rc.xml unless it binds one of those keys itself. Tested on an iPad Air 2 (j82) with an Apple Magic Keyboard: copy and paste between Firefox and Ghostty, and Command+C in Ghostty does not stop a running command. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SLbz23ZoimaemGQ2yfdfhR
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SLbz23ZoimaemGQ2yfdfhR
jannyg
force-pushed
the
cmd-clipboard-keys
branch
from
December 4, 2026 10:06
7a3000f to
daf4616
Compare
jannyg
marked this pull request as ready for review
December 4, 2026 10:08
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What was missing
With a Bluetooth keyboard, Command (Super) + C/V did nothing, so copy and paste needed Ctrl, and in a terminal Ctrl+Shift. Upstream Omarchy has a "universal clipboard" on Hyprland: Super + X/C/V/A as cut, copy, paste and select all, in every app including the terminal. This brings it to labwc.
The change
desktop/shell/labwc-rc.xml: four bindings that send the keys through the virtual keyboard (/usr/libexec/omarchy-wtype):If/query identifier:foot,footclient,org.omarchy.terminalandcom.mitchellh.ghostty.foot.ini).ShortcutsModel.js+i18n/en/shell.json: Settings → Keyboard Shortcuts lists them under a new Editing group (Cut, Copy, Paste, Select All). AnIfbinding is named by itsthenbranch.1796378339.sh: adds the bindings before</keyboard>in an existing~/.config/labwc/rc.xml, unless it already binds one of those keys.tests/test_universal_clipboard.py: the bindings, that a terminal never gets Ctrl+C, foot's keys, and the migration (an older rc.xml becomes the shipped one; a user's own binding is left alone; it runs once).Tested
On the iPad Air 2 (j82) with an Apple Magic Keyboard, after running the migration on the original rc.xml:
sleep 30in Ghostty and in foot, then Cmd+C: does not stop it.Other terminals (Alacritty, kitty) are not in the list, so they get the plain Ctrl keys. I could not test them.
🤖 Generated with Claude Code
https://claude.ai/code/session_01SLbz23ZoimaemGQ2yfdfhR