add gamemode config

This commit is contained in:
LordMZTE 2023-06-04 19:13:07 +02:00
parent 741d06a875
commit 499c10ff7d
Signed by: LordMZTE
GPG key ID: B64802DC33A64FF6
2 changed files with 18 additions and 0 deletions

13
.config/gamemode.ini.cgt Normal file
View file

@ -0,0 +1,13 @@
[general]
; Default is 5 seconds. Completely nuts.
reaper_freq=30
; renice to -5
renice=5
; I don't use screensavers
inhibit_screensaver=0
[custom]
start=<% opt.gamemode.on_start %>
end=<% opt.gamemode.on_stop %>

View file

@ -32,4 +32,9 @@ opts.commands = {
notification_daemon = "wired",
}
opts.gamemode = {
on_start = "notify-send 'Gamemode' 'Gamemode Active'",
on_stop = "notify-send 'Gamemode' 'Gamemode Inactive'",
}
return opts