omarchy icon indicating copy to clipboard operation
omarchy copied to clipboard

Nautilus drag and copy doesn't work

Open naxels opened this issue 9 months ago • 24 comments

System details

Omarchy 3.3.3 (and older)

What's wrong?

For some reason the default Nautilus drag (with the mouse) and copy while holding Ctrl doesn't work.

Holding Ctrl and Shift also doesn't work to create a symlink.

I already know from another issue that the universal copy/paste doesn't work and have found this myself as well while the file (or just the filename?) is in the universal clipboard.

Is there anything I can try to resolve this?

Thank you!

small update: as a workaround I've noticed that Ctrl-C and Ctrl-V appears to work.

naxels avatar Feb 05 '26 14:02 naxels

Yeah, this is documented in the manual: https://learn.omacom.io/2/the-omarchy-manual/105/universal-clipboard

There unfortunately does not seem to be a way to get nautilus to use the unified hotkeys. If you find a way, please open a PR!

dhh avatar Feb 06 '26 13:02 dhh

I found a way! 🎉

Unfortunately it's a workaround as I've not been able to find a better way..

@dhh the way to make it work is to add these bindings to Hyprland config, I've tested them and they work!

These bindings directly target the Wayland Nautilus class and translate the SUPER key to CTRL.

bindd = SUPER, C, Nautilus Copy, sendshortcut, CTRL,c,class:^(org.gnome.Nautilus)$
bindd = SUPER, V, Nautilus Paste, sendshortcut, CTRL,v,class:^(org.gnome.Nautilus)$
bindd = SUPER, X, Nautilus Cut, sendshortcut, CTRL,x,class:^(org.gnome.Nautilus)$

naxels avatar Feb 06 '26 15:02 naxels

Hmm, I can't seem to get those to work here. Would be very nice if we can get this sorted, though!

dhh avatar Feb 06 '26 15:02 dhh

hmm that is interesting, the steps I took:

In Neovim, open the ~/.config/hypr/bindings.conf file

On the bottom of the file, paste the bindd bindings I posted.

Upon save, it did it's reload thing and automatically when I hit SUPER+X in Nautilus the file gets a Scissor icon over it same as with copy/paste, they do their thing (but don't appear in Universal Clipboard)

Image

naxels avatar Feb 06 '26 15:02 naxels

hmm that is interesting, the steps I took:

In Neovim, open the ~/.config/hypr/bindings.conf file

On the bottom of the file, paste the bindd bindings I posted.

can confirm, works for me, too

sgruendel avatar Feb 06 '26 20:02 sgruendel

Just tested these steps on a 2015 mbp with latest Omarchy, the bindd's also immediately worked after setting them in the config

naxels avatar Feb 07 '26 13:02 naxels

@dhh can you confirm that after updating the config with the 3 bindd's, that you see the shortcuts when pressing SUPER+K and searching for Nautilus?

Image

naxels avatar Feb 10 '26 09:02 naxels

Got it going, but it's not working right. When I have two nautilus windows next to each other, and I Super + C in one, then go to the other and Super + V, the copy isn't going through. It works fine with Ctrl + C/V.

dhh avatar Feb 10 '26 10:02 dhh

Aaah, I see, confirmed.. I will check.. I only tested a single window

naxels avatar Feb 10 '26 10:02 naxels

Found my error and solved it..

I was missing the active statement

Here is the updated bindd:

bindd = SUPER, C, Nautilus Copy, sendshortcut, CTRL,c, active, class:^(org.gnome.Nautilus)$
bindd = SUPER, V, Nautilus Paste, sendshortcut, CTRL,v, active, class:^(org.gnome.Nautilus)$
bindd = SUPER, X, Nautilus Cut, sendshortcut, CTRL,x, active, class:^(org.gnome.Nautilus)$

naxels avatar Feb 10 '26 10:02 naxels

Boom! That did it. Very nice 👌

dhh avatar Feb 10 '26 11:02 dhh

