Omarchy Gaming Mode Toggle
August 27, 2025 ยท View on GitHub
A one-command setup script that strives to add a Steam Deck-like gaming mode to Omarchy (or any Arch Linux + Hyprland system). Switch seamlessly between your productive Hyprland desktop and an optimized Steam Big Picture gaming environment.
๐ฎ What This Does
- Toggle between environments: Press
Super + F12to instantly switch from Hyprland to Steam Big Picture mode - Gaming-optimized: Uses
gamescopecompositor for better gaming performance and compatibility - Zero configuration: Everything works out of the box after running the script
โจ Features
- ๐ One-command setup - Run the script and you're done
- โจ๏ธ Keyboard shortcut -
Super + F12to switch to gaming mode - ๐ Bi-directional switching - Easy return to desktop from gaming mode
- ๐ฅ๏ธ Automatic resolution detection - Uses your current display resolution and refresh rate
๐ Requirements
- Omarchy (or Arch Linux + Hyprland)
- Steam installed via Omarchy menu (
Super + Alt + Spaceโ Install โ Gaming โ Steam) - Internet connection for downloading dependencies
๐ Installation
Quick Install
# Download the script
curl -fsSL https://raw.githubusercontent.com/cephalization/omarchy-steam-gaming-mode/main/setup-gaming-mode.sh -o setup-gaming-mode.sh
# Make it executable and run
chmod +x setup-gaming-mode.sh
./setup-gaming-mode.sh
Manual Install
git clone https://github.com/cephalization/omarchy-steam-gaming-mode.git
cd omarchy-steam-gaming-mode
chmod +x setup-gaming-mode.sh
./setup-gaming-mode.sh
๐ฏ Usage
Switch to Gaming Mode
- Keyboard: Press
Super + F12 - Launcher: Use the 'Gaming Mode' app launcher entry
- Terminal: Run
/usr/local/bin/switch-to-gaming
Return to Desktop
- From Steam Big Picture: Press
Super + wor add the return shortcut to Steam Big Picture as a Non-Steam game - Emergency exit:
Ctrl + Alt + F2, then runpkill -9 gamescope
๐ง What Gets Installed
The script automatically:
- Installs
gamescope(Steam's gaming compositor) - Installs
mangohud(performance monitoring) - Creates gaming mode switch scripts in
/usr/local/bin/ - Adds
Super + F12keybind to your Hyprland config
๐ ๏ธ Troubleshooting
Gaming mode won't start
- Ensure Steam is installed: Install via Omarchy menu first
- Test manually:
gamescope -e -f -W 2880 -H 1920 -r 120 -- steam -tenfoot - Check logs: Gaming mode issues are usually gamescope-related
Can't return to desktop
- Use the emergency exit:
Ctrl + Alt + F2, thenpkill -9 gamescope - Check if the "Return to Desktop" shortcut exists in Steam
How do I turn off performance monitoring?
- There is no easy toggle right now, but you can remove the
--mangoappparameter from thegamescopecommand in theswitch-to-gamingscript.sudo sed -i 's/--mangoapp//' /usr/local/bin/switch-to-gaming- Re-run the script to bring it back
๐ฎ Why This Is Awesome
This setup gives you the best of both worlds:
- Hyprland: Tiling window manager productivity for development and daily tasks
- Gaming Mode: Optimized Steam Big Picture experience with better game compatibility
Perfect for developers who want a productive Linux desktop but also enjoy gaming without the hassle of troubleshooting Wayland compatibility issues or suboptimal performance.
๐ค Contributing
Issues and pull requests welcome! This script is designed to be simple and reliable.
๐ License
MIT License - feel free to use and modify as needed.
๐ Credits
- Inspired by the Steam Deck's seamless desktop/gaming mode switching
- Built for the awesome Omarchy distribution by DHH
- Uses Valve's
gamescopecompositor for optimal gaming performance