Skip to content

Mistbar-v.0.0.8

Choose a tag to compare

@Chintanpatel24 Chintanpatel24 released this 03 Sep 11:29
· 31 commits to main since this release
f3ffdb9

Overview of Changes

  1. Dynamic Theme & Style Switching:

    • Fixed an issue in src/styles/style.scss where light theme was blocked in glassy and transparent modes due to a restrictive :not(.style-glassy):not(.style-transparent) selector.
    • Added full Liquid Frosted Light Glass styling (light acrylic background, dark typography #1d1d1f, dark icons, and soft light drop-shadows).
    • Added light mode styling for Transparent and Solid styles.
    • Added matching light theme styles for all popovers (Control Center, App Menu, Wi-Fi, Bluetooth, Battery, and Power Menu).
  2. Default Startup & Autostart on Desktop Launch:

    • Updated install.sh to automatically generate universal XDG autostart entry at ~/.config/autostart/mistbar.desktop.
    • Safely disables conflicting default bars (e.g. comments out spawn-at-startup "waybar") and adds spawn-at-startup "mistbar" "start" in Niri compositor config.
    • Updated uninstall.sh to cleanly remove autostart entries, remove layer rules, and restore previous compositor defaults.
  3. Multi-Window Tracking & Command Synchronization:

    • Updated window management in src/app.ts and src/bar/Bar.tsx to track all active bar instances across multi-monitor setups.
    • Dynamic classes (style-*, look-*, light-theme) and layer surface margins are synchronized across all active displays.
  4. Toggle, Show, and Hide Visibility Fix:

    • Added explicit manual visibility state management in src/bar/Bar.tsx.
    • Commands like mistbar toggle, mistbar show, and mistbar hide now properly retain their state without being overridden by the background auto-hide watcher.
  5. CPU Optimization:

    • Removed the heavy 400ms Python polling loop in src/bar/Bar.tsx.
    • Replaced with a lightweight, native asynchronous niri msg -j workspaces call parsed directly in JavaScript, eliminating CPU spikes.
  6. CLI Enhancements & Safe Config Updates:

    • Updated mistbar CLI script to safely persist configuration via Python JSON serialization even when the daemon is stopped.
    • Added daemon startup error logging to ~/.config/mistbar/mistbar.log.
    • Enhanced mistbar status to report active theme, style, look, autohide, and visibility.

What's Changed

  • feat: fix dynamic theme/style switching, autostart default setup, and CPU optimization by @Chintanpatel24 in #14

Full Changelog: 0.0.7...0.0.8