anyrun: check layers not clients for toggle

Anyrun is a layer-shell surface, not a regular client.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
rope 2026-05-30 11:53:56 +01:00
parent 53d486ee68
commit 3d95b7a927

View file

@ -262,7 +262,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("hyprctl clients -j | grep -q anyrun && anyrun close || anyrun")) hl.bind(mod .. " + R", hl.dsp.exec_cmd("hyprctl layers -j | grep -q anyrun && 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())