Commit Graph
100 Commits
Author SHA1 Message Date
sankalp 0fa9f82645 Merge pull request #59 from S4NKALP/dependabot/pip/tomlkit-0.15.2
chore(deps): bump tomlkit from 0.15.1 to 0.15.2
2026-11-01 10:56:18 +05:45
sankalp fcd67b916c Merge pull request #58 from S4NKALP/dependabot/pip/pre-commit-4.7.0
chore(deps-dev): bump pre-commit from 4.6.2 to 4.7.0
2026-11-01 10:55:44 +05:45
sankalp 70f8abc73c Merge pull request #57 from S4NKALP/dependabot/uv/virtualenv-21.7.13
chore(deps): bump virtualenv from 21.7.1 to 21.7.13
2026-10-06 21:18:33 +05:45
sankalp 86dcd1d90c Merge pull request #56 from S4NKALP/dependabot/github_actions/github/codeql-action-4.38.2
chore(deps): bump github/codeql-action from 4.37.9 to 4.38.2
2026-10-06 21:15:24 +05:45
sankalp 4e20986e56 Merge pull request #55 from S4NKALP/dependabot/pip/ruff-0.16.9
chore(deps-dev): bump ruff from 0.16.5 to 0.16.9
2026-10-06 21:15:03 +05:45
sankalp 46090ff1dc Merge pull request #54 from S4NKALP/dependabot/pip/python-pam-2.1.0
chore(deps): bump python-pam from 2.0.2 to 2.1.0
2026-10-06 21:14:46 +05:45
sankalp ce37040ec2 chore(deps): sync uv.lock for ruff and pre-commit bumps 2026-09-30 21:13:24 +05:45
sankalp fbd7863de6 fix(applet): stop escape closing parent past child dropdown 2026-09-30 21:13:24 +05:45
sankalp 507e3ad25d fix(install): detect Arch derivatives by ID
Artix ships no `arch` string, so the substring check rejected it.
Match ID/ID_LIKE per os-release(5) plus pacman presence.

Closes #53
2026-09-30 21:13:24 +05:45
sankalp d9c1c21c67 docs: add blog badge to readme 2026-09-22 17:49:38 +05:45
sankalp 0abe0ed9aa fix(mpris): wrap CACHE_DIR in Path before path division 2026-09-06 08:24:46 +05:45
sankalp 52a71a31c4 fix(network): stop freezing shell during wifi switch and detect connect success correctly
- Cache saved SSIDs and refresh them off the main thread; keep in sync via
  the Settings proxy's Connections property-change notify, so is_network_saved
  never issues a blocking D-Bus GetSettings round-trip on the GTK main loop.
  This prevented the panel and control-center popup from freezing while wifi
  devices were switched.
- Treat AddAndActivateConnection/ActivateConnection results as success by
  truthiness instead of requiring a two-element tuple (only the ...2 variant
  returns one). The old check always evaluated False, so even a successful
  password connect was reported as a failure and re-prompted the password
  dialog.
2026-09-05 00:23:11 +05:45
sankalp df51b13098 fix(globalmenu): add appmenu-gtk-module root to fast probe
GTK3 apps like nwg-look export their menubar model under
/org/appmenu/gtk/window/menus/menubar/N on unique bus names (:1.x).
The fast probe previously only walked [wm_class, /org/gtk/Application],
missing this path entirely. The full crawl then skips all unique-name
services (svc.startswith(':')), so the menu was never discovered despite
being correctly exported.
2026-09-02 22:31:51 +05:45
sankalp 7d87bea563 Merge pull request #52 from S4NKALP/dependabot/github_actions/github/codeql-action-4.37.9
chore(deps): bump github/codeql-action from 4.37.3 to 4.37.9
2026-09-01 22:56:11 +05:45
sankalp 81100f457c Merge pull request #50 from S4NKALP/dependabot/pip/pre-commit-4.6.2
chore(deps-dev): bump pre-commit from 4.6.1 to 4.6.2
2026-09-01 22:55:59 +05:45
sankalp 6338e8fb64 Merge branch 'macos' into dependabot/pip/pre-commit-4.6.2 2026-09-01 22:55:40 +05:45
sankalp 4eb293f8bb Merge pull request #51 from S4NKALP/dependabot/pip/ruff-0.16.5
chore(deps-dev): bump ruff from 0.16.0 to 0.16.5
2026-09-01 22:55:06 +05:45
sankalp 41b117e53a fix(panel): wire up pre-existing wifi/eth devices
device-ready fired before NetworkIndicator subscribes, so Wifi.changed
never reached the panel icon. Auto-reconnect to saved network left icon
stale at wifi-off.

