Migrate hyprland config to lua
This commit is contained in:
parent
3271f3924e
commit
bdaeb19666
29 changed files with 485 additions and 437 deletions
48
.config/hypr/lib/7_3_ws_layout.lua
Normal file
48
.config/hypr/lib/7_3_ws_layout.lua
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
-- hyprland.lua
|
||||
-- Generated by hypr-migrate from: 7_3_ws_layout.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 = MON1 })
|
||||
hl.workspace_rule({ workspace = WS02, monitor = MON1 })
|
||||
hl.workspace_rule({ workspace = WS03, monitor = MON1 })
|
||||
hl.workspace_rule({ workspace = WS04, monitor = MON1 })
|
||||
hl.workspace_rule({ workspace = WS05, monitor = MON1 })
|
||||
hl.workspace_rule({ workspace = WS06, monitor = MON1 })
|
||||
hl.workspace_rule({ workspace = WS07, monitor = MON1 })
|
||||
hl.workspace_rule({ workspace = WS08, monitor = MON2 })
|
||||
hl.workspace_rule({ workspace = WS09, monitor = MON2 })
|
||||
hl.workspace_rule({ workspace = WS10, monitor = MON2 })
|
||||
|
||||
-- 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 = MON2 })
|
||||
hl.dsp.workspace.move({ workspace = WS09, monitor = MON2 })
|
||||
hl.dsp.workspace.move({ workspace = WS10, monitor = MON2 })
|
||||
|
||||
hl.dsp.focus({ workspace = WS01 })
|
||||
hl.dsp.focus({ workspace = WS09 })
|
||||
end)
|
||||
Loading…
Reference in a new issue