walker: use key to close menu instead of service restart
Signed-off-by: Myned <dev@bjork.tech>
This commit is contained in:
parent
5bdf7fc7cb
commit
edc5ccb848
4 changed files with 8 additions and 3 deletions
|
@ -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\\..+$"
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue