From 7100c41449d3d8156af6ba5942809cb611a9058e Mon Sep 17 00:00:00 2001 From: Ihar Suvorau Date: Thu, 3 Jul 2025 01:23:41 +0300 Subject: [PATCH] Prevent wofi from stack up When hitting SUPER + space several times, a new instance of wofi is launched each time and they stack upon each other. This change uses a file lock to prevent starting several instances of wofi. Thanks to everyone from this thread https://www.reddit.com/r/archlinux/comments/m327pt/prevent_wofi_from_stacking_up/ --- default/hypr/bindings.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/default/hypr/bindings.conf b/default/hypr/bindings.conf index 20a974a..8dbd878 100644 --- a/default/hypr/bindings.conf +++ b/default/hypr/bindings.conf @@ -10,7 +10,7 @@ bind = SUPER, G, exec, $messenger bind = SUPER, O, exec, obsidian -disable-gpu bind = SUPER, slash, exec, $passwordManager -bind = SUPER, space, exec, wofi --show drun --sort-order=alphabetical +bind = SUPER, space, exec, flock --nonblock /tmp/.wofi.lock -c "wofi --show drun --sort-order=alphabetical" bind = SUPER SHIFT, SPACE, exec, pkill -SIGUSR1 waybar bind = SUPER CTRL, SPACE, exec, ~/.local/share/omarchy/bin/swaybg-next bind = SUPER SHIFT CTRL, SPACE, exec, ~/.local/share/omarchy/bin/omarchy-theme-next