hypr: enable and configure hyprtasking overview
This commit is contained in:
@@ -42,6 +42,7 @@ function M.setup(ctx)
|
|||||||
apply_hyprwinview_config()
|
apply_hyprwinview_config()
|
||||||
apply_hyprwobbly_config()
|
apply_hyprwobbly_config()
|
||||||
apply_dynamic_cursors_config()
|
apply_dynamic_cursors_config()
|
||||||
|
apply_hyprtasking_config()
|
||||||
apply_hyprglass_config()
|
apply_hyprglass_config()
|
||||||
apply_visual_performance_mode()
|
apply_visual_performance_mode()
|
||||||
apply_rules()
|
apply_rules()
|
||||||
@@ -62,6 +63,7 @@ function M.setup(ctx)
|
|||||||
hl.on("config.reloaded", apply_hyprwinview_config)
|
hl.on("config.reloaded", apply_hyprwinview_config)
|
||||||
hl.on("config.reloaded", apply_hyprwobbly_config)
|
hl.on("config.reloaded", apply_hyprwobbly_config)
|
||||||
hl.on("config.reloaded", apply_dynamic_cursors_config)
|
hl.on("config.reloaded", apply_dynamic_cursors_config)
|
||||||
|
hl.on("config.reloaded", apply_hyprtasking_config)
|
||||||
hl.on("config.reloaded", apply_hyprglass_config)
|
hl.on("config.reloaded", apply_hyprglass_config)
|
||||||
hl.on("config.reloaded", apply_visual_performance_mode)
|
hl.on("config.reloaded", apply_visual_performance_mode)
|
||||||
hl.on("config.reloaded", apply_rules)
|
hl.on("config.reloaded", apply_rules)
|
||||||
|
|||||||
@@ -89,7 +89,6 @@ 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")
|
||||||
@@ -334,6 +333,34 @@ function M.setup(ctx)
|
|||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local function apply_hyprtasking_config()
|
||||||
|
if verify_config or not enable_hyprtasking then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
|
hl.config({
|
||||||
|
plugin = {
|
||||||
|
hyprtasking = {
|
||||||
|
layout = "grid",
|
||||||
|
-- hyprtasking reads bg_color as 0xAARRGGBB and forces it opaque, so
|
||||||
|
-- the stock default (0x000000FF) renders as solid blue. Pin true black.
|
||||||
|
bg_color = 0xff000000,
|
||||||
|
gap_size = 10,
|
||||||
|
-- Active workspace tile is bordered with general:col.active_border,
|
||||||
|
-- inactive tiles with col.inactive_border; this is the selection
|
||||||
|
-- highlight and it follows hyprtasking:move. Keep it clearly visible.
|
||||||
|
border_size = 3,
|
||||||
|
exit_on_hovered = false,
|
||||||
|
close_overview_on_reload = false,
|
||||||
|
grid = {
|
||||||
|
rows = 3,
|
||||||
|
cols = 3,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
end
|
||||||
|
|
||||||
local function apply_visual_performance_mode()
|
local function apply_visual_performance_mode()
|
||||||
if verify_config then
|
if verify_config then
|
||||||
return
|
return
|
||||||
@@ -506,6 +533,7 @@ function M.setup(ctx)
|
|||||||
ctx.apply_hyprglass_config = apply_hyprglass_config
|
ctx.apply_hyprglass_config = apply_hyprglass_config
|
||||||
ctx.apply_hyprwobbly_config = apply_hyprwobbly_config
|
ctx.apply_hyprwobbly_config = apply_hyprwobbly_config
|
||||||
ctx.apply_dynamic_cursors_config = apply_dynamic_cursors_config
|
ctx.apply_dynamic_cursors_config = apply_dynamic_cursors_config
|
||||||
|
ctx.apply_hyprtasking_config = apply_hyprtasking_config
|
||||||
ctx.apply_visual_performance_mode = apply_visual_performance_mode
|
ctx.apply_visual_performance_mode = apply_visual_performance_mode
|
||||||
ctx.is_file_chooser_window = is_file_chooser_window
|
ctx.is_file_chooser_window = is_file_chooser_window
|
||||||
ctx.raise_file_chooser_window = raise_file_chooser_window
|
ctx.raise_file_chooser_window = raise_file_chooser_window
|
||||||
|
|||||||
@@ -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,
|
||||||
-- Disabled 2026-06-28: causes the cursor to intermittently disappear
|
-- Disabled 2026-06-28: causes the cursor to intermittently disappear
|
||||||
|
|||||||
Reference in New Issue
Block a user