Migrate hyprland config to lua

This commit is contained in:
Tobias Reisinger 2026-09-03 12:41:22 +02:00
commit bdaeb19666
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
29 changed files with 485 additions and 437 deletions

View file

@ -0,0 +1,47 @@
-- hyprland.lua
-- Generated by hypr-migrate from: single_mon.conf
-- Hyprland >= 0.55 required — https://wiki.hypr.land/
--
-- MIGRATION SUMMARY:
-- Variables: 0 resolved
-- Config keys: 0 emitted
-- Monitors: 0
-- Keybinds: 0 total, 0 collapsed into loops
-- Window rules: 0 total, 0 merged
-- Workspace rules: 10
-- Exec commands: 10
-- Gestures: 0
-- Warnings: 0 ← search MIGRATION_WARNING
-- Review needed: 0 ← search MIGRATION_NOTE
--
-- IMPORTANT: Verify output against https://wiki.hypr.land/ before use
-- The wiki is the only authoritative reference for Lua syntax.
require("defaults")
hl.workspace_rule({ workspace = WS01, monitor = MON })
hl.workspace_rule({ workspace = WS02, monitor = MON })
hl.workspace_rule({ workspace = WS03, monitor = MON })
hl.workspace_rule({ workspace = WS04, monitor = MON })
hl.workspace_rule({ workspace = WS05, monitor = MON })
hl.workspace_rule({ workspace = WS06, monitor = MON })
hl.workspace_rule({ workspace = WS07, monitor = MON })
hl.workspace_rule({ workspace = WS08, monitor = MON })
hl.workspace_rule({ workspace = WS09, monitor = MON })
hl.workspace_rule({ workspace = WS10, monitor = MON })
-- MIGRATION_NOTE: 'exec' (non-once) commands — these run on every reload.
-- Consider if they should be in hyprland.start or another event.
hl.on("monitor.layout_changed", function()
hl.dsp.workspace.move({ workspace = WS01, monitor = MON1 })
hl.dsp.workspace.move({ workspace = WS02, monitor = MON1 })
hl.dsp.workspace.move({ workspace = WS03, monitor = MON1 })
hl.dsp.workspace.move({ workspace = WS04, monitor = MON1 })
hl.dsp.workspace.move({ workspace = WS05, monitor = MON1 })
hl.dsp.workspace.move({ workspace = WS06, monitor = MON1 })
hl.dsp.workspace.move({ workspace = WS07, monitor = MON1 })
hl.dsp.workspace.move({ workspace = WS08, monitor = MON1 })
hl.dsp.workspace.move({ workspace = WS09, monitor = MON1 })
hl.dsp.workspace.move({ workspace = WS10, monitor = MON1 })
hl.dsp.focus({ workspace = WS01 })
end)