Migrate hyprland config to lua
This commit is contained in:
parent
3271f3924e
commit
bdaeb19666
29 changed files with 485 additions and 437 deletions
|
|
@ -1,22 +0,0 @@
|
|||
workspace=$ws01, monitor:$mon1, default:true
|
||||
workspace=$ws02, monitor:$mon1
|
||||
workspace=$ws03, monitor:$mon1
|
||||
workspace=$ws04, monitor:$mon1
|
||||
workspace=$ws05, monitor:$mon1
|
||||
workspace=$ws06, monitor:$mon1
|
||||
workspace=$ws07, monitor:$mon1
|
||||
|
||||
workspace=$ws08, monitor:$mon2
|
||||
workspace=$ws09, monitor:$mon2, default:true
|
||||
workspace=$ws10, monitor:$mon2
|
||||
|
||||
exec = hyprctl dispatch moveworkspacetomonitor $ws01 $mon1
|
||||
exec = hyprctl dispatch moveworkspacetomonitor $ws02 $mon1
|
||||
exec = hyprctl dispatch moveworkspacetomonitor $ws03 $mon1
|
||||
exec = hyprctl dispatch moveworkspacetomonitor $ws04 $mon1
|
||||
exec = hyprctl dispatch moveworkspacetomonitor $ws05 $mon1
|
||||
exec = hyprctl dispatch moveworkspacetomonitor $ws06 $mon1
|
||||
exec = hyprctl dispatch moveworkspacetomonitor $ws07 $mon1
|
||||
exec = hyprctl dispatch moveworkspacetomonitor $ws08 $mon2
|
||||
exec = hyprctl dispatch moveworkspacetomonitor $ws09 $mon2
|
||||
exec = hyprctl dispatch moveworkspacetomonitor $ws10 $mon2
|
||||
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)
|
||||
|
|
@ -1,21 +0,0 @@
|
|||
workspace=$ws01, monitor:$mon, default:true
|
||||
workspace=$ws02, monitor:$mon
|
||||
workspace=$ws03, monitor:$mon
|
||||
workspace=$ws04, monitor:$mon
|
||||
workspace=$ws05, monitor:$mon
|
||||
workspace=$ws06, monitor:$mon
|
||||
workspace=$ws07, monitor:$mon
|
||||
workspace=$ws08, monitor:$mon
|
||||
workspace=$ws09, monitor:$mon
|
||||
workspace=$ws10, monitor:$mon
|
||||
|
||||
exec = hyprctl dispatch moveworkspacetomonitor $ws01 $mon
|
||||
exec = hyprctl dispatch moveworkspacetomonitor $ws02 $mon
|
||||
exec = hyprctl dispatch moveworkspacetomonitor $ws03 $mon
|
||||
exec = hyprctl dispatch moveworkspacetomonitor $ws04 $mon
|
||||
exec = hyprctl dispatch moveworkspacetomonitor $ws05 $mon
|
||||
exec = hyprctl dispatch moveworkspacetomonitor $ws06 $mon
|
||||
exec = hyprctl dispatch moveworkspacetomonitor $ws07 $mon
|
||||
exec = hyprctl dispatch moveworkspacetomonitor $ws08 $mon
|
||||
exec = hyprctl dispatch moveworkspacetomonitor $ws09 $mon
|
||||
exec = hyprctl dispatch moveworkspacetomonitor $ws10 $mon
|
||||
47
.config/hypr/lib/single_mon.lua
Normal file
47
.config/hypr/lib/single_mon.lua
Normal 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)
|
||||
Loading…
Reference in a new issue