Skip to content

Rewrite#30

Draft
S4NKALP wants to merge 183 commits into
macosfrom
dev
Draft

Rewrite#30
S4NKALP wants to merge 183 commits into
macosfrom
dev

Conversation

@S4NKALP

@S4NKALP S4NKALP commented Mar 23, 2026

Copy link
Copy Markdown
Owner

This rewrite is still WIP, so things might move a bit slow.

What's included so far:

  • Auto Reload when config.json file changes without restart
  • move to virtual env instead of global installation
  • new osd components
  • Migrate to a uv managed Python virtual environment
  • hide tray items through config.json
  • fix about app showing unknown data
  • depreciate the use of glace-git
  • improve dock
  • update project folder structure
  • improve the control center's player module
  • fix memory leak
  • remove bloat launcher plugins
  • setting app
  • improve styling
  • rewrite launcher with plugins

… utilities

- Enhancements: Refactored import section to remove unused modules, added explicit parentheses in hash generation for clarity, and updated debug logging messages for cache cleanup.
- Bug Fixes: Ensured consistent encoding of hash inputs and improved error handling in image dimension hashing.
- Style: Applied consistent formatting and spacing throughout the notification module.
Remove unused auth module and associated screenshot/OQR code logic.
Clean up network import statements and unused dependencies.
Minor cleanup in todo service to eliminate trailing whitespace.

New Features
- None

Enhancements
- Refactored network module imports.
- Streamlined todo service by removing dead code.

Bug Fixes
- None
Add explicit pyproject.toml with project metadata, dependency groups, and uv lock configuration.

- New Features
  - Introduce pyproject.toml defining package name, version, description, and runtime dependencies.
  - Declare dependencies in a structured list and development groups.
- Enhancements
  - Consolidate and clean up imports in lock.py and main.py.
  - Replace hard‑coded logger disable entries with targeted fabric module names.
  - Streamline Application initialization by removing unused components.
- Bug Fixes
  - Resolve missing imports that caused NameError.
  - Correct import ordering for static analysis compliance.
  - Align dependency versions with uv.lock for reproducibility.
New Features
- Added `set_process_name` function to set the process name via `prctl`.

Enhancements
- Replaced `loguru` logger import with `fabric.utils.logger` and removed the unused dependency.
- Added explicit imports of `ctypes`, `html`, and `json` for clarity and future use.

Bug Fixes
- No bug fixes included in this change.
Introduce a new config.json, modernize CSS for dock, battery, and about windows, and clean up obsolete styling.

New Features
- Add `config.json` with wallpaper directory, dock position, and UI flags.
- Create `styles/constant.css` for shared color definitions.
- Rename and style `styles/battery.css` with new visual rules.
- Update hover background in `styles/about.css`.

Enhancements
- Remove deprecated dock CSS to simplify the stylesheet.
- Streamline layer window setup and input handling.

Bug Fixes
- Resolve hover styling conflict in about.css.
- Ensure consistent theming across new style files.
The changes introduce a new GioDBusHelper class for D-Bus interactions and expand utils/functions.py with utilities for timeout parsing, cursor hover handling, animated scale widgets, and SVG loading, improving functionality and maintainability.

- New Features
  - Add GioDBusHelper for method calls and signal subscription.
- Enhancements
  - Add parse_timeout_string and replace placeholder set_process_name implementation.
  - Implement AnimatedScale widget and related utilities.
  - Provide svg_file helper with dynamic style updates.
- Bug Fixes
  - None
Migrate import statements to align with updated fabric utilities.

- New Features
- Enhancements
  - Consolidate imports from gi.repository into fabric.utils for cleaner dependency management.
- Bug Fixes
New Features
- Introduce `get_battery_icon_file` to generate battery icons based on percentage and charging state.
- Add fallback Bluetooth control using `rfkill` when Fabric Bluetooth fails.

Enhancements
- Refactor layout management with `_rebuild_layout_from_config` and dynamic indicator instantiation.
- Replace large `EnergyModeButton` class with lightweight utility functions.
- Simplify notification icon updates using `dynamic_file`.

Bug Fixes
- No explicit bug fixes; changes focus on feature additions and refactoring.
- New Features
  - Add Bluetooth and Wi‑Fi icon sets for applet UI.
- Enhancements
  - Introduce scalable SVG assets with color scheme support.
- Bug Fixes
  - None
