Repository navigation
✨ feat: theme fastfetch and starship, replace stacked notifications and warn on low battery - #10
Merged
Merged
Conversation
…cent A gothic window with a moon, stars, a cat on the sill and a candle. The info is grouped into sistema, escritorio, desarrollo and hardware, with bars for memory and disk; the local IP, resolution and login manager are left out. fastfetch has no include, so the theme renders the accent as arguments that a zsh wrapper passes before the caller's own.
starship has no include, so a render hook writes starship.toml with palette = "dotfiles" and the rendered palette appended, which redefines the color names the prompt already uses. zsh selects that copy while it is not older than starship.toml, and a palette chosen in starship.toml itself wins.
…logout fuzzel highlights matches with the accent instead of pink. wlogout buttons share the 10px radius of the bar, menus and notifications, and the focused one gets an accent border, label and icon (icons/*-hover.svg) instead of a full accent fill; the fixed white is now the theme's foreground.
…dd a volume/brightness overlay mako ignores the x-canonical-private-synchronous hint, so every volume or brightness press added a notification. A per-channel helper now replaces the previous one with notify-send --replace-id, and volume/brightness use a bottom-centre overlay with the level as an accent bar (dim when muted) that stays visible in do not disturb. mako groups repeated notifications with a count and styles low and critical urgency.
A session unit, started only when a battery exists, checks every minute. Each threshold warns once per discharge, the critical alert replaces the warning, and plugging in re-arms both.
btop.conf is a link into the repository, so saving on exit turned a toggle in btop (it dropped the GPU boxes) into a repository change. Settings changed inside btop now last until it exits.
mangowm_notify_replace never fails, so the battery check marked a threshold as warned even when notify-send failed (no notification daemon) and never warned again in that discharge. A new mangowm_notify_send reports the failure; the battery alert uses it and retries on the next check.
…a failed switch The starship render hook writes ~/.cache/dotfiles/starship.toml when a theme renders, also during a migration. A failed switch restored everything else but left that file behind; the transaction now tracks .cache/dotfiles like the bat cache.
Overlapping calls read the same stale id and each created a notification. A lock on the channel keeps reading, sending and saving the id together.
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.
Second part of the F6c visual polish: fastfetch and starship follow the theme, fuzzel and wlogout use the accent as the only emphasis, notifications replace each other instead of stacking, laptops get a low battery warning, and btop stops rewriting the repository.
Terminal (cli)
stacklists the installed node/go/rust versions.fastfetch/args(the accent and logo colors) and a zshfastfetchfunction passes them before the caller's arguments. Without a theme, the ANSI colors apply.starship.tomlalready uses.~/.cache/dotfiles/starship.tomlwith that palette selected.starship.toml.starship.tomlitself wins.save_config_on_exit = false.btop.confis a link into the repository, and saving on exit once dropped the GPU boxes from the tracked file.MangoWM
icons/*-hover.svg, renamed from*-dark.svg).x-canonical-private-synchronoushint, so every volume or brightness press stacked a new notification.mangowm_notify_replacekeeps one notification per channel throughnotify-send --replace-id, under a lock so key repeat cannot race.Engine
switchtransactions now track.cache/dotfiles, so a failed migration also rolls back the themed starship config, like the bat cache.Testing
tests/theme-apps-smoke.sh:tests/theme-schema-smoke.sh: the fuzzel match color and the wlogout icons for all 50 palettes.layers/wm/mangowm/tests/waybar-smoke.sh:tests/cli-tools-smoke.sh: btop does not save on exit.tests/smoke.shpasses, including the failed-migration rollback insetup-smoke.After merging
Run
dotfiles sync, thensystemctl --user restart mangowm-waybar mangowm-makoand open a new shell. The battery unit starts at the next login.