Skip to content

feat(plugins): add gamemode-indicator - #27

Open
Amnesia1000 wants to merge 1 commit into
caelestia-kde:mainfrom
Amnesia1000:plugin/gamemode-indicator
Open

Amnesia1000 wants to merge 1 commit into
caelestia-kde:mainfrom
Amnesia1000:plugin/gamemode-indicator

Conversation

@Amnesia1000

@Amnesia1000 Amnesia1000 commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

What it does

Bar widget that shows a green gamepad while game mode is active and announces every change with the shell's own toast (Toaster), so size and position are identical to the built-in game mode announcement — no desktop notifications involved.

It reacts to both sources:

  • Caelestia's game mode — only the icon, since the shell already toasts on that toggle (no duplicate).
  • Feral GameMode (gamemoded, i.e. anything run with gamemoderun) — icon plus toast when it starts/stops. Polled every 4 s with gamemoded -s; if the binary is missing it just stays inactive.

Details

  • GameModeIcon.qml — bar widget, visible only while active, so it takes no space otherwise.
  • GameModeDetect.qml — small invisible helper that polls gamemoded -s and exposes feralActive.
  • main.qml — connects the detection to Toaster.toast(...), skipping the case where Caelestia already announced.
  • No configuration, no network, no scripts.

Validation

scripts/validate.py → OK, scripts/check_safety.py → no findings for this plugin.

Tested on Caelestia 2.7 (KDE/KWin) with both paths: caelestia shell gameMode enable and gamemoderun sleep 25 with game mode off.

@0xSolanaceae @ladybug-me

Bar widget that draws a green gamepad while game mode is running and
announces changes with the shell's own toast, so it looks and sits
exactly like the built-in game mode announcement.

It covers both sources: Caelestia's game mode (icon only, the shell
already toasts) and Feral GameMode sessions detected through gamemoded.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant