shell icon indicating copy to clipboard operation
shell copied to clipboard

[FEATURE] Customised Game Mode

Open Shay0Plays opened this issue 1 year ago • 3 comments

What would you like to be added?

A way to change what game mode does, for example, I like game mode turning of blur and whatever else, but I want to keep animations and the gaps.

How will it help?

I just wanna keep as much of the look while also getting the little bit more performance when needed.

Extra info

Could be changed in the settings menu (which I know isn't really done but you know like a skeleton of it could be nice)

Shay0Plays avatar Oct 08 '25 22:10 Shay0Plays

I think an "onEnabled" and "onDisable" command would be good to do this

Markus328 avatar Oct 09 '25 01:10 Markus328

+1

Upstream (commenting as of b51fdb3) hard codes

https://github.com/caelestia-dots/shell/blob/b51fdb35ca7a14ac5a49e0d94fc5de2d79756aed/daemons/GameMode.qml#L21

and while it is sensible to not have rounded borders for performance...

Image

...with gaps at 0, the square window corners cut across the shell border's rounded inner corners.

I find this overlap super annoying and I would love to be able to configure the Hypr options.

And there's probably someone else who would like to tweak a different option, like for example #1221 has:

https://github.com/caelestia-dots/shell/blob/2641ddef050ae18ae578940a653160c852ab8919/services/GameMode.qml#L24-L25

as overrides for the same Hypr options (albeit on an older base)

1Git2Clone avatar Oct 30 '26 20:10 1Git2Clone

A way to change what game mode does, for example, I like game mode turning of blur and whatever else, but I want to keep animations and the gaps.

I just wanna keep as much of the look while also getting the little bit more performance when needed.

Could be changed in the settings menu (which I know isn't really done but you know like a skeleton of it could be nice)

game mode is a convenience shortcut, not a configuration surface, the whole point of game mode is: press one button, everything performance related changes, press it again, everything restores

and there are currently 8 keys in the game mode set, imho a Nexus settings panel with 8 individual toggles for something that's intended as a "one click performance mode" is overengineering and a maintenance burden for a feature most users will never customize

that being said, I do use game mode myself on older hardware and like the idea of convenient customization

i think the simplest way is to expose a game mode config option in shell.json under utilities, this could be easily implemented to enable/disable specific keys from the game mode set

edit: was looking into this and realized it needs a corresponding gameMode.options property added to UtilitiesConfig in the C++ backend

opened PR #2251 using FileView rather than GlobalConfig, since the options object is user defined and not part of the typed C++ config schema so this avoids a change to utilitiesconfig.hpp

nuknes avatar Oct 31 '26 06:10 nuknes