A library and CLI exposing android vibrator functionality.
- A prebuilt binary is provided for ARM architecture in releases.
- A unix like environment with gcc or musl-gcc is required.
-
if you want to use
gcc- run
nimble install --passNim:'-d:release -d:strip --passL:-static' https://github.com/m33mt33n/vib - will install library and build an static binary (don't use
--passL:-staticflag if you want dynamically linked binary).
- run
-
if you want to use
musl-gcc- run
nimble install --passNim:'-d:release -d:strip -d:musl' https://github.com/m33mt33n/vib - will install library and build an static binary.
- run
-
alternatively
gitcould be used- run
git clone https://github.com/m33mt33n/vib.git- run
cd vib && make vib-bin-static-glibcif usinggcc - run
cd vib && make vib-bin-static-muslif usingmusl-gcc
- run
- run
-
v1.0.1-alpha (14.12.2025)
Vibrate android device.
Usage: vib [-h] [-v] [-c=int] [-s=int] [-d=int]
Required arguments:
Optional arguments:
-h, --help Show this help message and exit.
-v, --version Show version number and exit.
-c=int, --vibrations-count=int number of vibration repetitions (default: 1)
-s=int, --sleep-between=int delay between repeats in milliseconds (default: 1000)
-d=int, --duration=int duration of vibration in milliseconds (default: 100)
# vibrate for 100 milliseconds
$ vib
# vibrate for 100 milliseconds 3 times, pause 2 seconds between repeats
$ vib -d:100 -c:3 -s:2000