Use hyprwinview for window switch bindings
This commit is contained in:
@@ -281,6 +281,7 @@ local function apply_hyprwinview_config()
|
|||||||
hover_border_col = "rgba(66ccffee)",
|
hover_border_col = "rgba(66ccffee)",
|
||||||
border_size = 3,
|
border_size = 3,
|
||||||
window_order = "application",
|
window_order = "application",
|
||||||
|
keys_default_action = "return,enter,space,g,f",
|
||||||
keys_filter_toggle = "/",
|
keys_filter_toggle = "/",
|
||||||
show_app_icon = 1,
|
show_app_icon = 1,
|
||||||
app_icon_size = 48,
|
app_icon_size = 48,
|
||||||
@@ -319,7 +320,7 @@ local function apply_hyprwinview_config()
|
|||||||
right = { "d", "l", "right" },
|
right = { "d", "l", "right" },
|
||||||
up = { "w", "k", "up" },
|
up = { "w", "k", "up" },
|
||||||
down = { "s", "j", "down" },
|
down = { "s", "j", "down" },
|
||||||
go = { "return", "enter", "space", "g", "f" },
|
default_action = { "return", "enter", "space", "g", "f" },
|
||||||
bring = { "b", "shift+return", "shift+space" },
|
bring = { "b", "shift+return", "shift+space" },
|
||||||
bring_replace = { "shift + b" },
|
bring_replace = { "shift + b" },
|
||||||
close = { "escape", "q" },
|
close = { "escape", "q" },
|
||||||
@@ -2054,18 +2055,32 @@ bind(main_mod .. " + V", exec("wl-paste | xdotool type --file -"))
|
|||||||
bind(main_mod .. " + Tab", hyprwinview({
|
bind(main_mod .. " + Tab", hyprwinview({
|
||||||
action = "show",
|
action = "show",
|
||||||
start_in_filter_mode = true,
|
start_in_filter_mode = true,
|
||||||
|
default_action = "bring",
|
||||||
}), overview_bind_opts)
|
}), overview_bind_opts)
|
||||||
bind(main_mod .. " + SHIFT + Tab", hyprwinview({
|
bind(main_mod .. " + SHIFT + Tab", hyprwinview({
|
||||||
action = "show",
|
action = "show",
|
||||||
include_current_workspace = false,
|
include_current_workspace = false,
|
||||||
start_in_filter_mode = true,
|
start_in_filter_mode = true,
|
||||||
|
default_action = "bring",
|
||||||
}), overview_bind_opts)
|
}), overview_bind_opts)
|
||||||
bind(main_mod .. " + SHIFT + slash", hyprwinview({ action = "toggle-filter" }), overview_bind_opts)
|
bind(main_mod .. " + SHIFT + slash", hyprwinview({ action = "toggle-filter" }), overview_bind_opts)
|
||||||
bind("ALT + Tab", hyprexpo("open"), overview_bind_opts)
|
bind("ALT + Tab", hyprexpo("open"), overview_bind_opts)
|
||||||
bind("ALT + SHIFT + Tab", hyprexpo("bring"), overview_bind_opts)
|
bind("ALT + SHIFT + Tab", hyprexpo("bring"), overview_bind_opts)
|
||||||
bind(main_mod .. " + G", exec(shell_ui_command .. " window go"))
|
bind(main_mod .. " + G", hyprwinview({
|
||||||
bind(main_mod .. " + B", exec(shell_ui_command .. " window bring"))
|
action = "show",
|
||||||
bind(main_mod .. " + SHIFT + B", exec(shell_ui_command .. " window replace"))
|
start_in_filter_mode = true,
|
||||||
|
default_action = "select",
|
||||||
|
}), overview_bind_opts)
|
||||||
|
bind(main_mod .. " + B", hyprwinview({
|
||||||
|
action = "show",
|
||||||
|
start_in_filter_mode = true,
|
||||||
|
default_action = "bring",
|
||||||
|
}), overview_bind_opts)
|
||||||
|
bind(main_mod .. " + SHIFT + B", hyprwinview({
|
||||||
|
action = "show",
|
||||||
|
start_in_filter_mode = true,
|
||||||
|
default_action = "bring-replace",
|
||||||
|
}), overview_bind_opts)
|
||||||
|
|
||||||
bind(main_mod .. " + W", function()
|
bind(main_mod .. " + W", function()
|
||||||
focus_direction("up")
|
focus_direction("up")
|
||||||
|
|||||||
Reference in New Issue
Block a user