Skip to content

gothboiprncss/gamemode-inhibit-swayidle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Gamemode-Inhibit-Swayidle

Script to inhibit Swayidle with Gamemode.

This script is useful when using gamepad/controller and Swayidle automaticly locks the screen!

Simple solution to a stupid problem. (⌒_⌒;)

Installation

Install dependencies:

pacman -S meson systemd git dbus libinih swayidle 

Then install Gamemode:

git clone https://github.com/FeralInteractive/gamemode.git
cd gamemode
git checkout 1.8.1 # omit to build the master branch
./bootstrap.sh

FYI: current version of gamemode is 1.8.1 for more up to date guide see Gamemode github page.

After that just:

git clone https://github.com/gothboiprncss/gamemode-inhibit-swayidle.git
cd gamemode-inhibit-swayidle
cp sleep.sh ~/.config/hypr/scripts
cp gamemode.ini /usr/share/gamemode/

Using the script

With games outside of Steam use:

gamemoderun ./game

Then launch the game.

Automatically with Steam games:

Edit Steam launch options and type

gamemoderun %command%