Track connected device paths and connect existing devices at init.
2026-08-27 20:18:21 +05:45
sankalp a092146358 fix(controlpanel): align and bold section headers
Known Network / Devices headers had no styling, so they sat flush
left and plain next to the padded bold wifi-other-button rows.
2026-08-23 17:26:34 +05:45
sankalp 464c19b97f refactor: removed requirements.txt 2026-08-23 16:27:19 +05:45
sankalp 282d791d01 fix(network): detect usb and bluetooth tethering in panel
Wired devices were tracked as a single slot, so USB tethering on a
second port never got an Ethernet service object and the indicator
kept showing wifi-off while online. Track all wired devices like
wifi devices, prefer the one with an active connection, treat BT PAN
(type 5) as wired, and refresh on device removal.
2026-08-23 16:22:30 +05:45
sankalp b7e8786e6b refactor(systray): rely on fabric stock icon handling
Upstream fabric now resolves tray icons correctly, so the local
pixbuf fallback patch is gone. The patch keeps only config-based
item hiding by wrapping do_update_properties.
2026-08-23 16:22:30 +05:45
sankalp 41c57d6996 fix(globalmenu): match desktop files case-insensitively
GIMP reports WM_CLASS "Gimp" but desktop file is gimp.desktop.
Exact-case lookup missed, so bar fell back to raw window title
(e.g. "0 (RGB color, 8-bit, non-linear integer)").
2026-08-16 22:30:09 +05:45
sankalp f31c6df8db fix(globalmenu): hide dropdown when no app active 2026-08-14 00:01:33 +05:45
sankalp 8a212da9d5 feat: update keybinds of lockscreen 2026-08-10 13:58:55 +05:45
sankalp 87458f2dff fix(notification): restart timeout when pointer leaves popup surface
Nested-widget crossing events can be delivered with INFERIOR detail when
the pointer moves onto the close-button overlay, stranding _is_hovered
as True and leaving the timeout killed so the notification never
auto-dismisses. Track surface-level enter/leave on the popup window and
reconcile the hover state from there as a reliable backstop.
2026-08-10 13:48:30 +05:45
sankalp 56b40b9b71 feat(settings): dock position dropdown 2026-08-09 13:34:01 +05:45
sankalp 79a7e58198 feat(dock): configurable position (bottom/left/right) 2026-08-09 13:23:58 +05:45
sankalp 090044c35d fix(globalmenu): rework menu discovery for fresh apps
- probe once per app instead of per matched bus service
- skip unique :1.x names, which can be stale and never answer DBus
- give fresh apps a 6s probe budget so late-exporting menubars are caught
- fix app-age computed as inf when unregistered unique names poison the
  first-seen min, disabling the fresh path entirely
- cache no-menu per app/service so re-focus returns instantly
- skip oversized action menus and truncate top-level menu to 32 items
- parse org.gtk.Actions state via explicit child walk (av unwrap was
  fragile on apps like Inkscape)
2026-08-09 01:26:01 +05:45
sankalp 37a6a01803 fix(weather): queue toplevel resize after label update
Wrapped location reflow never reaches the layer-shell toplevel through
Gtk.Fixed, so the card stays at "Loading..." height and clips the second
line of a wrapped location on first init. Queue the toplevel after
updating labels so the taller allocation is applied.
2026-08-06 15:25:04 +05:45
sankalp 1699117d15 fix(weather): stop desktop widget labels truncating
Drop max_chars_width/ellipsization so location and condition wrap
instead of being cut off, and let the card auto-size vertically so the
big temperature no longer clips the bottom text.
2026-08-05 15:00:40 +05:45
sankalp eac9933778 feat(lock): style notch, corners, and icon 2026-08-05 06:10:10 +05:45
sankalp 43183948f1 fix(panel): render full notch pill without window clip 2026-08-05 06:10:10 +05:45
sankalp dc78360499 style(osd): use glass-surface-solid for block-bg 2026-08-05 06:10:06 +05:45
sankalp e923da3fdd feat(style): add glass-surface-solid color 2026-08-05 06:10:06 +05:45
sankalp 96698022b6 feat(lock): reuse NotchPill with lock icon 2026-08-05 06:10:06 +05:45
sankalp 30005b9f1f feat(notch): export NotchPill 2026-08-05 06:10:03 +05:45
sankalp e75023ef72 refactor(notch): inherit NotchPill, accept idle_widget 2026-08-05 06:10:03 +05:45
sankalp 9ce37b9837 feat(notch): add shared NotchPill container 2026-08-05 06:10:02 +05:45
sankalp cdc51ffdaf fix(desktop): stop calendar label churn at midnight
Update timer used fixed ms-until-midnight computed at import. Once
midnight passed, the fixed interval re-armed an elapsed timeout, busy
looping update_calendar and destroying/recreating every label until
GTK3 stopped rendering them. Timer now recomputes the interval each
day and the grid mutates pre-built labels in place via set_label /
set_name instead of rebuild.

Also added missing year check for today highlight.
2026-08-05 00:13:02 +05:45
sankalp 8f3d05f7d7 style(desktop): drop stale edit-mode comment 2026-08-03 07:40:13 +05:45
sankalp 73e050897b fix(desktop): repaint widgets during drag and drop
A Gtk.Fixed child resize only bubbles to the toplevel when the window
itself is queued, so move() kept the old allocation until a rebuild.
Queue the window after each reposition so the dragged widget follows
the cursor and lands at the drop position live.

Dropped remove()+put() which never repainted in the layer-shell window.
2026-08-03 07:39:33 +05:45
sankalp 195143664b fix(recording): track backend subprocess for active state
active shelled out to pidof on every read, blocking the main loop and
missing our own recorder handle. Track the spawned Gio.Subprocess for
an exact answer and cache the external pidof probe for 2s.

Resets the cache at ownership boundaries (start/stop).
2026-08-03 07:39:30 +05:45
sankalp 8318bdf0fd build: refresh lockfile for fabric tag pin 2026-08-02 13:37:10 +05:45
sankalp 515c04d33c refactor(spotlight): spawn caffeine detached 2026-08-02 13:37:10 +05:45
sankalp 4f2c3eb88c refactor(spotlight): use shared app cache 2026-08-02 13:37:10 +05:45
sankalp d1734fe040 refactor(recording): reuse mmss formatter 2026-08-02 13:37:10 +05:45
sankalp a8682700f4 perf(panel): defer heavy component imports to first use 2026-08-02 13:37:10 +05:45
sankalp 5b613d734f refactor(pomodoro): reuse mmss formatter 2026-08-02 13:37:10 +05:45
sankalp e95d3df14f perf(unified_cache): cache icon theme name with TTL 2026-08-02 13:37:10 +05:45
sankalp 849a8267e2 fix(notification_center): reconcile groups in place 2026-08-02 13:37:10 +05:45
sankalp 2f89203477 refactor(notification): share pixbuf resolution 2026-08-02 13:37:10 +05:45
sankalp 75d59aa06d refactor(globalmenu): reuse active-window service 2026-08-02 13:37:10 +05:45
sankalp 21179b049a refactor(globalmenu): compile shim via run_command 2026-08-02 13:37:10 +05:45
sankalp b8e1162743 refactor(dock): add cached icon surface fields 2026-08-02 13:37:10 +05:45
sankalp 86b8ad51ad perf(dock): cache icon surfaces, coalesce title fetches 2026-08-02 13:37:10 +05:45
sankalp f20d6fe9c5 perf(desktop): defer widget imports to first rebuild 2026-08-02 13:37:10 +05:45
sankalp 0821f0ed47 fix(controlcenter): connect signals once per lifetime 2026-08-02 13:37:10 +05:45
sankalp f6a37290f7 refactor(expanded_player): reuse mmss formatter 2026-08-02 13:37:10 +05:45
sankalp 972eb18088 refactor(controlcenter): drop dead device-remove fallback 2026-08-02 13:37:10 +05:45
sankalp 715f1c8415 refactor(password): verify su through run_command 2026-08-02 13:37:10 +05:45
sankalp 2e4c72dea3 refactor(gtk_utils): drop unused thumbnail loader 2026-08-02 13:37:10 +05:45
sankalp 8b89dd2dcc refactor(functions): add shared app cache and mmss formatter 2026-08-02 13:37:10 +05:45
sankalp 76f275f08d perf(weather): skip refetch when forecast is fresh 2026-08-02 13:37:10 +05:45
sankalp 37efa0bf0a refactor(wallpaper): drop unused get_wallpaper_info 2026-08-02 13:37:10 +05:45
sankalp 4754489f47 fix(sysauth): run auth helper off the main thread 2026-08-02 13:37:10 +05:45
sankalp deb4a3688c perf(network): cache dbus proxies, reuse rfkill state 2026-08-02 13:37:10 +05:45
sankalp f8a0bf0701 perf(mpris): cache metadata, async player calls 2026-08-02 13:37:10 +05:45
sankalp 81dc9408f6 refactor(modus): drop dead helpers, size occlusion from monitor 2026-08-02 13:37:10 +05:45
sankalp 25bd696bf2 refactor(dns): route nmcli through run_command 2026-08-02 13:37:09 +05:45
sankalp 2025cca857 perf(custom_notification): debounce cache writes 2026-08-02 13:37:09 +05:45
sankalp 5c97923588 fix(config): skip unrelated files and no-op reloads 2026-08-02 13:37:09 +05:45
sankalp 8372782032 refactor(brightness): drop unused poll timer id 2026-08-02 13:37:09 +05:45
sankalp 29cf4fedc1 refactor(bluetooth): drive rfkill state from kernel events 2026-08-02 13:37:09 +05:45
sankalp e949bd4397 refactor(battery): hoist raw-state mapping to constant 2026-08-02 13:37:09 +05:45
sankalp 57b9269736 build: pin fabric to v0.0.2 release tag 2026-08-02 13:36:59 +05:45
sankalp 98c3181541 fix(date): update label in place to avoid GTK3 visibility glitch
Repeated set_label() on every tick destroys and recreates the button's
internal label; after enough redraws GTK3 drops its visibility. Capture
the label once and update via set_text() instead.
2026-08-02 12:10:11 +05:45
sankalp 9e992578f8 feat(main): connect polkit agent to auth dialog 2026-08-02 12:10:09 +05:45
sankalp e36e0c1a7d feat(sysauth-dialog): add thread-safe dismiss and service wiring
run_auth_dialog now returns a thread-safe dismiss callable so polkitd
cancellations can close the dialog from any thread. connect_sysauth_service
wires the agent signals to the dialog: show on begin, respond on submit,
re-prompt on failure, dismiss on cancel.
2026-08-02 12:10:06 +05:45
sankalp 1059833576 fix(sysauth): hold BeginAuthentication reply until auth resolves
polkitd ends the authentication session the moment the BeginAuthentication
D-Bus reply returns, so replying immediately aborted every attempt with
'No session for cookie'. The invocation is now held until respond() or
cancel() resolves it, and cancelled sessions return
org.freedesktop.PolicyKit1.Error.Cancelled.

Also export the agent on the system bus (polkitd addresses agents by the
system-bus unique name used for registration) and authenticate through
polkit-agent-helper-1 via socket activation or setuid fallback so PAM
runs as root, instead of the old direct Respond call that only works
for uid 0.
2026-08-02 12:10:03 +05:45
sankalp ba4d73d58f fix: weakref callbacks to stop settings window memory leak 2026-08-01 21:04:24 +05:45
sankalp 963ca39303 perf: lazy-load settings window to cut startup memory 2026-08-01 20:46:33 +05:45
sankalp 9dc18f9fec Merge pull request #48 from S4NKALP/dependabot/github_actions/actions/setup-python-7
chore(deps): bump actions/setup-python from 5 to 7
2026-08-01 20:05:17 +05:45
sankalp 9ebb53942b Merge pull request #45 from S4NKALP/dependabot/github_actions/actions/labeler-7
chore(deps): bump actions/labeler from 5 to 7
2026-08-01 20:04:58 +05:45
sankalp dc6fd67d66 Merge pull request #47 from S4NKALP/dependabot/github_actions/astral-sh/setup-uv-7
chore(deps): bump astral-sh/setup-uv from 4 to 7
2026-08-01 20:04:27 +05:45
sankalp 246261675a Merge pull request #46 from S4NKALP/dependabot/github_actions/github/codeql-action-4.37.3
chore(deps): bump github/codeql-action from 3 to 4.37.3
2026-08-01 20:04:16 +05:45
sankalp 09f792078f fix: dropdown callbacks, singleton about dialog, config-driven settings sidebar, switcher cache eviction 2026-08-01 20:03:46 +05:45
sankalp 456545e6a6 perf: break animator and popup ref cycles, suspend idle timers
Break self -> animator -> lambda cycles in smooth switch and flat scale
by stopping animators and disconnecting value handlers on destroy. Drop
mutual OSD window/osd refs and clear the applet active-popup class ref.

