Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow Mac Full Screen #21

Open
danst0 opened this issue Apr 11, 2021 · 2 comments
Open

Allow Mac Full Screen #21

danst0 opened this issue Apr 11, 2021 · 2 comments

Comments

@danst0
Copy link

danst0 commented Apr 11, 2021

Hi,

currently Hyper-f only maximizes the window. Is there a way to use MacOSX Fullscreen-Mode?

Daniel

@gingerbeardman
Copy link

Enter full screen seems to be a system hotkey of Cmd+Control+F

@mskar
Copy link

mskar commented Nov 10, 2022

function exitFullScreen(win)
  local win = win or hs.window.focusedWindow()
  if win:isFullScreen() then
    win:setFullScreen(false)
  end
end

function enterFullScreen(win)
  local win = win or hs.window.focusedWindow()
  if not win:isFullScreen() then
    win:setFullScreen(true)
  end
end

function toggleFullScreen(win)
  local win = win or hs.window.focusedWindow()
  if win:isFullScreen() then
    win:setFullScreen(false)
  else
    win:setFullScreen(true)
  end
end

try to bind these functions to shortcuts if you want to control this via hammerspoon, but I think it is better to change the macOS shortcut

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants