Skip to content

Change Gamescope rules #208

@p2ndemic

Description

@p2ndemic

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions