Commit Graph
371 Commits
Author SHA1 Message Date
sankalp ea68fdab47 feat(battery): add charge threshold slider when sysfs available
- Show FlatScale slider (20-100%) next to charge limit toggle
- Display current threshold value as label
- Only rendered when sysfs charge_control path is detected
2026-07-23 11:32:11 +05:45
sankalp dda54bab19 feat(battery): add sysfs charge limit detection with threshold support
- Read charge_control_end/charge_control from /sys/class/power_supply/BAT*
- Store threshold value and sysfs path in ChargeLimit dataclass
- Fall back to UPower D-Bus when sysfs unavailable
2026-07-23 11:32:03 +05:45
sankalp b8bde92042 style(notification): update close button to match SwayNotificationCenter design
- Remove opacity transition (Revealer handles visibility now)
- Bump min-size from 20px to 24px to match SwayNotificationCenter
- Zero padding for circular button appearance
- Use @glass-hover/@glass-active for consistent theme colors
2026-07-23 11:26:17 +05:45
sankalp 072f77e8cc fix(notification-center): preserve expanded state when closing notifications
- Replace CSS opacity toggle with Gtk.Revealer CROSSFADE for close button
- Add 80ms delayed hide to prevent race condition on boundary crossing
- Fix _refresh_group_widget to sync expanded list in-place instead of
  destroy/recreate when group is expanded
- Scope show_all() to expanded_container only to prevent collapsed state
  from becoming visible alongside expanded state
2026-07-23 11:26:09 +05:45
sankalp 71b20f8a2c feat(notification): add swipe-to-dismiss and close-button popup
- Replace CSS opacity toggle with Gtk.Revealer CROSSFADE for close button
- Wrap close button in EventBox for reliable hover detection
- Add 80ms delayed hide to prevent race condition on boundary crossing
- Implement swipe-right-to-dismiss with _fixed.move() for smooth 60fps
- Skip SlideRevealer.hide() on swipe dismiss to prevent skeleton flash
2026-07-23 11:26:04 +05:45
sankalp 87b093eabb fix(bluetooth): UI not updating when devices auto-connect externally 2026-07-22 15:08:02 +05:45
sankalp fcd2952d29 fix: some issue in bluetooth widget 2026-07-22 14:07:44 +05:45
sankalp ed712b7af1 fix(controlcenter): suppress expected signal disconnect errors
- volume_scale/brightness_scale disconnect_by_func may fail if signals
  were never connected (e.g. on first hide before resources init)
- Downgrade from error to silent pass
2026-07-22 10:38:41 +05:45
sankalp 4bd99e221a Revert "fix(wifi): SVG lock icon for password-protected networks"
This reverts commit 7ce90995f6.
2026-07-22 10:37:33 +05:45
sankalp af44b02a60 Revert "fix(wifi): add alignment to SVG lock icon for visibility"
This reverts commit 43c5392f1c.
2026-07-22 10:37:33 +05:45
sankalp 43c5392f1c fix(wifi): add alignment to SVG lock icon for visibility
- Svg DrawingArea needs h_align/v_align to render in Box layout
2026-07-22 10:35:32 +05:45
sankalp 7ce90995f6 fix(wifi): SVG lock icon for password-protected networks
- Replace changes-prevent-symbolic with notch/lock.svg
2026-07-22 10:29:52 +05:45
sankalp 13ce9ba599 fix: formating 2026-07-22 10:29:32 +05:45
sankalp aea123b2f5 fix(globalmenu): downgrade D-Bus introspect timeout to debug
- Timeouts are expected for services without introspection support
- _dbus_get_pid and _dbus_introspect now log at debug level
- Cache already stores empty results; invalidation on service appear
  causes retries which is correct behavior
2026-07-22 10:27:44 +05:45
sankalp 970bebe84e fix(controlcenter): WiFi icon signal and accessor
- Change notify::wireless-enabled to notify::enabled
- Change .wireless_enabled to .enabled
2026-07-22 10:25:16 +05:45
sankalp 553b1e49d8 fix(spotlight): SVG search icon and import order
- Replace system-search-symbolic with misc/search.svg
- Add _ICON_SVG_MAP for GTK theme to SVG path resolution
- Move all imports to top of file (fix E402)
2026-07-22 10:25:10 +05:45
sankalp caba9fee47 fix(indicators): remove redundant mic signal disconnect
- disconnect_by_func before first connect always fails
- old device check already handles previous mic cleanup
2026-07-22 10:24:58 +05:45
sankalp cda9f629aa fix(notification): SVG fallback icon and theme icon loading
- Replace GTK theme notifications icon with SVG
- Fix load_and_cache_theme_icon to use Gtk.IconTheme directly
  instead of IconResolver (designed for app IDs, not theme names)
- Add suffix fallbacks for theme icon resolution
2026-07-22 10:24:53 +05:45
sankalp 45a3ccbcab fix: SVG icons for wifi password dialog and per-app volume
- Replace network-wireless-symbolic with wifi/network-wireless-100.svg
- Replace back button icon with misc/chevron-left.svg
2026-07-22 10:24:45 +05:45
sankalp e940883592 fix(bluetooth-ui): SVG battery icon and back button
- Replace GTK theme battery icons with SVG from assets/icons/battery/
- Replace back button icon with misc/chevron-left.svg
- Remove unused get_battery_theme_icon function
2026-07-22 10:24:41 +05:45
sankalp be319c4baa fix(battery): DisplayDevice PropertiesChanged unpack error
- parameters.unpack() already returns plain Python values
- Cache values directly instead of calling .unpack() on int/str
2026-07-22 10:24:32 +05:45
sankalp b786d54a08 fix(bluetooth): late Battery1 interface attachment
- Add attach_battery_proxy() for devices where Battery1 appears after Device1
- Handle BLUEZ_BATTERY_IFACE in InterfacesAdded signal
- Search existing devices by object path to attach late battery proxy
2026-07-22 10:24:15 +05:45
sankalp e57d49c813 fix(wifi): has_style_class crash, panel refresh, other networks
- Replace Svg.has_style_class (nonexistent) with _anim_state flag
- Add on_show handler to trigger scan+refresh when wifi widget mapped
- Fix other_networks snap_to_size when section visible with children
- Add destroyed widget guards on connection callbacks
2026-07-22 10:24:08 +05:45
sankalp 9442b9f89b fix(network): WiFi connection D-Bus calls and signal handling
- Fix ActivateConnection signature (sss) -> (ooo) for NM object paths
- Fix connect_wifi/connect_wifi_with_password tuple check
- Add detailed tracing for connection attempts
- Change _call D-Bus error logging from debug to warning
- Fix GLib.Variant a{sv} dict iteration (unpack before 'in' check)
- Fix deactivate_connection return check (is True vs is not None)
2026-07-22 10:23:59 +05:45
sankalp f5271e1b9b fix: fixed formatting 2026-07-21 16:42:40 +05:45
sankalp 361d52b285 fix(lock): replace pam with python-pam and shim six dependency
Switch from the abandoned  package to .
Patch  into sys.modules before importing pam since
python-pam uses it internally but doesn't declare it as a dependency.
Update authenticate call to use pam.pam().authenticate().
2026-07-21 15:42:06 +05:45
sankalp ecd7061edc fix: the notch and indicator are now in same children 2026-07-21 14:47:18 +05:45
sankalp 0e805d24ec refactor: reogranize code structure for better styling 2026-07-21 14:40:23 +05:45
sankalp e095e88715 feat(svg): add svg for charge limit 2026-07-21 14:39:25 +05:45
sankalp 755a604308 feat(services): updated __init__.py 2026-07-21 14:38:34 +05:45
sankalp cbc55885c4 style: fix style 2026-07-21 14:37:46 +05:45
sankalp 8c075b8001 fix(settings): remove named 2026-07-21 14:36:54 +05:45
sankalp 5697cd1e7e fix(indicator): fixed some subtle bugs 2026-07-21 14:36:19 +05:45
sankalp 699b8f92e9 fix(src/shared/dialogs/wifi_password_dialog.py): fixed timeout and using dbus proxy 2026-07-21 14:35:48 +05:45
sankalp 4d02fb8962 dropped playerctl and use dbus proxy of mpris 2026-07-21 14:34:47 +05:45
sankalp d97477b2b9 refactor(network): replace nmcli with native D-Bus for Wi-Fi management
This commit fully migrates the Python network service away from external wlan0: connected to Amar 2GNet
	"MEDIATEK MT7921 802.11ax"
	wifi (mt7921e), 2C:98:11:76:9B:2B, hw, mtu 1500
	ip4 default, ip6 default
	inet4 192.168.18.70/24
	route4 192.168.18.0/24 metric 600
	route4 default via 192.168.18.1 metric 600
	inet6 2405:acc0:1306:351c:ac94:2135:f9a8:5c89/64
	inet6 fe80::4057:8edd:a684:5e33/64
	route6 fe80::/64 metric 1024
	route6 2405:acc0:1306:351c::/64 metric 600
	route6 default via fe80::1 metric 600

lo: connected (externally) to lo
	"lo"
	loopback (unknown), 00:00:00:00:00:00, sw, mtu 65536
	inet4 127.0.0.1/8
	inet6 ::1/128

docker0: connected (externally) to docker0
	"docker0"
	bridge, 0A:89:72:7F:4D:75, sw, mtu 1500
	inet4 172.17.0.1/16
	route4 172.17.0.0/16 metric 0

p2p-dev-wlan0: disconnected
	"p2p-dev-wlan0"
	wifi-p2p, hw

enp2s0: unavailable
	"Realtek RTL8111/8168/8211/8411"
	ethernet (r8169), 40:C2:BA:53:D5:E4, hw, mtu 1500

DNS configuration:
	servers: 192.168.18.1
	interface: wlan0

	servers: fe80::1
	interface: wlan0

Use "nmcli device show" to get complete information about known devices and
"nmcli connection show" to get an overview on active connection profiles.

Consult nmcli(1) and nmcli-examples(7) manual pages for complete usage details.
subprocess calls, implementing native D-Bus communication for a more robust and
integrated architecture.

Key changes:
- :
  - Implemented native D-Bus methods for , , and .
  - Updated  to track , , and  state.
  - Fixed a bug where D-Bus  returned a tuple, preventing known networks from being parsed correctly.
- :
  - Wired UI events to the new D-Bus connection methods.
  - Fixed a race condition in  initialization where it missed the synchronous  signal, leaving the UI permanently disabled.
  - Removed the  early-return optimization in  that was preventing the active CSS state from applying to already-known networks.
  - Cleaned up unused variables to satisfy  linting and removed redundant  blocks.
- :
  - Removed the 5-second timeout hack, as the new D-Bus service properly fires callbacks upon connection success/failure.
  - Removed hardcoded WPA2 text to make the dialog security-type agnostic.
- :
  - Cleaned up active state styling so only the SVG icon box highlights (using ) when a network is connected.
2026-07-21 14:33:35 +05:45
sankalp 8ac26d6c26 fix(mpris): guard GLib.Variant type check before get_type_string
feat(bluetooth): add rfkill soft-block check and BluetoothState enum
2026-07-21 10:24:39 +05:45
sankalp 301ed9a717 refactor(mpris): replace playerctl with Gio.DBusProxy
Use raw D-Bus via Gio.DBusProxy instead of libplayerctl. All MPRIS
interactions now go through standard D-Bus property reads and method calls.

- Filter out playerctld proxy (duplicates active player)
- Validate art URLs (http/https/file only)
- Track failed cover downloads to avoid retry loops
- Remove excessive try/except around safe property reads
- Add public metadata property for consumers
- Fix consumer references to removed _player.props.metadata
2026-07-21 10:02:33 +05:45
sankalp faaa99bd24 refactor(battery): consolidate button styles, refactor service, remove ddcutil
- Merge game-mode/charge-limit CSS into shared selectors
- Rewrite Battery service with IntEnum states and charge-limit support
- Add ChargeLimitButton with active-state styling
- Drop ddcutil from dependencies (unused)
2026-07-21 09:21:29 +05:45
sankalp a2ac3d0f55 fix(battery): wrap charge-limit SVG in Box for CSS styling
DrawingArea ignores CSS background/color. Box wrapper lets
#charge-limit-icon.connected selector render active state.
2026-07-21 09:17:52 +05:45
sankalp 5cb49522da refactor(brightness): replace ddcutil with logind DBus proxy
- Use org.freedesktop.login1.Session.SetBrightness for kernel backlight
- Remove ddcutil dependency entirely
- Fix OSD: use signal percentage value directly (like audio OSD)
- Fix controlcenter: stop dividing percentage by max_screen again
2026-07-21 07:31:52 +05:45
sankalp a7adbfe60e fix(settings): prevent window destroy on close to keep __main__ reference valid 2026-07-19 16:19:50 +05:45
sankalp 5e0337c0d6 fix(spotlight): monitor .desktop dirs for newly installed apps
Replace 1s TTL timer rescan with Gio.FileMonitor on XDG application
directories so spotlight picks up apps installed while running.
2026-07-19 12:03:27 +05:45
sankalp 96412dda47 feat: add settings window to fabric-cli and update docs 2026-07-19 10:37:12 +05:45
sankalp a7d4358cef feat(release): bump version to 2.0.0 2026-07-18 22:55:11 +05:45
sankalp f9c7a027cd refactor(config): improve toml conversion and add robust error handling 2026-07-18 22:54:48 +05:45
sankalp fe3ccd913b refactor(brightness): replace 500ms poll with GLib.FileMonitor
- Use Gio.FileMonitor on sysfs brightness file
- Event-driven via inotify instead of periodic polling
- _on_brightness_file_changed callback for file modifications
2026-07-18 21:48:11 +05:45
sankalp 8f6a040bb7 refactor(dock): replace 300ms occlusion poll with Hyprland events
- Subscribe to openwindow, closewindow, movewindow, workspace, fullscreen
- 50ms debounce to batch rapid successive events
- Event-driven check instead of continuous polling
- Proper cleanup with _disconnect_occlusion_signals()
2026-07-18 21:43:36 +05:45
sankalp 44f1103259 refactor(per_app_volume): remove redundant 2s polling
- stream-added/stream-removed signals already handle app list updates
- Removed _auto_refresh(), _on_map/_on_unmap timer management
- Removed _last_app_names tracking (unused without polling)
2026-07-18 21:43:29 +05:45
sankalp 2a9964a8e5 refactor(mpris): replace Fabricator with direct GLib.timeout_add
- Remove Fabricator dependency from position/status polling
- Position polling: _pos_source_id + _on_pos_poll() (2s interval)
- Status polling: _status_source_id + _on_status_poll() (5s interval)
- Simplified cleanup with direct source_remove calls
2026-07-18 21:43:22 +05:45