Skip to content
This repository has been archived by the owner on Jul 28, 2023. It is now read-only.
/ xbg Public archive

🐨 Go module for setting the background image for WMs that use X

License

Notifications You must be signed in to change notification settings

xyproto/xbg

Repository files navigation

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 .

About

🐨 Go module for setting the background image for WMs that use X

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published