Repository navigation
feat(plugins): add gamemode-indicator - #27
Open
Amnesia1000 wants to merge 1 commit into
Open
Amnesia1000 wants to merge 1 commit into
Amnesia1000 wants to merge 1 commit into
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
gamemoded, i.e. anything run withgamemoderun) — icon plus toast when it starts/stops. Polled every 4 s withgamemoded -s; if the binary is missing it just stays inactive.Details
GameModeIcon.qml— bar widget,visibleonly while active, so it takes no space otherwise.GameModeDetect.qml— small invisible helper that pollsgamemoded -sand exposesferalActive.main.qml— connects the detection toToaster.toast(...), skipping the case where Caelestia already announced.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 enableandgamemoderun sleep 25with game mode off.@0xSolanaceae @ladybug-me