Commit Graph

75 Commits

Author SHA1 Message Date
Turann_ b2e8707f2f Wrap {} w\ () make a obj 2026-02-03 22:58:35 +03:00
notiant a361890033 add per-device hasNotified logic 2026-02-03 19:46:13 +01:00
Turann_ a22d5e518a Update path 2026-02-03 00:20:12 +03:00
notiant 42a4682a8b implement proper battery warnings 2026-02-02 20:15:47 +01:00
Turann_ b66a8c75ca no need to check on disconnect. 2026-02-02 17:46:35 +03:00
Turann_ bb6bedfcac disallow notifications while plugged or charging. 2026-02-02 17:43:14 +03:00
Turann_ 13996fa250 fix name appending on internal batteries. 2026-02-02 17:34:06 +03:00
Turann_ a150cdf899 Notifications wip 1/? 2026-02-02 17:25:29 +03:00
notiant 4604f09322 fix double entries in tooltip 2026-02-02 14:20:14 +01:00
Turann_ 0b2efff426 Update BatteryService.qml 2026-02-02 07:33:10 +03:00
Turann_ 4dfcc2f8a9 notifications for all | Work in progress.... 2026-02-02 06:41:26 +03:00
Turann_ 6385a3576d Merge branch 'noctalia-dev:main' into pr/refactor-battery-pt5 2026-02-02 04:42:57 +03:00
Turann_ adf71c8356 Formatted 2026-02-02 02:14:36 +03:00
Turann_ 52e58b8c95 Simplify getIcon 2026-02-02 02:14:00 +03:00
Turann_ 16936221be Close Show each battery percentage
Fixes #1111
2026-02-02 02:08:08 +03:00
Lemmy f8ab276b25 ddcutil: potential optimizations when settings brightness (async + noverify) 2026-02-01 16:57:57 -05:00
Turann_ 4eda8ad1fb Update BatteryService.qml 2026-02-01 03:42:20 +03:00
Turann_ 61a1e0adff Revert "Update BatteryService.qml"
This reverts commit 0872ac08ba.
2026-02-01 01:28:46 +03:00
Turann_ 0872ac08ba Update BatteryService.qml 2026-02-01 01:11:00 +03:00
Turann_ ad848c8a61 make rounding in function not individually. 2026-02-01 00:56:41 +03:00
Turann_ 214eb9d1cd Expose batteryIcon - primaryDevice. 2026-02-01 00:31:48 +03:00
Turann_ 0d37c7c82d Enforce laptopBattery 1/? 2026-02-01 00:23:30 +03:00
Turann_ 51d4bde15a Remove redundant function: hasAnyBattery() 2026-01-31 23:27:37 +03:00
Turann_ 3cca35f3aa Add proper naming for multi battery setup 2026-01-31 23:06:31 +03:00
notiant 361324ad4e Battery: further refactor 2026-01-31 19:34:07 +01:00
notiant ad310ec74b Battery: fix low battery warning & fallback handling 2026-01-29 21:24:35 +01:00
Lemmy 76f3fe4624 autofmt 2026-01-29 09:33:36 -05:00
notiant 0c8aff390f small edit 2026-01-29 12:34:42 +01:00
notiant 7d5077da79 make deviceModel a reactive property 2026-01-29 11:38:14 +01:00
notiant 77a92d604c Battery: some fixes & cleanup 2026-01-29 10:43:43 +01:00
Lemmy 9dff29d846 battery: improvements 2026-01-28 17:54:20 -05:00
loner 767bbc66b4 Fix null pointer error in BatteryService.qml 2026-01-28 18:54:03 +08:00
Turann_ 06d1a08f93 run qmlfmt.sh 2026-01-28 01:26:01 +03:00
Turann_ 117ffe5550 refactoring 3/? 2026-01-28 00:57:26 +03:00
Turann_ 5ff0810934 refactoring 2/?
Flaw: I treated DisplayDevice purely as a fallback. It was only added to the list if no other physical batteries were found.
   Scenario: On a laptop [eg: thinkpads] with two batteries (BAT0 and BAT1), the logic would find them and therefore skip adding the DisplayDevice.
   Consequence: Users with two batteries would effectively lose the "Aggregate" (Total System %) view. T
2026-01-27 10:34:27 +03:00
Turann_ cfacfc1366 refactoring 1/? 2026-01-27 10:01:04 +03:00
Lemmy bbab3b6f9d battery: smart hiding take3 2026-01-26 20:47:35 -05:00
Turann_ 610d4d6e30 fix(battery): prioritize laptop battery and improve fallback logic 2026-01-26 05:11:20 +03:00
Turann_ 88a48f5d30 most questionable commit on this pr 2026-01-26 02:58:32 +03:00
Turann_ 628ba91374 feat(service): centralize battery device logic and helpers 2026-01-26 02:20:38 +03:00
Lemmy 033c65d39e icons: updated alias + slightly changed the icons logic for battery 2026-01-25 14:30:16 -05:00
Lemmy 4e3450c22c autofmt + switched a couple logger.i to .d 2026-01-24 21:22:36 -05:00
WojciechSulocki-Gif 3f355e3083 feat: sync DDC brightness on startup and panel open
- BrightnessService: Add onIsDdcChanged handler to fetch brightness
  when DDC is detected at startup
- BrightnessService: Fix condition to update brightness when value is 0
- BrightnessPanel: Refresh DDC brightness when panel opens
- BrightnessCard: Fix timer to only run on user interaction (not continuously)
2026-01-25 01:03:13 +01:00
notiant 13b8346f32 format update 2026-01-23 00:39:21 +01:00
notiant 9f4ffacbaf fix battery icon on LockScreen 2026-01-23 00:05:05 +01:00
notiant a03fd669f3 small edit 2026-01-22 19:17:27 +01:00
notiant d6ed1d186d use LC_ALL to ensure English output 2026-01-22 19:16:12 +01:00
notiant 785f2c09a5 Battery: make health work if comma is decimal seperator & some cleanup 2026-01-22 10:41:08 +01:00
Lemmy 08b7ac4d2c autofmt 2026-01-21 22:36:26 -05:00
kazz 0b763d5067 Merge branch 'main' into main 2026-01-21 14:48:48 +05:30