# Device

> Device controls — vibration, torch, volume, battery status, toast messages. Use for haptic feedback, flashlight, or quick status checks. Use when this capability is needed.

- Skill: `tomevault-io/device` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add tomevault-io/device`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tomevault-io/device/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: tomevault-io (https://skillmd.com/u/tomevault-io)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/tomevault-io/device

---


# Device Controls

## Toast (quick popup)
```bash
termux-toast "Message"
termux-toast -s "Short message"           # shorter duration
termux-toast -g top "Top message"         # position: top, middle, bottom
termux-toast -b black -c white "Styled"   # background & text color
```

## Vibration
```bash
termux-vibrate                     # 1 second default
termux-vibrate -d 500              # 500ms
termux-vibrate -f                  # force even in silent mode
```

## Flashlight
```bash
termux-torch on
termux-torch off
```

## Volume
```bash
termux-volume                      # show all streams
termux-volume music 10             # set music to 10
termux-volume ring 5               # set ring to 5
```
Streams: `call`, `system`, `ring`, `music`, `alarm`, `notification`

## Battery Status
```bash
termux-battery-status
```
Returns: `percentage`, `status` (CHARGING/DISCHARGING), `plugged`, `temperature`, etc.

## Brightness
```bash
termux-brightness 128              # 0-255
termux-brightness auto             # auto brightness
```

## WiFi Info
```bash
termux-wifi-connectioninfo         # current connection
termux-wifi-scaninfo               # nearby networks
termux-wifi-enable true/false      # toggle wifi
```

## Sensor Data
```bash
termux-sensor -l                   # list available sensors
termux-sensor -s accelerometer     # read specific sensor
termux-sensor -s accelerometer -n 5  # 5 readings then stop
```

---
> Converted and distributed by [TomeVault](https://tomevault.io/claim/mikeyobrien) — claim your Tome and manage your conversions.
<!-- tomevault:4.0:skill_md:2026-04-11 -->

