feat(bindings): open strata as the file manager

SUPER+CTRL+ALT+F launches or focuses strata instead of Nautilus, and
SUPER+ALT+SHIFT+F opens strata in the terminal's cwd in place of the
flea --default block.
This commit is contained in:
Prad Nukala committed 2026-10-16 14:09:17 -04:00
1 parent f1cc109b5d
commit 5e15ac16fc
1 file changed
+7 -11
+7 -11
View File
@@ -241,7 +241,7 @@ o.bind("SUPER + CTRL + ALT + J", "Terminals", "omarchy-cycle-terminal")
o.bind("SUPER + CTRL + ALT + K", "Browsers", "omarchy-cycle-browser") o.bind("SUPER + CTRL + ALT + K", "Browsers", "omarchy-cycle-browser")
o.bind("SUPER + CTRL + ALT + G", "Ghostty", "omarchy-cycle ghostty") o.bind("SUPER + CTRL + ALT + G", "Ghostty", "omarchy-cycle ghostty")
o.bind("SUPER + CTRL + ALT + O", "Obsidian", "omarchy-cycle obsidian") o.bind("SUPER + CTRL + ALT + O", "Obsidian", "omarchy-cycle obsidian")
o.bind("SUPER + CTRL + ALT + F", "File manager", "omarchy-launch-or-focus nautilus \"gtk-launch org.gnome.Nautilus\"") o.bind("SUPER + CTRL + ALT + F", "File manager", "omarchy-launch-or-focus io.github.lgse.Strata \"gtk-launch io.github.lgse.Strata\"")
-- Fastmail, Beeper, Google Home and LM Studio each live on their own scratch -- Fastmail, Beeper, Google Home and LM Studio each live on their own scratch
-- workspace (window rules in hypr/hyprland.lua); the toggle reveals it (on -- workspace (window rules in hypr/hyprland.lua); the toggle reveals it (on
-- eDP-1 for Fastmail and Beeper, else the focused monitor) and starts the app -- eDP-1 for Fastmail and Beeper, else the focused monitor) and starts the app
@@ -311,23 +311,19 @@ hl.unbind("SUPER + SPACE") -- was: pseudo window
-- ALT + TAB below takes that job; SUPER + SHIFT + RETURN is unbound -- ALT + TAB below takes that job; SUPER + SHIFT + RETURN is unbound
-- (Window management, above). -- (Window management, above).
-- --
-- flea --default: begin. Written by `flea --default`; `flea --default off` removes the block whole. -- strata (default file manager; installed by chezmoi's 15-tools into
hl.unbind("SUPER + SHIFT + F") -- ~/.local/bin, which uwsm-app's environment may not have on PATH).
o.bind("SUPER + SHIFT + F", "File manager", { launch = 'flea --gui' })
hl.unbind("SUPER + ALT + SHIFT + F") hl.unbind("SUPER + ALT + SHIFT + F")
o.bind("SUPER + ALT + SHIFT + F", "File manager (cwd)", { launch = 'flea --gui "$(omarchy-cmd-terminal-cwd)"' }) o.bind("SUPER + ALT + SHIFT + F", "File manager (cwd)", "uwsm-app -- \"$HOME/.local/bin/strata\" \"$(omarchy-cmd-terminal-cwd)\"")
-- flea --default: end.
-- flea --picker: begin. Written by `flea --picker`; `flea --picker off` removes the block whole. -- flea --picker: begin. Written by `flea --picker`; `flea --picker off` removes the block whole.
o.window("com.thisisgm.flea.picker", { tag = "+floating-window" }) o.window("com.thisisgm.flea.picker", { tag = "+floating-window" })
-- flea --picker: end. -- flea --picker: end.
-- niri-style: SUPER + F maximizes (Omarchy's SUPER + ALT + F "Full width"), -- niri-style: SUPER + F maximizes (Omarchy's SUPER + ALT + F "Full width"),
-- SUPER + SHIFT + F goes true fullscreen. Kept below the flea blocks so it -- SUPER + SHIFT + F goes true fullscreen (Omarchy binds the file manager
-- wins over the file-manager bind `flea --default` writes onto -- there). strata is on SUPER + ALT + SHIFT + F (cwd) and SUPER + CTRL + ALT + F.
-- SUPER + SHIFT + F; flea stays on SUPER + ALT + SHIFT + F, Nautilus on
-- SUPER + CTRL + ALT + F.
hl.unbind("SUPER + F") -- was: full screen hl.unbind("SUPER + F") -- was: full screen
o.bind("SUPER + F", "Maximize", hl.dsp.window.fullscreen({ mode = "maximized" })) o.bind("SUPER + F", "Maximize", hl.dsp.window.fullscreen({ mode = "maximized" }))
hl.unbind("SUPER + SHIFT + F") -- was: file manager (flea --gui) hl.unbind("SUPER + SHIFT + F") -- was: file manager
o.bind("SUPER + SHIFT + F", "Full screen", hl.dsp.window.fullscreen({ mode = "fullscreen" })) o.bind("SUPER + SHIFT + F", "Full screen", hl.dsp.window.fullscreen({ mode = "fullscreen" }))