The about.py module was deprecated and replaced by newer implementations; its removal cleans up dead code.

New Features
- No new feature introduced

Enhancements
- No functional enhancements

Bug Fixes
- No bug fixes
New Features
- Added ModusNoti instance to application initialization.

Enhancements
- Removed outdated corner visibility configuration and unnecessary comments.
- Streamlined import statements for clarity.

Bug Fixes
- No bug fixes included.
Commented out deprecated keybinds and removed an unused layerrule to clean up configuration and avoid accidental triggers.

New Features
-

Enhancements
- Streamlined layerrules and removed unused definitions.

Bug Fixes
- Avoided accidental execution of stale keybinds.
The Deskwidgets module is now imported, instantiated, and integrated into the main application, expanding desktop widget capabilities.

New Features
- Added Deskwidgets import and instantiation.
- Integrated Deskwidgets into the Application instance.

Enhancements
- Removed stale comments and activated the component.

Bug Fixes
- None
… monitoring widgets

New Features
- Introduce WEATHER_GRADIENT_MAP and WEATHER_EMOJI_MAP for condition‑to‑emoji mapping.
- Add SYSTEM_UPDATE_INTERVAL, WEATHER_UPDATE_INTERVAL, CALENDAR_UPDATE_INTERVAL constants and extend cache timeouts.
- Implement CpuInfo and RamInfo widgets with real‑time CPU percentage, temperature, and RAM usage display.

Enhancements
- Extend LOCATION_CACHE_TIMEOUT to 7 days.
- Integrate progress bar updates for CPU and memory usage.
- Organize desktop widget manager with separate top‑left and bottom‑right windows.

Bug Fixes
- None
New Features
- Introduce `debounce` async decorator to delay coroutine execution until a specified delay elapses.
- Add `sync_debounce` wrapper that uses GLib timeout for synchronous functions, supporting immediate execution and repeat counts.
…sure

- Refactor dock update loop to use explicit parentheses and improve readability
- Fix closure capture in OTP plugin action to correctly pass current code
- Remove redundant lambda wrapper in player label binding
- Update logger messages with full exception context
- Adjust imports and naming for consistency across modules
- Minor code style updates and whitespace cleanup
Remove dead code and redundant blank lines, simplify timer interval selection, and ensure proper realization handling. This improves readability and prevents potential runtime issues.

New Features
-

Enhancements
- Refined timer interval calculation for clarity
- Consolidated easing function stubs for consistency

Bug Fixes
- Fixed missing realize handler connection in SlideRevealer
- Eliminated stray blank line that could affect indentation
New Features
- Added styles/main.css aggregating imports and global defaults
- Renamed battery.css → battery-widget.css for widget-specific styling

Enhancements
- Added smooth transitions and hover effects in panel.css
- Improved OSD styling with rounded corners, translucent background, and better spacing
- Updated button margins, paddings, and border‑radius for consistency

Bug Fixes
- Fixed missing border‑radius and spacing in panel buttons
- Corrected workspace button active/urgent styling
New Features
- Introduced OSD functionality integrated into the application.

Enhancements
- Removed unused stylesheet imports from main.css and corrected the stylesheet path to `styles/main.css`.
- Adjusted the lambda in the network service for consistent method invocation.

Bug Fixes
- Ensured `on_access_point_activated` is properly called when the active access point changes.
Remove superfluous whitespace to improve code readability.
- New Features: (none)
- Enhancements: Added constant.css import and removed launcher.css import
- Bug Fixes: Deleted unused #corner and #corner-container CSS rules
…ilities

Introduce a new OSDWindow implementation, expose keyboard layout configuration, and modernize dependency handling and helper utilities.

- **New Features**
  - Added `keyboard_layouts` list (`us`, `np`) to `config.json`
  - Created `OSDWindow` class and updated `main.py` to use it
  - Introduced new service modules (`battery`, `brightness`, `capslock`, `network`, `mpris`, `todo`, `modus`) and expanded `services/__init__.py`
  - Added `CommandResult` and `run_command` helper in `utils/functions.py`

- **Enhancements**
  - Upgraded numerous dependencies to newer versions and switched `fabric` to a git source
  - Replaced bare `except:` with `except Exception:` in `WiFiPasswordDialog`
  - Improved type hints (`NamedTuple`, `TypeVar`) and refactored JSON file helpers
  - Added property notifications for battery percentage, state, and presence

