1
1
Fork 0

walker: use key to close menu instead of service restart

Signed-off-by: Myned <dev@bjork.tech>
This commit is contained in:
Myned 2024-12-02 13:43:33 -06:00
parent 5bdf7fc7cb
commit edc5ccb848
Signed by: myned
GPG key ID: C7224454F7881A34
4 changed files with 8 additions and 3 deletions

View file

@ -26,6 +26,7 @@ in {
"plugin:hyprbars:nobar, floating:0" "plugin:hyprbars:nobar, floating:0"
"plugin:hyprbars:nobar, class:^1Password$, title:^1Password$" "plugin:hyprbars:nobar, class:^1Password$, title:^1Password$"
"plugin:hyprbars:nobar, class:^clipboard$" "plugin:hyprbars:nobar, class:^clipboard$"
"plugin:hyprbars:nobar, class:^dev\\.benz\\.walker$"
"plugin:hyprbars:nobar, class:^discord$, title:^Discord Updater$" "plugin:hyprbars:nobar, class:^discord$, title:^Discord Updater$"
"plugin:hyprbars:nobar, class:^dropdown$" "plugin:hyprbars:nobar, class:^dropdown$"
"plugin:hyprbars:nobar, class:^moe\\.launcher\\..+$" "plugin:hyprbars:nobar, class:^moe\\.launcher\\..+$"

View file

@ -281,6 +281,7 @@ in {
(tag.wine ["noborder" "noshadow"]) (tag.wine ["noborder" "noshadow"])
### Overrides ### Overrides
(class "dev\\.benz\\.walker" ["noanim" "noshadow" "pin" "stayfocused"]) # Imitate layer
(class "org\\.gnome\\.NautilusPreviewer" ["stayfocused"]) # Sushi (class "org\\.gnome\\.NautilusPreviewer" ["stayfocused"]) # Sushi
(class "signal" ["group override new" "tile"]) # Initial window in social group (class "signal" ["group override new" "tile"]) # Initial window in social group
(class "steam_app_1473350" ["workspace 0"]) # (the) Gnorp Apologue (class "steam_app_1473350" ["workspace 0"]) # (the) Gnorp Apologue

View file

@ -29,6 +29,9 @@ in {
activation_mode.disabled = true; # Key chords activation_mode.disabled = true; # Key chords
force_keyboard_focus = true; force_keyboard_focus = true;
# HACK: Window client required to send Esc key on Hyprland
as_window = true; # Disable layer
list = { list = {
placeholder = ""; placeholder = "";
#// show_initial_entries = false; #// show_initial_entries = false;

View file

@ -6,9 +6,9 @@
# @meta combine-shorts # @meta combine-shorts
# HACK: Restart service to close existing menu # HACK: Send Esc to close menu, requires window instead of layer
if hyprctl -j layers | jq -e '.[][][][] | select(.namespace == "walker")'; then if hyprctl -j clients | jq -e '.[] | select(.class == "dev.benz.walker")'; then
systemctl --user restart walker.service hyprctl dispatch sendshortcut ', Escape, class:^dev\.benz\.walker$'
exit exit
fi fi