Files
omarchy/bin/omarchy-toggle-fullscreen-desktop
T
David Heinemeier HanssonandClaude Opus 5 a7486beb60 Add Super + Ctrl + Alt + F to toggle a full screen desktop (#10672)
Hiding the top bar and removing the window gaps are the two things you
do to give the screen entirely to your windows, and doing both took two
hands and two hotkeys. `omarchy toggle fullscreen desktop` does them
together.

It only leaves full screen when both halves are in it, so hitting the
hotkey with just the bar hidden (or just the gaps gone) pulls the other
half into line instead of flipping the one you already set.


Claude-Session: https://claude.ai/code/session_01JB9phxP56gnP7qSidkkUJE

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-07 19:39:27 +02:00

28 lines
828 B
Bash
Executable File

#!/bin/bash
# omarchy:summary=Toggle a full screen desktop: hide the top bar and remove the window gaps together
# omarchy:args=[toggle|on|off]
# omarchy:examples=omarchy toggle fullscreen desktop | omarchy toggle fullscreen desktop off | omarchy toggle fullscreen desktop on
ACTION="${1:-toggle}"
case $ACTION in
toggle|"")
# Only leave full screen when both halves are already in it, so a lone bar
# or a lone gap toggle is pulled into line rather than flipped away.
if omarchy-toggle-enabled bar-off && omarchy-hyprland-toggle-enabled window-no-gaps; then
ACTION="off"
else
ACTION="on"
fi
;;
on|off) ;;
*)
echo "Usage: omarchy-toggle-fullscreen-desktop [toggle|on|off]" >&2
exit 1
;;
esac
omarchy-toggle-bar "$ACTION"
omarchy-hyprland-toggle window-no-gaps "$ACTION"