hyprland: Super+E uses ghostty +new-window so yazi reuses the running instance

This commit is contained in:
rope 2026-08-19 20:36:31 +01:00
parent c67c3230a8
commit 856f6822c6

View file

@ -447,7 +447,13 @@ in
-- palette instead of needing a GTK restart. Nemo stays one key -- palette instead of needing a GTK restart. Nemo stays one key
-- away on Super+N it is the only one of the two that can drag -- away on Super+N it is the only one of the two that can drag
-- a file into a browser. -- a file into a browser.
hl.bind(mod .. " + E", hl.dsp.exec_cmd("ghostty -e yazi")) --
-- +new-window, not `-e yazi`: -e force-sets gtk-single-instance=false
-- so the CLI args are respected, which means every press builds a
-- whole second Ghostty application GTK init, config parse, font
-- discovery, renderer setup. +new-window instead asks the running
-- instance over D-Bus to open a window, and forwards --command.
hl.bind(mod .. " + E", hl.dsp.exec_cmd("ghostty +new-window --working-directory=~/ --command=yazi"))
hl.bind(mod .. " + N", hl.dsp.exec_cmd("nemo")) hl.bind(mod .. " + N", hl.dsp.exec_cmd("nemo"))
hl.bind(mod .. " + R", hl.dsp.exec_cmd("${pkgs.quickshell}/bin/qs ipc call launcher toggle")) hl.bind(mod .. " + R", hl.dsp.exec_cmd("${pkgs.quickshell}/bin/qs ipc call launcher toggle"))
hl.bind(mod .. " + Q", hl.dsp.window.close()) hl.bind(mod .. " + Q", hl.dsp.window.close())