From d9bd4a8db316e9feb925db7aede14534ad27e6b8 Mon Sep 17 00:00:00 2001 From: schwepmo <39306374+schwepmo@users.noreply.github.com> Date: Sat, 31 Jan 2026 18:12:29 +0100 Subject: [PATCH] Open Nautilus in cwd of terminal (#4331) * feat: Open Nautilus (files) in cwd of terminal using omarchy-cmd-termina-cwd * feat: Add SUPER+ALT+SHIFT+F shortcut to open nautilus in cwd * added migration script for nautilus keybind --- config/hypr/bindings.conf | 1 + migrations/1769543550.sh | 6 ++++++ 2 files changed, 7 insertions(+) create mode 100644 migrations/1769543550.sh diff --git a/config/hypr/bindings.conf b/config/hypr/bindings.conf index f7770dd8..32f8ffec 100644 --- a/config/hypr/bindings.conf +++ b/config/hypr/bindings.conf @@ -1,6 +1,7 @@ # Application bindings bindd = SUPER, RETURN, Terminal, exec, uwsm-app -- xdg-terminal-exec --dir="$(omarchy-cmd-terminal-cwd)" bindd = SUPER SHIFT, F, File manager, exec, uwsm-app -- nautilus --new-window +bindd = SUPER ALT SHIFT, F, File manager (cwd), exec, uwsm-app -- nautilus --new-window "$(omarchy-cmd-terminal-cwd)" bindd = SUPER SHIFT, B, Browser, exec, omarchy-launch-browser bindd = SUPER SHIFT ALT, B, Browser (private), exec, omarchy-launch-browser --private bindd = SUPER SHIFT, M, Music, exec, omarchy-launch-or-focus spotify diff --git a/migrations/1769543550.sh b/migrations/1769543550.sh new file mode 100644 index 00000000..44c657c7 --- /dev/null +++ b/migrations/1769543550.sh @@ -0,0 +1,6 @@ +echo "Add SUPER+ALT+SHIFT+F shortcut to open nautilus in cwd" + +# Add the new CWD binding if it doesn't exist +if ! grep -q "SUPER ALT SHIFT, F" ~/.config/hypr/bindings.conf; then + sed -i '/bindd = SUPER SHIFT, F, File manager, exec, uwsm-app -- nautilus --new-window/a bindd = SUPER ALT SHIFT, F, File manager (cwd), exec, uwsm-app -- nautilus --new-window "$(omarchy-cmd-terminal-cwd)"' ~/.config/hypr/bindings.conf +fi