| name | device |
| description | Device controls — vibration, torch, volume, battery status, toast messages. Use for haptic feedback, flashlight, or quick status checks. |
Device Controls
Toast (quick popup)
termux-toast "Message"
termux-toast -s "Short message"
termux-toast -g top "Top message"
termux-toast -b black -c white "Styled"
Vibration
termux-vibrate
termux-vibrate -d 500
termux-vibrate -f
Flashlight
termux-torch on
termux-torch off
Volume
termux-volume
termux-volume music 10
termux-volume ring 5
Streams: call, system, ring, music, alarm, notification
Battery Status
termux-battery-status
Returns: percentage, status (CHARGING/DISCHARGING), plugged, temperature, etc.
Brightness
termux-brightness 128
termux-brightness auto
WiFi Info
termux-wifi-connectioninfo
termux-wifi-scaninfo
termux-wifi-enable true/false
Sensor Data
termux-sensor -l
termux-sensor -s accelerometer
termux-sensor -s accelerometer -n 5