Enable hyprtasking workspace overview
This commit is contained in:
@@ -88,17 +88,7 @@ function M.setup(ctx)
|
|||||||
end
|
end
|
||||||
|
|
||||||
local function setup_window_overview_bindings()
|
local function setup_window_overview_bindings()
|
||||||
bind(main_mod .. " + SHIFT + C", hl.dsp.window.close(), desc("Close active window"))
|
local function toggle_hyprtasking()
|
||||||
bind(main_mod .. " + SHIFT + Q", hl.dsp.exit(), desc("Exit Hyprland"))
|
|
||||||
bind(main_mod .. " + Tab", hyprexpo("toggle"), desc("Toggle hyprexpo workspace overview", overview_bind_opts))
|
|
||||||
bind(main_mod .. " + SHIFT + Tab", hyprwinview({
|
|
||||||
action = "show",
|
|
||||||
include_current_workspace = false,
|
|
||||||
start_in_filter_mode = true,
|
|
||||||
default_action = "bring",
|
|
||||||
}), desc("Show all-workspace window overview", overview_bind_opts))
|
|
||||||
bind(main_mod .. " + SHIFT + slash", hyprwinview({ action = "toggle-filter" }), desc("Toggle window overview filter", overview_bind_opts))
|
|
||||||
bind("ALT + Tab", function()
|
|
||||||
if hl.plugin and hl.plugin.hyprtasking and hl.plugin.hyprtasking.toggle then
|
if hl.plugin and hl.plugin.hyprtasking and hl.plugin.hyprtasking.toggle then
|
||||||
hl.plugin.hyprtasking.toggle("cursor")
|
hl.plugin.hyprtasking.toggle("cursor")
|
||||||
else
|
else
|
||||||
@@ -110,8 +100,19 @@ function M.setup(ctx)
|
|||||||
font_size = 13,
|
font_size = 13,
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
end, desc("Toggle hyprtasking workspace overview", overview_bind_opts))
|
end
|
||||||
bind("ALT + SHIFT + Tab", hyprexpo("on"), desc("Open hyprexpo workspace overview", overview_bind_opts))
|
|
||||||
|
bind(main_mod .. " + SHIFT + C", hl.dsp.window.close(), desc("Close active window"))
|
||||||
|
bind(main_mod .. " + SHIFT + Q", hl.dsp.exit(), desc("Exit Hyprland"))
|
||||||
|
bind(main_mod .. " + Tab", toggle_hyprtasking, desc("Toggle hyprtasking workspace overview", overview_bind_opts))
|
||||||
|
bind(main_mod .. " + SHIFT + Tab", hyprwinview({
|
||||||
|
action = "show",
|
||||||
|
include_current_workspace = false,
|
||||||
|
start_in_filter_mode = true,
|
||||||
|
default_action = "bring",
|
||||||
|
}), desc("Show all-workspace window overview", overview_bind_opts))
|
||||||
|
bind(main_mod .. " + SHIFT + slash", hyprwinview({ action = "toggle-filter" }), desc("Toggle window overview filter", overview_bind_opts))
|
||||||
|
bind("ALT + Tab", toggle_hyprtasking, desc("Toggle hyprtasking workspace overview", overview_bind_opts))
|
||||||
bind(main_mod .. " + G", hyprwinview({
|
bind(main_mod .. " + G", hyprwinview({
|
||||||
action = "show",
|
action = "show",
|
||||||
start_in_filter_mode = true,
|
start_in_filter_mode = true,
|
||||||
|
|||||||
@@ -89,6 +89,7 @@ function M.setup(ctx)
|
|||||||
end
|
end
|
||||||
if enable_hyprtasking and not verify_config then
|
if enable_hyprtasking and not verify_config then
|
||||||
hl.plugin.load("/run/current-system/sw/lib/libhyprtasking.so")
|
hl.plugin.load("/run/current-system/sw/lib/libhyprtasking.so")
|
||||||
|
os.execute("hyprctl eval 'hl.config({plugin={hyprtasking={full_render=true}}})' >/dev/null 2>&1 || true")
|
||||||
end
|
end
|
||||||
if enable_hyprexpo and not enable_hyprtasking and not verify_config then
|
if enable_hyprexpo and not enable_hyprtasking and not verify_config then
|
||||||
hl.plugin.load("/run/current-system/sw/lib/libhyprexpo.so")
|
hl.plugin.load("/run/current-system/sw/lib/libhyprexpo.so")
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ return {
|
|||||||
-- hook fires on every popup commit). Re-enable once fixed upstream.
|
-- hook fires on every popup commit). Re-enable once fixed upstream.
|
||||||
enable_hyprexpo = false,
|
enable_hyprexpo = false,
|
||||||
enable_hyprwinview = true,
|
enable_hyprwinview = true,
|
||||||
enable_hyprtasking = false,
|
enable_hyprtasking = true,
|
||||||
enable_workspace_history = true,
|
enable_workspace_history = true,
|
||||||
enable_hyprwobbly = true,
|
enable_hyprwobbly = true,
|
||||||
enable_dynamic_cursors = true,
|
enable_dynamic_cursors = true,
|
||||||
|
|||||||
6
nixos/flake.lock
generated
6
nixos/flake.lock
generated
@@ -1149,11 +1149,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1781106993,
|
"lastModified": 1781534922,
|
||||||
"narHash": "sha256-BddvyVeSgLZU34hzI4yaXYILmfQN9n7oQJk4RbSaZM4=",
|
"narHash": "sha256-jmzKIyRmpZLpxnR7DsWZ42bMzt+WeYDk+/x3FKSkovM=",
|
||||||
"owner": "yerlotic",
|
"owner": "yerlotic",
|
||||||
"repo": "hyprtasking",
|
"repo": "hyprtasking",
|
||||||
"rev": "3b3cb9d0b2fd4f6f4227b5b9539e849a37a17ddd",
|
"rev": "1a82ca1ac79602e3bfd5ecb0a52c40c2bf818586",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|||||||
@@ -198,6 +198,10 @@
|
|||||||
src = inputs.hyprtasking;
|
src = inputs.hyprtasking;
|
||||||
|
|
||||||
strictDeps = true;
|
strictDeps = true;
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace src/layout/layout_base.cpp \
|
||||||
|
--replace-fail 'e.element->passName()' 'e->element->passName()'
|
||||||
|
'';
|
||||||
nativeBuildInputs =
|
nativeBuildInputs =
|
||||||
[
|
[
|
||||||
pkgs.pkg-config
|
pkgs.pkg-config
|
||||||
@@ -287,10 +291,9 @@
|
|||||||
hyprlandPluginPackages =
|
hyprlandPluginPackages =
|
||||||
[
|
[
|
||||||
hyprNStack
|
hyprNStack
|
||||||
hyprexpo
|
|
||||||
hyprwinview
|
hyprwinview
|
||||||
hyprWorkspaceHistory
|
hyprWorkspaceHistory
|
||||||
# hyprtasking # disabled: build failure against current Hyprland API
|
hyprtasking
|
||||||
hyprDynamicCursors
|
hyprDynamicCursors
|
||||||
hyprwobbly
|
hyprwobbly
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -204,6 +204,10 @@
|
|||||||
src = inputs.hyprtasking;
|
src = inputs.hyprtasking;
|
||||||
|
|
||||||
strictDeps = true;
|
strictDeps = true;
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace src/layout/layout_base.cpp \
|
||||||
|
--replace-fail 'e.element->passName()' 'e->element->passName()'
|
||||||
|
'';
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
pkgs.pkg-config
|
pkgs.pkg-config
|
||||||
pkgs.meson
|
pkgs.meson
|
||||||
@@ -291,10 +295,9 @@
|
|||||||
hyprlandPluginPackages =
|
hyprlandPluginPackages =
|
||||||
[
|
[
|
||||||
hyprNStack
|
hyprNStack
|
||||||
hyprexpo
|
|
||||||
hyprwinview
|
hyprwinview
|
||||||
hyprWorkspaceHistory
|
hyprWorkspaceHistory
|
||||||
# hyprtasking # disabled: build failure against current Hyprland API
|
hyprtasking
|
||||||
hyprDynamicCursors
|
hyprDynamicCursors
|
||||||
hyprwobbly
|
hyprwobbly
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user