added a custom function to toggle the power of the oddesy monitor

This commit is contained in:
venus
2026-06-24 22:18:15 -05:00
parent 95db385700
commit 1df6d1d9a2
5 changed files with 47 additions and 33 deletions

View File

@@ -1,29 +1,7 @@
-- -- Define the workspace rules table
-- local workspace_rules = {}
-- -- Forcing workspaces 1 through 5 to use the master layout on the ultrawide
-- for w = 1, 5 do
-- table.insert(workspace_rules, string.format("%d, monitor:DP-1, layout:master", w))
-- end
-- -- Keeping the global default layout for these workspaces on the secondary screen
-- for w = 6, 10 do
-- table.insert(workspace_rules, string.format("%d, monitor:HDMI-A-1", w))
-- end
-- -- Inject them into your config wrapper
-- hl.config({
-- workspace = workspace_rules
-- })
-- Initialize the workspace array inside the config table if it doesn't exist
hl.config.workspace = hl.config.workspace or {}
-- Forcing workspaces 1 through 5 to use the master layout on the ultrawide
for w = 1, 5 do
table.insert(hl.config.workspace, string.format("%d, monitor:DP-1, layout:master", w))
end
-- Keeping the global default layout for these workspaces on the secondary screen
for w = 6, 10 do
table.insert(hl.config.workspace, string.format("%d, monitor:HDMI-A-1", w))
end
hl.monitor({
-- Use 'desc:' followed by your monitor's exact string from hyprctl
output="desc:Samsung Electric Company Odyssey G95C HNTL300212",
mode = "5120x1440@240", -- Explicitly lock the ultrawide canvas & high refresh rate
scale = 1,
vrr = true
})