Commit Graph
514 Commits
Author SHA1 Message Date
sankalp 017c127a44 chore(root): migrate touv and simplify dependencies
New Features
- Added uv as the primary package manager and introduced new system packages awww, apple-fonts, swappy, and wl-clipboard.
- Removed many redundant Python packages from the install script.

Enhancements
- Replaced Pillow-based QR code detection with GdkPixbuf, eliminating the python-pillow dependency.
- Fixed a typo in the import (`ConfigServic` → `ConfigService`) and corrected service imports.
- Updated the application launch to use `uwsm app -- uv run main.py` for uv-managed execution.

Bug Fixes
- Resolved import typo that prevented proper ConfigService initialization.
- Adjusted QR-code decoding logic to correctly handle image pixel channels, improving robustness.
2026-04-02 23:13:47 +05:45
sankalp f123de9a52 refactor(utils):simplify Wi‑Fi icon path resolution 2026-04-02 23:13:47 +05:45
sankalp f7355765f7 Merge branch 'macos' into dev 2026-04-02 21:10:14 +05:45
sankalp 5fe0d5264a Merge pull request #31 from S4NKALP/dependabot/pip/requests-2.33.0 2026-04-02 14:54:00 +05:45
dependabot[bot] 28ea3305f3 chore(deps): bump requests from 2.32.4 to 2.33.0
Bumps [requests](https://github.com/psf/requests) from 2.32.4 to 2.33.0.
- [Release notes](https://github.com/psf/requests/releases)
- [Changelog](https://github.com/psf/requests/blob/main/HISTORY.md)
- [Commits](https://github.com/psf/requests/compare/v2.32.4...v2.33.0)

---
updated-dependencies:
- dependency-name: requests
  dependency-version: 2.33.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-04-02 09:06:26 +00:00
sankalp 5656609348 feat(modules/desktop): addweather SVG icon mapping and improve condition label handling
Why: replaced emoji-based weather icons with a dynamic SVG mapping, introduced WEATHER_ICON_MAP, updated format_weather_data and Weather class to use icon names and svg_file, removed unused constants and clarified day/night variant handling.

- New Features
  - Added WEATHER_ICON_MAP linking weather codes to SVG identifiers and supporting night variants.
  - Updated format_weather_data to return icon_name and use svg_file for dynamic icon resolution.
  - Modified Weather widget to set condition label via dynamic SVG files instead of emoji.

- Enhancements
  - Implemented day/night icon variant logic using optimistic naming based on known variants.
  - Removed unused constant imports and simplified label update logic.
  - Improved error handling with explicit fallbacks for missing weather fields.

- Bug Fixes
  - Fixed potential missing icon fallback by using .get with default values.
  - Corrected label assignment order to match new data structure.
2026-03-23 23:40:31 +05:45
sankalp c35550d209 feat(assets/icons/weather): add clear, clear-night, and windy weather icons
New Features
- Added `weather-clear.svg`
- Added `weather-clear-night.svg`
- Added `weather-windy.svg`
2026-03-23 23:40:23 +05:45
sankalp 7a21d34680 feat(assets): add caps-lock and keyboard layout icons
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.
2026-03-23 23:34:15 +05:45
sankalp 88e53ac9b7 refactor(config): Defer import ofstart_config_service to reduce startup 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
2026-03-23 23:34:11 +05:45
sankalp 231645d8f9 refactor(styles): rename selectors and add min-width to container
- 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
2026-03-23 23:34:07 +05:45
sankalp ef4065bc1f refactor(modules): improve exception handling and simplify service usage
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
2026-03-23 23:34:03 +05:45
sankalp 34cfb2f49e feat(root): add keyboard layouts, OSDWindow, and update services & utilities
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
2026-03-23 23:33:53 +05:45
sankalp 129906cb9c feat(root): add application switcher 2026-02-28 19:45:43 +05:45
sankalp b1e8cb4a7a feat(styles): add launcher.css 2026-02-28 19:42:37 +05:45
sankalp 67d37bc9f5 update 2026-02-28 19:40:01 +05:45
sankalp 6762b8395d refactor(styles): Add constant.css import and clean up corner styling
- New Features: (none)
- Enhancements: Added constant.css import and removed launcher.css import
- Bug Fixes: Deleted unused #corner and #corner-container CSS rules
2026-02-26 06:58:08 +05:45
sankalp 26f55df7dc Merge pull request #28 from S4NKALP/dependabot/pip/pillow-12.1.1
chore(deps): bump pillow from 11.3.0 to 12.1.1
2026-02-26 06:56:03 +05:45
dependabot[bot] ddbe0f119d chore(deps): bump pillow from 11.3.0 to 12.1.1
Bumps [pillow](https://github.com/python-pillow/Pillow) from 11.3.0 to 12.1.1.
- [Release notes](https://github.com/python-pillow/Pillow/releases)
- [Changelog](https://github.com/python-pillow/Pillow/blob/main/CHANGES.rst)
- [Commits](https://github.com/python-pillow/Pillow/compare/11.3.0...12.1.1)

---
updated-dependencies:
- dependency-name: pillow
  dependency-version: 12.1.1
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-02-26 01:10:30 +00:00
sankalp 49666ef8ef chore(utils): clean up extra blank lines in app_name_resolver.py
Remove superfluous whitespace to improve code readability.
2026-02-26 06:54:55 +05:45
sankalp 5bef139db9 feat(root): add OSD module and clean up CSS imports
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.
2026-02-26 06:54:48 +05:45
sankalp 2c1ec69023 feat(styles): restructure UI styles and add main composition
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
2026-02-26 06:54:41 +05:45
sankalp 830305c0f3 refactor(widgets): clean up animation timer and easing functions
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
2026-02-26 06:54:35 +05:45
sankalp cf7666a8a5 refactor(modules): clean up dock update logic and fix TOTP action closure
- 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
2026-02-26 06:54:29 +05:45
sankalp 934b62ebff feat(utils): add debounce helper utilities
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.
2026-02-26 06:42:00 +05:45
sankalp deb9b1082f feat(modules/desktop): Add weather gradient/emoji mappings and system 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
2026-02-26 06:41:58 +05:45
sankalp e104359659 feat(root): Enable Deskwidgets widget
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
2026-02-26 06:41:50 +05:45
sankalp 303aeb4815 refactor(config/hypr): tidy up keybinds and layerrules
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.
2026-02-26 06:35:15 +05:45
sankalp 557f3148f6 feat(root): enable ModusNoti and clean up startup configuration
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.
2026-02-26 06:35:05 +05:45
sankalp 55f36c59ca refactor(modules): remove unused about module
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
2026-02-26 06:34:58 +05:45
sankalp 04fba01361 feat(assets): add new applet and wifi icons
- New Features
  - Add Bluetooth and Wi‑Fi icon sets for applet UI.
- Enhancements
  - Introduce scalable SVG assets with color scheme support.
- Bug Fixes
  - None
2026-02-26 06:24:50 +05:45
sankalp e97311e2b0 feat(modules): restructure battery UI and add dynamic layout rebuilding
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.
2026-02-26 06:24:44 +05:45
sankalp 15be2f3de6 refactor(services): move Gio, GLib, logger import to fabric.utils
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
2026-02-26 06:24:32 +05:45
sankalp 1ed576f222 feat(utils): add dbus helper and extend utility functions
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
2026-02-26 06:24:22 +05:45
sankalp a8b7330ec7 feat(root): add configuration and UI style updates
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.
2026-02-26 06:24:09 +05:45
sankalp 0b6450feb7 refactor(config):rename APP_NAME to APP_NAME1 2026-02-26 05:55:25 +05:45
sankalp f6505d9a01 feat(utils): add set_process_name utility and adjust imports
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.
2026-02-26 05:55:17 +05:45
sankalp 20b1eb71b2 feat(root): add pyproject.toml and reorganize imports & dependencies
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.
2026-02-26 05:55:07 +05:45
sankalp bc139feda7 refactor(services): drop auth service and tidy network/todo
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
2026-02-26 05:54:58 +05:45
sankalp ffa9188cd1 refactor(modules/notification): streamline imports and simplify cache 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.
2026-02-26 05:54:51 +05:45
sankalp a5b8a3f7bd update layerrule for hyprland>=v0.53 2026-01-08 21:13:54 +05:45
sankalp a99491b49d Merge pull request #27 from S4NKALP/dependabot/pip/urllib3-2.6.3
chore(deps): bump urllib3 from 2.6.0 to 2.6.3
2026-01-08 15:46:31 +05:45
dependabot[bot] ab4d29c219 chore(deps): bump urllib3 from 2.6.0 to 2.6.3
Bumps [urllib3](https://github.com/urllib3/urllib3) from 2.6.0 to 2.6.3.
- [Release notes](https://github.com/urllib3/urllib3/releases)
- [Changelog](https://github.com/urllib3/urllib3/blob/main/CHANGES.rst)
- [Commits](https://github.com/urllib3/urllib3/compare/2.6.0...2.6.3)

---
updated-dependencies:
- dependency-name: urllib3
  dependency-version: 2.6.3
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-01-08 09:58:51 +00:00
sankalp c6db14cbe7 Merge pull request #26 from S4NKALP/dependabot/pip/urllib3-2.6.0
chore(deps): bump urllib3 from 2.5.0 to 2.6.0
2025-12-06 20:24:31 +05:45
sankalp ea9a4cd7ca chore(hypr): remove kanban launcher binding 2025-12-06 20:22:13 +05:45
sankalp 834d0b8dbf remove todos.json 2025-12-06 20:20:48 +05:45
dependabot[bot] a0b3810905 chore(deps): bump urllib3 from 2.5.0 to 2.6.0
Bumps [urllib3](https://github.com/urllib3/urllib3) from 2.5.0 to 2.6.0.
- [Release notes](https://github.com/urllib3/urllib3/releases)
- [Changelog](https://github.com/urllib3/urllib3/blob/main/CHANGES.rst)
- [Commits](https://github.com/urllib3/urllib3/compare/2.5.0...2.6.0)

---
updated-dependencies:
- dependency-name: urllib3
  dependency-version: 2.6.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-06 14:12:18 +00:00
sankalp 26420dbc1f update modus.conf 2025-12-06 19:55:56 +05:45
sankalp 1d8bd1b8a4 chore: update application name and add initial todo data 2025-12-06 19:54:58 +05:45
sankalp c80bc27ac5 feat(install): improve and streamline installation script with added features and error handling 2025-10-15 13:05:49 +05:45
sankalp f2cc52bf34 chore: disable specific logger modules for cleaner output 2025-09-28 17:30:26 +05:45