Committed in 4fadf666e6f85a01b6490b5032ac0cceb463a722

dhh avatar Feb 10 '26 11:02 dhh

I just found an issue on my machine with the bindings :( that cause the SUPER+V to paste the same thing twice in non-Nautilus windows like Chrome/Terminal :(

as soon as I comment the bindings rules out (just the SUPER+V is enough), it goes back to normally as expected

I will investigate..

Update: I tried to replicate the issue on a MBP2015 with latest stable Omarchy (same as on PC) and have been able to replicate the issue. As soon as , active, is added, wev will list additional inputs pressed and the (what looks like) double paste happens

so actually both SUPER+V and Ctrl+V are fired.

running hyprctl binds | grep 'Nautilus' lists 6 entries on both the MBP as PC as expected, so there are no double entries

trials

  • no Nautilus open
  • several Nautilus open
  • one Ghostty terminal open
  • several Ghostty terminals open
  • mix of Ghostty and Nautilus

2nd update: a suggestion I tried is moving the bindd's to the Omarchy /default/hypr/bindings/clipboard.conf file before the Universal Copy/Paste/Cut, however this didn't solve the issue either. another suggestion I found is to just use bind without the addition d & remove the description, this neither fixed it. and I tried bindr but again, no go.

I also tried replacing sendshortcut with pass which broke the 2 window copy/paste in Nautilus, so no go either.

The easiest way to notice the problem is to go to the terminal (I'm using Ghostty) and press SUPER+C for Universal Copy, you will see that it also send a Ctrl+C to the terminal which is not supposed to happen

3rd update: also tried several solutions that ChatGPT suggested, but none of them had the intended outcome, it also seems that it isn't up-to-date on Hyprland 0.53.x either.

Hopefully @vaxerski can help us out on this one?

naxels avatar Feb 14 '26 16:02 naxels

Yes, I found the same, so had to remove this solution again.

dhh avatar Feb 14 '26 22:02 dhh

whats the exact issue cuz I dont think I understand?

vaxerski avatar Feb 14 '26 23:02 vaxerski

We were trying to get the unified clipboard commands, Super + C/V/X, working in Nautilus. Proposal was to add these:

bindd = SUPER, C, Nautilus Copy, sendshortcut, CTRL,c,class:^(org.gnome.Nautilus)$ bindd = SUPER, V, Nautilus Paste, sendshortcut, CTRL,v,class:^(org.gnome.Nautilus)$ bindd = SUPER, X, Nautilus Cut, sendshortcut, CTRL,x,class:^(org.gnome.Nautilus)$

That works, but it still sends these shortcuts to every other app too. So when you paste an image on the clipboard into the browser, you get double paste. Would be nice if there was a way where sendshortcut only applied to the specified class.

dhh avatar Feb 15 '26 07:02 dhh

Hi David, Thanks for the comment — and sorry for the delay! To clarify: the issue isn’t with adding a generic bindd = SUPER, C, Nautilus Copy (which wouldn’t be how keybindings are typically registered in Nautilus or GNOME). The challenge is that Nautilus doesn’t expose native clipboard actions (copy, cut, paste) via a public D-Bus interface or shell-level shortcuts like Super+C/V/X the way, say, text editors or terminal emulators do. Here’s what we’ve tried and what we found: - Nautilus doesn’t support custom global keybindings like Super+C for “Copy” out of the box — those are handled by the window manager (e.g., GNOME Shell), not by the app itself. - We explored: - Using gsettings to set org.gnome.shell.keybindings → no effect for Nautilus-specific actions. - Injecting shortcuts via gkbd or custom gschema → only works for system-wide actions (like copy in text fields), not Nautilus’ tree view/file selection. - xdotool/ydotool workarounds (simulate Ctrl+C after selection) → fragile and requires focus management. Our current workaround (for users who really need this) is: - A small script using xdotool + wmctrl: ```bash # Example: copy selected files in Nautilus via Super+C if pgrep -x "nautilus" > /dev/null; then xdotool key ctrl+c fi

and isn’t reliable across sessions. Would you be open to a more targeted
solution, like: - Adding a lightweight **GNOME Shell extension** (e.g.,
“Nautilus Clipboard Shortcuts”) that hooks into Nautilus’ selection and
maps `Super+C/V/X` to the internal actions? - Or contributing a patch to
Nautilus (e.g., exposing copy/cut/paste via D-Bus or a new keybinding
schema)? Let me know your preference — happy to draft the shell extension
or investigate further. Best, [Your Name]

jamescraig17 avatar Feb 15 '26 07:02 jamescraig17

We were trying to get the unified clipboard commands, Super + C/V/X, working in Nautilus. Proposal was to add these:

bindd = SUPER, C, Nautilus Copy, sendshortcut, CTRL,c,class:^(org.gnome.Nautilus)$ bindd = SUPER, V, Nautilus Paste, sendshortcut, CTRL,v,class:^(org.gnome.Nautilus)$ bindd = SUPER, X, Nautilus Cut, sendshortcut, CTRL,x,class:^(org.gnome.Nautilus)$

That works, but it still sends these shortcuts to every other app too. So when you paste an image on the clipboard into the browser, you get double paste. Would be nice if there was a way where sendshortcut only applied to the specified class.

and when adding ", active, " making it:

bindd = SUPER, C, Nautilus Copy, sendshortcut, CTRL,c, active, class:^(org.gnome.Nautilus)$
bindd = SUPER, V, Nautilus Paste, sendshortcut, CTRL,v, active, class:^(org.gnome.Nautilus)$
bindd = SUPER, X, Nautilus Cut, sendshortcut, CTRL,x, active, class:^(org.gnome.Nautilus)$

the Nautilus universal copy/paste/cut works between Nautilus windows, however it appears that CTRL + c/v/x is always send to other windows/apps as well.

so as DHH asked, is there a way to make sendshortcut only work for the class? or maybe we can leverage submap to make it work but only for the Nautilus windows?

naxels avatar Feb 15 '26 09:02 naxels

Hi Patrick, Thanks for flagging this! It looks like the comment from naxels is proposing a bindd command to map Super + C to Nautilus’s copy action (e.g., bindd = SUPER, C, Nautilus Copy), but Nautilus doesn’t currently expose a native “copy” action that we can bind to directly via bindd—especially not one that integrates with the unified clipboard (i.e., respects the same clipboard context as other apps). A few things to consider: - Nautilus uses GTK’s clipboard APIs, so the standard copy (Ctrl+C) and paste (Ctrl+V) should already work globally—unless the environment (e.g., compositor or window manager) is intercepting them before they reach the app. - Super + C is typically reserved for system-level actions (e.g., launcher, screenshot), so we’d want to verify it doesn’t conflict with global shortcuts. - If the goal is to unify keybindings across apps (including Nautilus), we might need to: - Ensure Nautilus is focused and receives Ctrl+C/Ctrl+V properly (no keygrabbers in the way), or - Use a workaround like xdotool/ydotool to simulate Ctrl+C when Super+C is pressed while Nautilus is active, though this is fragile. Would you mind sharing: 1. What desktop environment/window manager you’re using? 2. Whether Ctrl+C / Ctrl+V already work in Nautilus as expected? 3. If you’re targeting a specific workflow (e.g., dragging files to copy vs. using clipboard)? That’ll help us decide the best path—whether it’s adjusting keybindings, patching Nautilus behavior, or documenting a known limitation. Best, —[Your Name]

jamescraig17 avatar Feb 15 '26 09:02 jamescraig17

what are unified clipboard commands? I am very confused why you need to send every ctrl+c to nautilus.

Sendshortcut shouldn't send the keystrokes to the currently focused app and it seems to work for me

Image

SUPER+N sends ctrl+c to wev and doesnt send it to focused kitty

vaxerski avatar Feb 19 '26 00:02 vaxerski