Skip to content

Latest commit

History

20 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

BMouse

A command-line tool for controlling the RGB lighting and scroll wheel mode on Razer Basilisk V3 mice via direct USB HID — no Razer drivers or Synapse required.

demo.mp4

Supported Devices

Tested with: Razer Basilisk V3 Pro (Wireless), plugged in via USB.

Alternatives:

  • OpenRazer — Linux driver and user-space daemon for Razer devices, with Python bindings and a command-line tool (razer-cli) for controlling lighting and other features. Linux only.

Installation

go install github.com/jashort/bmouse@latest

Or build from source:

git clone https://github.com/jashort/bmouse.git
cd bmouse
make build

macOS You may need to grant your terminal Input Monitoring permission in System Preferences > Security & Privacy > Privacy to allow bmouse to detect the mouse.

For example:

./bmouse list
Razer HID devices: PID=0x00AA Razer Basilisk V3 Pro UsagePage=0x0001 Usage=0x0006 Interface=2 Path=DevSrvsID:4294971771
...
./bmouse static ff0000
no Razer Basilisk V3 found (is it plugged in?)

Indicates that the mouse is detected but not accessible due to missing permissions. Granting Input Monitoring permission should resolve this.

Usage

bmouse <command> [--zone <zone>] [args...]

Commands

CommandDescriptionExample
listList all Razer HID devicesbmouse list
statusShow current settingsbmouse status
static <hex-color>Set a solid colorbmouse static ff0000
breathe <hex-color>Single-color breathingbmouse breathe 00ff00
breathe-dual <color1> <color2>Two-color breathingbmouse breathe-dual ff0000 0000ff
spectrumRainbow spectrum cyclingbmouse spectrum
reactive <hex-color> [--speed 1-3]Light up on clickbmouse reactive ff0000 --speed 1
offTurn LEDs offbmouse off
scroll [mode]Get or set scroll wheel modebmouse scroll tactile

Reactive speed values

ValueDuration
1Short
2Medium (default)
3Long

Scroll wheel modes

ModeDescription
tactileClicky, notched scrolling
freeFree-spin (smooth, silent)
smartSmart Reel — automatically switches based on scroll speed

Flags

FlagDescriptionDefault
--zone <zone>Target LED zone (see table below)all
--brightness <0-255>LED brightness255
--speed <1-3>Reactive effect duration (1=short, 2=medium, 3=long)2 (medium)

Zones

Use the optional --zone flag to target a specific LED zone. Defaults to all zones.

ZoneDescription
allAll LEDs at once (default)
scrollScroll-wheel LED
logoLogo LED
underUnderglow light strip

Color format

6-digit hex, with or without a leading #:

ff8800 #ff8800

Examples

# Set all LEDs to red
bmouse static ff0000
# Set all LEDs to red at half brightness
bmouse static ff0000 --brightness 128 # Green breathing effect on the logo only
bmouse breathe --zone logo 00ff88
# Two-color breathing
bmouse breathe-dual ff0000 0000ff
# Red reactive with short duration
bmouse reactive --speed 1 ff0000
# Spectrum cycling on the scroll wheel
bmouse spectrum --zone scroll
# Turn off underglow
bmouse off --zone under
# Switch to free-spin scroll wheel
bmouse scroll free
# Check current scroll mode
bmouse scroll
# Show current LED and scroll settings
bmouse status

Dependencies

  • go-hid — cross-platform Go bindings for the HIDAPI library

License

MIT

About

Razer Basilisk V3 mouse control CLI

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages