* gamer-mode: 0.7.0 Adds a monitor bar widget that renders live readings the way the shell's own sysmon widgets do, with a flame band beneath them while gamer mode runs. - Readings warm toward the highlight colour over the shell's own activity and critical thresholds, so a monitor sitting beside a sysmon capsule group warms in step with it. - The flame is advected along a wandering wind and sharpened so it reads as tongues rather than a smudge; the flare ignites and decays on an ease-out. - The band's slot is reserved on each side of the readings, so toggling gamer mode never moves a digit and the readings stay centred in the pill. - Panel readings outrank their captions, progress fills warm at the same thresholds, and the mark carries a load-reactive halo with a soft ember under the header while the mode runs. - The mark is redrawn and ships a dark and a light ramp. * gamer-mode: tighten the README prose
228 lines
5.7 KiB
TOML
228 lines
5.7 KiB
TOML
id = "nomadcxx/gamer-mode"
|
|
name = "Gamer Mode"
|
|
version = "0.7.0"
|
|
plugin_api = 19
|
|
author = "Nomadcxx"
|
|
license = "MIT"
|
|
dependencies = ["pgrep", "pkill", "powerprofilesctl", "systemctl"]
|
|
tags = ["bar", "panel", "service", "gaming", "system", "hardware"]
|
|
icon = "device-gamepad-2"
|
|
description = "Live CPU/RAM/GPU metrics and a one-click gamer mode that suspends and restores background resource hogs."
|
|
|
|
[[setting]]
|
|
key = "glyph"
|
|
type = "glyph"
|
|
label_key = "settings.glyph.label"
|
|
description_key = "settings.glyph.description"
|
|
default = "device-gamepad-2"
|
|
|
|
[[setting]]
|
|
key = "icon_file"
|
|
type = "file"
|
|
label_key = "settings.icon_file.label"
|
|
description_key = "settings.icon_file.description"
|
|
default = ""
|
|
extensions = ["svg", "png"]
|
|
|
|
[[setting]]
|
|
key = "icon_file_active"
|
|
type = "file"
|
|
label_key = "settings.icon_file_active.label"
|
|
description_key = "settings.icon_file_active.description"
|
|
default = ""
|
|
extensions = ["svg", "png"]
|
|
|
|
[[setting]]
|
|
key = "click_action"
|
|
type = "select"
|
|
label_key = "settings.click_action.label"
|
|
description_key = "settings.click_action.description"
|
|
default = "open_panel"
|
|
options = [
|
|
{ value = "open_panel", label_key = "settings.click_action.options.open_panel" },
|
|
{ value = "toggle", label_key = "settings.click_action.options.toggle" },
|
|
]
|
|
|
|
[[setting]]
|
|
key = "poll_interval"
|
|
type = "select"
|
|
label_key = "settings.poll_interval.label"
|
|
description_key = "settings.poll_interval.description"
|
|
default = "3"
|
|
options = [
|
|
{ value = "2", label_key = "settings.poll_interval.options.2" },
|
|
{ value = "3", label_key = "settings.poll_interval.options.3" },
|
|
{ value = "5", label_key = "settings.poll_interval.options.5" },
|
|
]
|
|
|
|
[[setting]]
|
|
key = "profile"
|
|
type = "select"
|
|
label_key = "settings.profile.label"
|
|
description_key = "settings.profile.description"
|
|
default = "light"
|
|
options = [
|
|
{ value = "light", label_key = "settings.profile.options.light" },
|
|
{ value = "heavy", label_key = "settings.profile.options.heavy" },
|
|
]
|
|
|
|
[[setting]]
|
|
key = "auto_performance"
|
|
type = "bool"
|
|
label_key = "settings.auto_performance.label"
|
|
description_key = "settings.auto_performance.description"
|
|
default = true
|
|
|
|
[[setting]]
|
|
key = "show_temps"
|
|
type = "bool"
|
|
label_key = "settings.show_temps.label"
|
|
description_key = "settings.show_temps.description"
|
|
default = true
|
|
|
|
[[setting]]
|
|
key = "targets"
|
|
type = "string"
|
|
label_key = "settings.targets.label"
|
|
description_key = "settings.targets.description"
|
|
default = ""
|
|
advanced = true
|
|
|
|
[[service]]
|
|
id = "service"
|
|
entry = "service.luau"
|
|
|
|
[[panel]]
|
|
id = "main"
|
|
entry = "panel.luau"
|
|
width = 560
|
|
height = 820
|
|
placement = "attached"
|
|
position = "auto"
|
|
# "on_demand" takes keyboard focus only when you click inside the panel, so opening it
|
|
# from the bar leaves focus where it was. "none" would refuse focus entirely, but the
|
|
# shell requires dismiss_on_outside_click = false alongside it, which would leave the
|
|
# panel on screen until you click the bar icon again.
|
|
keyboard_focus = "on_demand"
|
|
|
|
[[widget]]
|
|
id = "gamermode"
|
|
entry = "widget.luau"
|
|
|
|
[[widget]]
|
|
id = "monitor"
|
|
entry = "monitor.luau"
|
|
|
|
[[widget.setting]]
|
|
key = "show_cpu"
|
|
type = "bool"
|
|
label_key = "settings.monitor.show_cpu.label"
|
|
description_key = "settings.monitor.show_cpu.description"
|
|
default = true
|
|
|
|
[[widget.setting]]
|
|
key = "show_cpu_temp"
|
|
type = "bool"
|
|
label_key = "settings.monitor.show_cpu_temp.label"
|
|
default = true
|
|
|
|
[[widget.setting]]
|
|
key = "show_ram"
|
|
type = "bool"
|
|
label_key = "settings.monitor.show_ram.label"
|
|
default = true
|
|
|
|
[[widget.setting]]
|
|
key = "show_swap"
|
|
type = "bool"
|
|
label_key = "settings.monitor.show_swap.label"
|
|
default = false
|
|
|
|
[[widget.setting]]
|
|
key = "show_gpu"
|
|
type = "bool"
|
|
label_key = "settings.monitor.show_gpu.label"
|
|
default = true
|
|
|
|
[[widget.setting]]
|
|
key = "show_gpu_temp"
|
|
type = "bool"
|
|
label_key = "settings.monitor.show_gpu_temp.label"
|
|
default = true
|
|
|
|
[[widget.setting]]
|
|
key = "show_vram"
|
|
type = "bool"
|
|
label_key = "settings.monitor.show_vram.label"
|
|
default = false
|
|
|
|
[[widget.setting]]
|
|
key = "show_load"
|
|
type = "bool"
|
|
label_key = "settings.monitor.show_load.label"
|
|
default = false
|
|
|
|
[[widget.setting]]
|
|
key = "show_net"
|
|
type = "bool"
|
|
label_key = "settings.monitor.show_net.label"
|
|
default = true
|
|
|
|
[[widget.setting]]
|
|
key = "show_glyphs"
|
|
type = "bool"
|
|
label_key = "settings.monitor.show_glyphs.label"
|
|
description_key = "settings.monitor.show_glyphs.description"
|
|
default = true
|
|
|
|
[[widget.setting]]
|
|
key = "label_min_width"
|
|
type = "int"
|
|
label_key = "settings.monitor.label_min_width.label"
|
|
description_key = "settings.monitor.label_min_width.description"
|
|
default = 0
|
|
min = 0
|
|
max = 200
|
|
|
|
[[widget.setting]]
|
|
key = "highlight_gamer_mode"
|
|
type = "bool"
|
|
label_key = "settings.monitor.highlight_gamer_mode.label"
|
|
description_key = "settings.monitor.highlight_gamer_mode.description"
|
|
default = true
|
|
|
|
[[widget.setting]]
|
|
key = "flame_height"
|
|
type = "int"
|
|
label_key = "settings.monitor.flame_height.label"
|
|
description_key = "settings.monitor.flame_height.description"
|
|
default = 5
|
|
min = 2
|
|
max = 12
|
|
visible_when = { key = "highlight_gamer_mode", values = ["true"] }
|
|
|
|
[[widget.setting]]
|
|
key = "flame"
|
|
type = "select"
|
|
label_key = "settings.monitor.flame.label"
|
|
description_key = "settings.monitor.flame.description"
|
|
default = "flare"
|
|
visible_when = { key = "highlight_gamer_mode", values = ["true"] }
|
|
options = [
|
|
{ value = "off", label_key = "settings.monitor.flame.options.off" },
|
|
{ value = "flare", label_key = "settings.monitor.flame.options.flare" },
|
|
{ value = "always", label_key = "settings.monitor.flame.options.always" },
|
|
]
|
|
|
|
[[widget.setting]]
|
|
key = "flame_style"
|
|
type = "select"
|
|
label_key = "settings.monitor.flame_style.label"
|
|
description_key = "settings.monitor.flame_style.description"
|
|
default = "graph"
|
|
visible_when = { key = "highlight_gamer_mode", values = ["true"] }
|
|
options = [
|
|
{ value = "graph", label_key = "settings.monitor.flame_style.options.graph" },
|
|
{ value = "bars", label_key = "settings.monitor.flame_style.options.bars" },
|
|
]
|