- **Bug Fixes**
  - Fixed incorrect return type annotation in `read_json_file`
  - Corrected tick‑handler logic to avoid double registration
  - Properly notify listeners on battery property changes
  - Ensured proper exception handling and cleanup in utility functions
Enhancements
- Replace bare `except:` with `except Exception:` in multiple modules- Cast step calculation to `int` for consistent type
- Simplify `get_battery_icon_file` to return a string directly
- Use `get_todo_service()` instead of module-level `todo_service` throughout todo widget
- Remove unused `"zen": "zen-browser"` mapping entry

Bug Fixes
- Prevent bare exception swallowing by catching `Exception` explicitly
- Ensure proper cleanup of timer IDs and other resources
- Delete unused modules/osdd components

New Features
- None
- rename `#osd` selectors to `#osd-container` for better encapsulation
- add `min-width: 180px` to the container definition
- update muted styling rules to use `#osd-container.muted` instead of element‑specific classes
- replace deprecated `#brighntess-icons.muted` with `#osd-image.muted`
- clean up stray braces and whitespace in the stylesheet
…up overhead

The import is now performed lazily within load_config to avoid early import errors and unnecessary loading during module initialization.

- Enhancement: Lazy loading of configuration service
- Bug Fix: Prevent ImportError when services.config is unavailable during startup
Add missing icons for caps lock and keyboard layout to enhance settings UI.

New Features
- Add caps-lock-off.svg, caps-lock.svg, and keyboard-layout.svg.
S4NKALP added 30 commits June 17, 2026 05:32
Add essential libraries for Wayland and system integration.
…_on_title_button_clicked

Use Toggle for clearer intent
Add appmenu-gtk-module to PACKAGES to enable proper desktop menu integration.
… cache

Pre-warm DBus PID cache using a ThreadPoolExecutor to instantly resolve service PIDs, centralize registry locking, and improve robustness and performance.
Use unified imports from fabric.utils instead of gi.repository to simplify imports and align with project convention
Align with latest stable API and ensure reproducible builds
…uencing

Prevent stale UI updates and reduce DBus load by caching menus with automatic eviction when limit exceeded
Add support for multiple DBus backends and GTK GMenuModel fallback, improve thread safety and caching.
… extraction pipeline

Add captured PID to logs, DBus client discovery, and fallback path selection to improve consistency and avoid race conditions; use PID inheritance checks for accurate client matching.
Add DBus menu libraries required for proper GTK and Qt integration in the application
…invalidation

Prevents premature instance creation and stale empty‑menu cache entries
…__slots__

Prevent duplicate bus connections and cut per-instance memory usage.
Ensure monitoring starts only when the widget is shown and stops on hide, preventing timer leaks and unnecessary refreshes
…ertion failures

Remove global env setting that interferes with Modus's GTK windows.
Prevents duplicate background extraction threads for the same WM class PID, avoiding race conditions and unnecessary work.
Add flat GTK Action handling and guard DBus menu depth to prevent recursion and overflow.
…g to respect visibility

Ensure only visible top-level items are considered
Prevent hidden items from appearing in the menu hierarchy
… in bounded DFS

Avoid resetting the counter per recursion level by using a mutable list; adds clarifying comments about the shared state.
…ctionMenuClient

Drop unused GTK menu parsing to simplify maintenance and add invalidate hook to clear cached items when menu state changes.
…checks

Use lock to protect cache access, capture sequence for race‑safe idle emission, and check seq against extraction_seq to prevent stale menu updates.
Adjust @define statements to proper syntax and remove outdated comment markers, improving readability and consistency.
Prevent lint errors in src/main.py and lock Fabric to a specific commit.
- Consolidate logger disabling, cache empty menus with TTL, and move name resolution to a dedicated resolver to reduce duplication and improve performance
…dling

Use resolved name when present, else fall back to title; return None when no desktop file found
Use more balanced control points to improve animation responsiveness and visual flow
…on hooks

The changes replace timeout‑based refreshes with animation‑aware callbacks, improving responsiveness and preventing stale pending operations.
Update pinned dependencies and bump version to reflect the new stable release.
…operty handling

Add internal property cache to reduce DBus round‑trips and streamline signal handling.
It also adjusts proxy flags and error handling for better robustness.
Improve resilience of window focus by delegating to hyprctl.
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