Skip to content

m33mt33n/vib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vib

A library and CLI exposing android vibrator functionality.

Installation

Get prebuilt binary:

  • A prebuilt binary is provided for ARM architecture in releases.

Build you own:

  • 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:-static flag if you want dynamically linked binary).
    • 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.
    • alternatively git could be used

      • run git clone https://github.com/m33mt33n/vib.git
        • run cd vib && make vib-bin-static-glibc if using gcc
        • run cd vib && make vib-bin-static-musl if using musl-gcc

Usage

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)

Examples

# vibrate for 100 milliseconds
$ vib

# vibrate for 100 milliseconds 3 times, pause 2 seconds between repeats
$ vib -d:100 -c:3 -s:2000