current status

This commit is contained in:
2024-01-21 19:54:24 +01:00
parent f5ed9d0c64
commit 5b423c2ab7
7 changed files with 129 additions and 68 deletions

View File

@ -5,7 +5,7 @@ const batteryLevel = batteryPercent => ({
const batteryIcon = batteryPercent => ({
"-2": "action-unavailable",
"-1": "battery-ac-adapter"
"-1": "reload"
})[batteryPercent] ?? "audio-headphones-symbolic";
const hex2rgb = (hex, h = hex.replace('#', '0x')) => ({ r: h >> 16 & 255, g: h >> 8 & 255, b: h & 255 });