Suspend the dock animation loop when nothing animates, pause the desktop
system info poller while unmapped, replace the OSD watchdog polling with
a single shot at expiry, lower the notch visualizer tick rate, and
cancel outstanding dock occlusion/rebuild timers on teardown.
2026-08-01 19:53:15 +05:45
sankalp d8696b9198 fix: add destroy() and signal cleanup across widgets, fix settings window + menu regressions
P0 leak fixes: context/action menus destroyed on deactivate, config
callbacks unregistered in settings widgets, recorder and server signal
IDs stored and disconnected, bluetooth client closed and unsubscribed,
rfkill timer removed, seek timers cancelled, dropdown and options menus
freed, app name cache LRU-bounded.

Fix desktop 'Edit Widgets' and settings menu regressions by deferring
destroy out of Gtk signal handlers via GLib.idle_add.

Fix settings entry fields by connecting the activate signal explicitly
(Enter saves the value).
2026-08-01 19:44:39 +05:45
sankalp 55fc3fba21 fix: drop notification header icon, defer spotlight paste quit, use hyprctl send_shortcut 2026-08-01 19:23:56 +05:45
sankalp 4122b9a305 fix: launch desktop apps from home dir, not Modus cwd
GIO inherits the caller's working directory when a desktop file has no
Path= entry, so terminals and file managers opened in the Modus project
dir. chdir to the desktop file's Path= or $HOME before launching.
2026-07-31 20:37:03 +05:45
sankalp b10244a61c fix: sanitize lat/lon from location cache before disk write 2026-07-31 01:42:31 +05:45
sankalp 3c93ac1c20 fix: disconnect signals and config callbacks on destroy
- dock/main.py: off_config_change in destroy()
- switcher/main.py: add destroy() for capture signals + config
- panel/main.py: disconnect fullscreen-changed signal
- notification_center.py: add destroy() for 4 notification signals
2026-07-31 01:37:16 +05:45
sankalp beab79a405 refactor: extract shared mixins, fix cpu waste, resolve browser icons
- Extract CloseButtonRevealerMixin, PullToRefreshMixin, BasePlayerBoxStack
- Replace mpris.py 2s+5s D-Bus polling with Seeked signal subscription
- Remove redundant desktop/main.py os.listdir() poll (FileMonitor covers)
- Remove switcher/main.py 200ms capture timer, chain from frame-ready
- Resolve browser MPRIS icons via desktop file lookup, fallback to app name
- Fix CodeQL py/clear-text-storage by rounding lat/lon and stripping from cache
2026-07-31 01:35:25 +05:45
sankalp 92c2b92333 refactor: remove redundant Box wrappers
- dock/main.py: canvas_box eliminated, Revealer wraps canvas directly
- desktop/system.py: two single-child Box wrappers removed
- controlcenter/player.py: redundant album_cover wrapper removed
- controlcenter/expanded_player.py: same pattern as player.py
2026-07-31 00:39:53 +05:45
sankalp 5c936a68da refactor: replace hasattr(self, ...) with direct None-safe access 2026-07-31 00:24:23 +05:45
sankalp 2fb23ca25a chore: pin deps to exact versions, drop unused httpx 2026-07-31 00:18:24 +05:45
sankalp 79176a9635 chore: ignore matugen colors.lua and wallpaper .thumbnails 2026-07-30 23:27:07 +05:45
sankalp c8667994bb Merge pull request #44 from S4NKALP/feat/dock
dock
2026-07-30 23:19:30 +05:45
sankalp a3dc4491cd ci: add CODEOWNERS to auto-request review on PRs 2026-07-30 23:17:53 +05:45