Skip to content

Ripplingsnake12/Hyperland-Steamos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

8 Commits
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŽฎ Hyprland โ†” SteamOS Session Switcher

Hyprland Logo

Seamlessly switch between Desktop and Gaming modes on Arch Linux

Arch Linux Hyprland Steam License: MIT

โœจ Features

๐Ÿš€ One-Click Session Switching - Toggle between Desktop (Hyprland) and Gaming (SteamOS-like) modes
๐ŸŽฏ Gaming Optimized - Seamless integration with Steam Big Picture and Gamescope
๐ŸŽจ Beautiful UI - Custom Wofi interface with glassmorphism effects
โšก Lightning Fast - Instant session switching with proper cleanup
๐Ÿ”ง Arch Native - Built specifically for Arch Linux gaming setups
๐ŸŽฎ Controller Friendly - Works perfectly with gaming controllers

๐Ÿ–ผ๏ธ Preview

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚        Switch Mode:         โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚  ๐ŸŽฎ SteamOS                 โ”‚
โ”‚  ๐Ÿ–ฅ๏ธ Desktop                 โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

Elegant Wofi interface with SteamOS-inspired glassmorphism design

๐ŸŽฏ What This Does

Transform your Arch Linux gaming rig into the ultimate dual-purpose machine:

  • ๐Ÿ–ฅ๏ธ Desktop Mode: Full Hyprland experience with UWSM session management
  • ๐ŸŽฎ Gaming Mode: SteamOS-like experience with Gamescope for optimal gaming performance
  • โŒจ๏ธ Quick Switch: SUPER + F12 to instantly toggle between modes
  • ๐Ÿ”„ Smart Cleanup: Properly terminates sessions and handles process management

๐Ÿ“‹ Requirements

Core Dependencies

# Essential packages
sudo pacman -S hyprland sddm wofi gamescope steam

# AUR packages (install with yay)
yay -S gamescope-session-git uwsm-git gamescope-session-steam-git

System Setup

  • OS: Arch Linux (or Arch-based distro)
  • Display Manager: SDDM
  • Session Manager: UWSM
  • Window Manager: Hyprland
  • Gaming Layer: Gamescope + Steam

๐Ÿš€ Installation

Quick Install

# Clone the repository
git clone https://github.com/yourusername/hyprland-steamos-switcher.git
cd hyprland-steamos-switcher

# Make installer executable
chmod +x install.sh

# Run installation
./install.sh

Manual Installation

Click to expand manual installation steps
  1. Copy the session switcher script:
mkdir -p ~/.local/bin
cp install.sh ~/.local/bin/switch-session.sh
chmod +x ~/.local/bin/switch-session.sh
  1. Add Hyprland keybinding:
echo "bind = SUPER, F12, exec, ~/.local/bin/switch-session.sh" >> ~/.config/hypr/hyprland.conf
  1. Configure SDDM for autologin (optional):
sudo tee /etc/sddm.conf > /dev/null <<EOF
[Autologin]
User=yourusername
Session=switcher
EOF

๐ŸŽฎ Usage

Switching Sessions

Method 1: Keyboard Shortcut

  • Press SUPER + F12 while in Hyprland
  • Select your desired mode from the Wofi menu

Method 2: Terminal

~/.local/bin/switch-session.sh

Method 3: From Gaming Mode

  • Use Steam's built-in session switching
  • Or run the script from a terminal in desktop mode

Session Types

Mode Description Best For
๐ŸŽฎ SteamOS Mode Gamescope + Steam Big Picture Gaming, controller use, living room setup
๐Ÿ–ฅ๏ธ Desktop Mode Hyprland + UWSM Development, productivity, general computing

โš™๏ธ Configuration

Customizing the Wofi Interface

Edit ~/.config/wofi/style.css to modify the appearance:

/* Example: Change the accent color */
#entry:selected {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.8) 0%, rgba(255, 142, 83, 0.8) 100%);
}

Adding Custom Session Options

Modify the script to add more session types:

choice=$(printf "๐ŸŽฎ SteamOS\n๐Ÿ–ฅ๏ธ Desktop\n๐ŸŽฒ RetroArch\n๐ŸŽต Music Mode" | wofi --dmenu ...)

๐Ÿ› ๏ธ Troubleshooting

Common Issues

Session won't switch

# Check if services are running
systemctl --user status gamescope-session-plus@steam
systemctl --user status uwsm@hyprland-uwsm.service

Wofi not appearing

# Verify Wayland display
echo $WAYLAND_DISPLAY
echo $XDG_RUNTIME_DIR

Steam not launching in gaming mode

# Restart Steam service
systemctl --user restart gamescope-session-plus@steam

Getting Help

๐Ÿ—‘๏ธ Uninstallation

To completely remove the session switcher:

chmod +x uninstall.sh
./uninstall.sh

This will remove:

  • โœ… Session switching scripts
  • โœ… SDDM autologin configuration
  • โœ… Systemd service overrides
  • โœ… Wofi custom styling
  • โœ… Hyprland keybinding

Preserved:

  • โœ… Hyprland configuration (except switcher keybinding)
  • โœ… UWSM setup
  • โœ… All installed packages
  • โœ… Steam and gaming setup

๐Ÿ—๏ธ Architecture

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚   Desktop Mode  โ”‚    โ”‚   Gaming Mode   โ”‚
โ”‚                 โ”‚    โ”‚                 โ”‚
โ”‚   Hyprland      โ”‚โ—„โ”€โ”€โ–บโ”‚   Gamescope     โ”‚
โ”‚   + UWSM        โ”‚    โ”‚   + Steam       โ”‚
โ”‚   + Full DE     โ”‚    โ”‚   + Big Picture โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜    โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
         โ–ฒ                       โ–ฒ
         โ”‚                       โ”‚
         โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ Wofi โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
              Session Switcher

๐Ÿค Contributing

We love contributions! Here's how you can help:

  1. ๐Ÿด Fork the repository
  2. ๐ŸŒฟ Create a feature branch (git checkout -b feature/AmazingFeature)
  3. ๐Ÿ’ Commit your changes (git commit -m 'Add some AmazingFeature')
  4. ๐Ÿ“ค Push to the branch (git push origin feature/AmazingFeature)
  5. ๐ŸŽฏ Open a Pull Request

Development Setup

# Clone your fork
git clone https://github.com/yourusername/hyprland-steamos-switcher.git

# Create a development branch
git checkout -b my-awesome-feature

# Test your changes
./install.sh  # Test installation
./uninstall.sh  # Test cleanup

๐Ÿ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

๐Ÿ™ Acknowledgments

  • Hyprland - Amazing Wayland compositor
  • Gamescope - Valve's gaming compositor
  • UWSM - Universal Wayland Session Manager
  • Wofi - Beautiful application launcher
  • Arch Linux Community - For the amazing ecosystem

๐ŸŒŸ Star History

Star History Chart


Made with โค๏ธ for the Arch Linux Gaming Community

๐Ÿ  Homepage โ€ข ๐Ÿ“– Documentation โ€ข ๐Ÿ› Report Bug โ€ข ๐Ÿ’ก Request Feature

About

Seamless Hyprland <-> Gamescope Session Switcher for Arch Linux

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages