bnetctl

command module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 17, 2026 License: MIT Imports: 1 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

bnetctl

A Go CLI tool to install, manage, and run Battle.net on Linux via wine-cachyos.

Built for Wayland tiling WMs such as niri and Hyprland. Native Wayland is the default, with an explicit X11/XWayland mode for compatibility. Automatic GPU detection supports AMD, NVIDIA, and Intel.

Dependencies

CachyOS (all packages available in the CachyOS repos):

# Required — optimized Wine installed under /opt/wine-cachyos
sudo pacman -S wine-cachyos-opt

# Required — DXVK/VKD3D translate Direct3D to Vulkan (critical for frame pacing)
sudo pacman -S dxvk-mingw-git vkd3d-proton-mingw-git

# Optional — extracts Battle.net icon for the .desktop entry
sudo pacman -S icoutils

Arch Linux (non-CachyOS): wine-cachyos requires the CachyOS repositories. The closest alternative is wine-tkg-git (AUR) — untested.

Install

go install github.com/bnema/bnetctl@latest

Usage

bnetctl install          # Download, create prefix, install Battle.net
bnetctl launch           # Start Battle.net using native Wayland
bnetctl launch --display-driver x11 # Start through X11/XWayland
bnetctl desktop add      # Create Wayland and X11 menu entries
bnetctl desktop remove   # Remove .desktop menu entry
bnetctl kill             # Stop Battle.net
bnetctl kill -a          # Kill all orphaned Wine processes
bnetctl clean            # Remove cache and prefix
bnetctl clean -a         # Full purge (cache, prefix, desktop entry, data)

What it does

  • Uses /opt/wine-cachyos/bin/wine by default, or BNETCTL_WINE when set
  • Creates a Wine prefix with DXVK + VKD3D-proton auto-installed
  • Downloads and runs the official Battle.net installer
  • Uses native Wayland by default, with --display-driver x11 available for XWayland
  • Sets up NTSync (auto-detected), esync/fsync, GPU-specific env vars
  • Disables Wine systray (orphan floating window on Wayland tiling WMs)
  • Extracts the Battle.net icon and creates separate Wayland and X11 desktop entries
  • Graceful process management with orphan cleanup

Directories

Type Path
Data ~/.local/share/bnetctl
Cache ~/.cache/bnetctl
Prefix ~/.local/share/bnetctl/prefix
Log ~/.cache/bnetctl/bnetctl.log

License

MIT

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL