2024-01-15 01:01:41 +01:00
|
|
|
require("pinnacle").setup(function(Pinnacle)
|
|
|
|
local Input = Pinnacle.input
|
|
|
|
local Process = Pinnacle.process
|
|
|
|
local Output = Pinnacle.output
|
|
|
|
local Tag = Pinnacle.tag
|
|
|
|
local Window = Pinnacle.window
|
2024-01-12 04:58:35 +01:00
|
|
|
|
2024-01-15 01:01:41 +01:00
|
|
|
Input:keybind({ "shift" }, "f", function()
|
|
|
|
local focused = Window:get_focused()
|
|
|
|
if focused then
|
|
|
|
print(focused:fullscreen_or_maximized())
|
|
|
|
-- assert(focused:fullscreen_or_maximized() == "neither")
|
|
|
|
focused:set_fullscreen(true)
|
|
|
|
print(focused:fullscreen_or_maximized())
|
|
|
|
-- assert(focused:fullscreen_or_maximized() == "fullscreen")
|
|
|
|
end
|
2024-01-12 04:58:35 +01:00
|
|
|
end)
|
|
|
|
end)
|