anyrun: fix config and restore toggle behavior

terminal field still expects Option<T> wrapper (Some("ghostty")).
Restore close-or-open toggle for Super+R — with the daemon running,
`anyrun close` correctly fails when no window is open.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
rope 2026-05-18 12:35:07 +01:00
parent 76bef27ac7
commit 0519efdf01

View file

@ -292,7 +292,7 @@ in
-- Apps -- Apps
hl.bind(mod .. " + T", hl.dsp.exec_cmd("ghostty")) hl.bind(mod .. " + T", hl.dsp.exec_cmd("ghostty"))
hl.bind(mod .. " + E", hl.dsp.exec_cmd("nemo")) hl.bind(mod .. " + E", hl.dsp.exec_cmd("nemo"))
hl.bind(mod .. " + R", hl.dsp.exec_cmd("anyrun")) hl.bind(mod .. " + R", hl.dsp.exec_cmd("anyrun close || anyrun"))
hl.bind(mod .. " + Q", hl.dsp.window.close()) hl.bind(mod .. " + Q", hl.dsp.window.close())
hl.bind(mod .. " + SHIFT + E", hl.dsp.exit()) hl.bind(mod .. " + SHIFT + E", hl.dsp.exit())
@ -429,7 +429,7 @@ in
Config( Config(
desktop_actions: false, desktop_actions: false,
max_entries: 8, max_entries: 8,
terminal: "ghostty", terminal: Some("ghostty"),
) )
''; '';
}; };