/xbg

:koala: Go module for setting the background image for WMs that use X

Primary LanguageCMIT LicenseMIT

xbg Build Status Go Report Card GoDoc

Go module for setting the background image under X (Xorg/X11).

WORK IN PROGRESS

  • Can be used together with window managers like i3 and AwesomeWM.
  • Intended to be used by wallutils.
  • By using New() and .Release(), the X11 struct is thread-safe. The SetWallpaper function uses these.
  • Uses setroot directly, by having it as a git submodule and generating a header file with go generate.

Example

A test-utility is included in cmd/grumpybg/.

Plans

  • Rewrite the C code using a Go module that can use the X11 protocol directly, then make it thread-safe.
  • Support multiple monitors in x11.go.
  • Support monitor rotation in x11.go.

General info

bgs.h is a modified version of bgs.c that is licensed under the MIT/X license and is copyright © 2007-2008 Enno Gottox Boland .