Skip to content

[Feature Request] Toggle #100

Description

@juangiordana

I've bound $mainMod to hyprlauncher using bindl=$mainMod, SUPER_L, exec, hyprlauncher.

The thing is that if I regret to launch a program, I don't like to pressing Esc to exit the launcher but simply hitting $mainMod again.

If I use something like bindl=$mainMod, SUPER_L, exec, pkill hyprlauncher || hyprlauncher that would also kill the daemon, and even though it will work, it's not elegant.

Another approach is to use a script, but I've found that inconvenient.

#!/usr/bin/env bash
if hyprctl clients -j | jq -e '.[] | select(.class == "hyprlauncher")' > /dev/null 2>&1; then
    hyprctl dispatch killactive
else
    hyprlauncher
fi

So the feature request is to have a toggle flag to close the hyprlauncher window if it's opened.

Thanks!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions