ananicy-rules icon indicating copy to clipboard operation
ananicy-rules copied to clipboard

Change Gamescope rules

Open p2ndemic opened this issue 4 months ago • 1 comments

Gamescope is a nested microcompositor, but it is currently treated with rules applied as if it were a game. The current rules need to be modified and moved to ananicy-rules/00-default/DEs-and-WMs/

ananicy-rules/00-default/games/gamescope.rulesananicy-rules/00-default/DEs-and-WMs/gamescope.rules

Current state: ananicy-rules/00-default/games/gamescope.rules

{"name": "gamescope", "type": "Game", "nice": -20}

Target state: ananicy-rules/00-default/DEs-and-WMs/gamescope.rules

# https://github.com/ValveSoftware/gamescope
{"name": "gamescope", "type": "LowLatency_RT"}
{"name": "gamescope-wl", "type": "LowLatency_RT"}
{"name": "gamescopereaper", "type": "LowLatency_RT"}

ps aux output:

❯ ps aux | grep -iE 'gamescope'
admin       6411  6.9  0.7 979404 60652 ?        S<l  17:18   0:01 gamescope --rt --immediate-flips -w 1680 -h 1050 -W 2560 -H 1600 -f -r 120 --force-grab-cursor --mangoapp -- /home/admin/.local/share/Steam/ubuntu12_32/steam-launch-wrapper -- /home/admin/.local/share/Steam/ubuntu12_32/reaper SteamLaunch AppId=2742830 -- /home/admin/.local/share/Steam/steamapps/common/SteamLinuxRuntime_sniper/_v2-entry-point --verb=waitforexitandrun -- /home/admin/.local/share/Steam/compatibilitytools.d/GE-Proton10-13/proton waitforexitandrun /home/admin/.local/share/Steam/steamapps/common/Monster Train 2/MonsterTrain2.exe
admin       6437  0.0  0.0   7200  3656 ?        S    17:18   0:00 gamescopereaper -- /home/admin/.local/share/Steam/ubuntu12_32/steam-launch-wrapper -- /home/admin/.local/share/Steam/ubuntu12_32/reaper SteamLaunch AppId=2742830 -- /home/admin/.local/share/Steam/steamapps/common/SteamLinuxRuntime_sniper/_v2-entry-point --verb=waitforexitandrun -- /home/admin/.local/share/Steam/compatibilitytools.d/GE-Proton10-13/proton waitforexitandrun /home/admin/.local/share/Steam/steamapps/common/Monster Train 2/MonsterTrain2.exe
admin       6439  0.0  0.0   7200  3656 ?        S    17:18   0:00 gamescopereaper --respawn -- mangoapp
admin       6794  0.0  0.0   6868  2652 pts/0    S+   17:18   0:00 grep --color=auto -iE gamescope

pstree output:

        ├─systemd─┬─(sd-pam)
        │         ├─Xwayland───4*[{Xwayland}]
        │         ├─alacritty─┬─fish───btop───{btop}
        │         │           └─9*[{alacritty}]
        │         ├─alacritty─┬─fish─┬─pstree
        │         │           │      └─{fish}
        │         │           └─9*[{alacritty}]
        │         ├─at-spi-bus-laun─┬─dbus-broker-lau───dbus-broker
        │         │                 └─4*[{at-spi-bus-laun}]
        │         ├─at-spi2-registr───3*[{at-spi2-registr}]
        │         ├─bash───steam─┬─gamescope-wl─┬─gamescopereaper───reaper───srt-bwrap───pv-adverb─┬─MonsterTrain2.e───104*[{MonsterTrain2.e}]
        │         │              │              │                                                  ├─UnityCrashHandl───{UnityCrashHandl}
        │         │              │              │                                                  ├─explorer.exe───4*[{explorer.exe}]
        │         │              │              │                                                  ├─plugplay.exe───8*[{plugplay.exe}]
        │         │              │              │                                                  ├─python3───steam.exe───2*[{steam.exe}]
        │         │              │              │                                                  ├─rpcss.exe───5*[{rpcss.exe}]
        │         │              │              │                                                  ├─services.exe───8*[{services.exe}]
        │         │              │              │                                                  ├─svchost.exe───2*[{svchost.exe}]
        │         │              │              │                                                  ├─tabtip.exe───2*[{tabtip.exe}]
        │         │              │              │                                                  ├─winedevice.exe───7*[{winedevice.exe}]
        │         │              │              │                                                  ├─winedevice.exe───8*[{winedevice.exe}]
        │         │              │              │                                                  ├─wineserver
        │         │              │              │                                                  └─xalia.exe───6*[{xalia.exe}]
        │         │              │              ├─gamescopereaper───mangoapp─┬─sh
        │         │              │              │                            └─9*[{mangoapp}]
        │         │              │              └─14*[{gamescope-wl}]
        │         │              ├─srt-bwrap───pv-adverb─┬─steamwebhelper─┬─steamwebhelper───steamwebhelper───9*[{steamwebhelper}]
        │         │              │                       │                ├─steamwebhelper───steamwebhelper─┬─steamwebhelper───5*[{steamwebhelper}]
        │         │              │                       │                │                                 ├─steamwebhelper───17*[{steamwebhelper}]
        │         │              │                       │                │                                 └─steamwebhelper───13*[{steamwebhelper}]
        │         │              │                       │                ├─steamwebhelper───10*[{steamwebhelper}]
        │         │              │                       │                ├─steamwebhelper───6*[{steamwebhelper}]
        │         │              │                       │                └─53*[{steamwebhelper}]
        │         │              │                       └─steamwebhelper───2*[{steamwebhelper}]
Image

thanks

p2ndemic avatar Aug 30 '25 12:08 p2ndemic

You can make a PR

Shendisx avatar Sep 01 '25 22:09 Shendisx