Skip to content

fix: type image path when pasting clipboard images into terminals - #11998

Open
HIMANSHU11827 wants to merge 1 commit into
omacom:quattrofrom
HIMANSHU11827:fix/clipboard-image-paste-terminal-path
Open

HIMANSHU11827 wants to merge 1 commit into
omacom:quattrofrom
HIMANSHU11827:fix/clipboard-image-paste-terminal-path

Conversation

@HIMANSHU11827

@HIMANSHU11827 HIMANSHU11827 commented Sep 15, 2026

Copy link
Copy Markdown

Problem

Picking an image (e.g. a screenshot) from clipboard history (Super + Ctrl + V) while a terminal is focused silently pastes nothing: omarchy-clipboard-paste-file puts image/png on the clipboard and sends Shift+Insert, but terminals only accept text.

Fix

In bin/omarchy-clipboard-paste-file, when the mime is image/* and the Hyprland focused window is a terminal (foot/kitty/ghostty/alacritty/wezterm/konsole/tilix or any *term* class), type the file path with wtype instead of sending Shift+Insert. GUI targets and non-image files behave exactly as before, as does everything when focus can't be determined. No QML changes needed — the history picker calls the same command.

Verification

  • All three tools from feat: add commandcode, qwen audio agent, and colibri to AI installs #11839 smoke-tested working on Omarchy: commandcode --version -> 1.54.0, qwenaudio --help (full gateway/tui/webui tree), colibri engine built from source with gcc+OpenMP (make -C c colibri, engine + coli launcher run).
  • test/shell.d/clipboard-test.sh green, including 4 new cases: path typed into terminals, shift-insert preserved for GUI apps / non-images / undetectable focus.
  • ./test/cli green.
  • Docs: one line in manual/08-unified-clipboard-history.md.

Terminals only accept text, so picking an image from clipboard history
while a terminal is focused silently pasted nothing. Detect terminal
focus via hyprctl and type the file path instead; GUI targets keep the
shift-insert image paste.
@HIMANSHU11827
HIMANSHU11827 force-pushed the fix/clipboard-image-paste-terminal-path branch from b46c339 to 0f8191e Compare September 15, 2026 19:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant