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.
- 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
- 🚀 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
- Omarchy (or Arch Linux + Hyprland)
- Steam installed via Omarchy menu (
Super + Alt + Space→ Install → Gaming → Steam) - Internet connection for downloading dependencies
# 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.shgit 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- Keyboard: Press
Super + F12 - Launcher: Use the 'Gaming Mode' app launcher entry
- Terminal: Run
/usr/local/bin/switch-to-gaming
- 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
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
- 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
- Use the emergency exit:
Ctrl + Alt + F2, thenpkill -9 gamescope - Check if the "Return to Desktop" shortcut exists in Steam
- 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
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.
Issues and pull requests welcome! This script is designed to be simple and reliable.
MIT License - feel free to use and modify as needed.
- 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