Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

derfryday/mtmr_hid_battery_info

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

HID Battery Info

Shows Battery Level of Human Input Devices in Touchbar using MTMR

Information

This script will notify the user every 10 minutes when the Battery level of the keyboard/mouse reaches a certain threshold. The notification interval and threshold can be changed, see Configuration for more info.

It could look a little something like this touchbar screenshot

Installation

git clone [email protected]:derfryday/mtmr_hid_battery_info.git

configure MTMR to display the mouse and or keyboard status

  {
    "type": "shellScriptTitledButton",
    "refreshInterval": 4,
    "align": "right",
    "bordered": false,
    "source": {
        "inline": "<SCRIPT_PATH> <DEVICE>"
    }
  },

Replace <SCRIPT_PATH> with the path to your hid-batt_info.sh. replace <DEVICE> with either mouse, keyboard or system. If you want both device just add the entry for each device you want and change the device accordingly. The system is a replacement for the normal battery info because Steffen insisted on having all battery infos in the same style.

Configuration

The Status script can be personalised by changing

NOTIFY_INTERVAL_SECONDS=600
WARN_PERCENT=40
ALARM_PERCENT=20
NOTIFY_AT=$WARN_PERCENT
CHECK_FOR="$1"
CHECK_LOG_FILE="/tmp/$CHECK_FOR.check"

in the script

About

shows battery level of hid devices in touchbar

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages