A really simple overengeeneried workspace/window "manager" for hyprland lua config
local miaout = require("miaout")miaout = miaout.Init()Important
hl.config({...}) need to be set before miaout = miaout.Init()
See config docs Here
hl.bind("KEY(S)", function()
miaout.scope.func
end)Some methods need a HL.Workspace as argument, to use the current workspace:
miaout.workspace.current:method()miaout.workspace:NewWorkspace()Create a new workspace
miaout.workspace:NextWorkspace()Focus the next workspace (e+1)
miaout.workspace:PrevWorkspace()Focus the next workspace (e-1)
miaout.workspace:NextMonitorWorkspace()Focus the next monitor workspace (m+1)
miaout.workspace:PrevMonitorWorkspace()Focus the next monitor workspace (m-1)
miaout.workspace:MoveToNextMonitor(workspace)Move the workspace to the next monitor
miaout.workspace:MoveToPrevMonitor(workspace)Move the workspace to the previous monitor
miaout.workspace:MoveToMonitor(workspace, monitor)Move the workspace to a monitor
miaout.workspace:NextLayout(workspace)Apply next layout to a workspace
miaout.workspace:PrevLayout(workspace)Apply previous layout to a workspace
miaout.workspace:DefaultLayout(workspace)Apply the default layout to a workspace
Some methods need a HL.Winfow as argument, to use the current window:
miaout.window.current:method()miaout.window:MoveToNextWorkspace(window)Move the window to the next workspace
miaout.window:MoveToPrevWorkspace(window)Move the window to the previous workspace
miaout.window:MoveToNextMonitorWorkspace(window)Move the window to the next monitor workspace
miaout.window:MoveToPrevMonitorWorkspace(window)Move the window to the previous monitor workspace
miaout.window:MoveToNextMonitor(window)Move the window to the next monitor
miaout.window:MoveToPrevMonitor(window)Move the window to the previous monitor
miaout.window:SwapWindows(windowA, windowB)Swap windowA with windowB (with current, swap with the last active window)
miaout.window:Fullscreen(window)Puts the window in full screen (toggle switch)
miaout.window:Maximise(window)Maximise the window (toggle switch)
miaout.window:Default(window)Reset the window fullscreen state to the default value
miaout.window:UpScale(window)Enlarge the window size according to the config
miaout.window:DownScale(window)Reduce the window size according to the config