anyrun: revert to standalone mode — daemon crashes on GTK init
anyrun 25.12.0's daemon mode crashes with a GLib-GIO activate error. Revert to the reliable standalone killall toggle until upstream fixes the daemon. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
0519efdf01
commit
402f2f36f5
1 changed files with 3 additions and 9 deletions
|
|
@ -201,9 +201,6 @@ in
|
||||||
extraConfig =
|
extraConfig =
|
||||||
let
|
let
|
||||||
powerMenu = pkgs.writeShellScript "power-menu" ''
|
powerMenu = pkgs.writeShellScript "power-menu" ''
|
||||||
# Kill the daemon before using anyrun in standalone stdin mode;
|
|
||||||
# a concurrent standalone instance conflicts with the daemon.
|
|
||||||
${pkgs.anyrun}/bin/anyrun quit 2>/dev/null || true
|
|
||||||
choice=$(printf '%s\n' \
|
choice=$(printf '%s\n' \
|
||||||
$'\uf023 Lock' \
|
$'\uf023 Lock' \
|
||||||
$'\uf08b Logout' \
|
$'\uf08b Logout' \
|
||||||
|
|
@ -214,8 +211,6 @@ in
|
||||||
--show-results-immediately true \
|
--show-results-immediately true \
|
||||||
--hide-plugin-info true \
|
--hide-plugin-info true \
|
||||||
--close-on-click true)
|
--close-on-click true)
|
||||||
# Restart the daemon for instant launcher opens.
|
|
||||||
${pkgs.anyrun}/bin/anyrun daemon &
|
|
||||||
case "$choice" in
|
case "$choice" in
|
||||||
*Lock) ${pkgs.hyprlock}/bin/hyprlock ;;
|
*Lock) ${pkgs.hyprlock}/bin/hyprlock ;;
|
||||||
*Logout) hyprctl dispatch exit ;;
|
*Logout) hyprctl dispatch exit ;;
|
||||||
|
|
@ -266,7 +261,6 @@ in
|
||||||
hl.exec_cmd("wl-paste --type image --watch cliphist store")
|
hl.exec_cmd("wl-paste --type image --watch cliphist store")
|
||||||
hl.exec_cmd("hyprctl setcursor Bibata-Modern-Ice 24")
|
hl.exec_cmd("hyprctl setcursor Bibata-Modern-Ice 24")
|
||||||
hl.exec_cmd("swayosd-server")
|
hl.exec_cmd("swayosd-server")
|
||||||
hl.exec_cmd("anyrun daemon")
|
|
||||||
${lib.optionalString isMacbook ''hl.exec_cmd("hypridle")''}
|
${lib.optionalString isMacbook ''hl.exec_cmd("hypridle")''}
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
|
@ -292,7 +286,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 close || anyrun"))
|
hl.bind(mod .. " + R", hl.dsp.exec_cmd("killall anyrun || 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())
|
||||||
|
|
||||||
|
|
@ -311,8 +305,8 @@ in
|
||||||
hl.bind(mod .. " + K", hl.dsp.focus({ direction = "up" }))
|
hl.bind(mod .. " + K", hl.dsp.focus({ direction = "up" }))
|
||||||
hl.bind(mod .. " + J", hl.dsp.focus({ direction = "down" }))
|
hl.bind(mod .. " + J", hl.dsp.focus({ direction = "down" }))
|
||||||
|
|
||||||
-- Power menu — dismiss anyrun if open, then show menu
|
-- Power menu — toggle: kills anyrun if already open
|
||||||
hl.bind(mod .. " + L", hl.dsp.exec_cmd("anyrun close; ${powerMenu}"))
|
hl.bind(mod .. " + L", hl.dsp.exec_cmd("killall anyrun || ${powerMenu}"))
|
||||||
|
|
||||||
-- Move windows
|
-- Move windows
|
||||||
hl.bind(mod .. " + SHIFT + left", hl.dsp.window.move({ direction = "left" }))
|
hl.bind(mod .. " + SHIFT + left", hl.dsp.window.move({ direction = "left" }))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue