Display the battery state of Razer products using log messages from Razer Synapse. Inspired by Tekk-Know/RazerBatteryTaskbar, instead of USB communication this app uses Razer Synapse logs to get the latest battery status of Razer wireless devices. This has the advantage to support more devices (headsets, mice, keyboard, etc.) without extra configuration, but also requires Razer Synapse 3 or 4 to be running.
≥80% | ≥60% | ≥40% | ≥20% | ≥0% | unknown % | numeric |
---|---|---|---|---|---|---|
Razer Synapse 3
or Razer Synapse 4
running in the backgroundRun the setup exe. After installation the app will show its icon on the taskbar. Use the Settings menu to configure automatic startup if needed.
npm install
npm run make
out\make
directory.The app is monitoring the logs of Razer Synapse. The monitored file is:
%LOCALAPPDATA%\Razer\Synapse3\Log\Razer Synapse 3.log
for Razer Synapse 3%LOCALAPPDATA%\Razer\RazerAppEngine\User Data\Logs\systray_systrayv2.log
for Razer Synapse 4The app reads the log content throttled by the "Maximum battery update delay" setting. The code is looking for connection and battery information in the logs, and parses the latest state of each device as defined in razer_watcher.ts
.
If the log format of Razer Synapse changes, this file will need to be updated.