Skip to content

Commit

Permalink
update go mod and import path
Browse files Browse the repository at this point in the history
  • Loading branch information
vcaesar committed Sep 12, 2019
1 parent 402e748 commit c861d6f
Show file tree
Hide file tree
Showing 58 changed files with 204 additions and 212 deletions.
8 changes: 4 additions & 4 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,18 @@ Your first stop should be the examples directory.

Installation
============
go get github.com/BurntSushi/xgbutil
go get github.com/robotn/xgbutil

Dependencies
============
XGB is the main dependency. Use of the xgraphics packages requires graphics-go
and freetype-go.

XGB project URL: https://github.com/BurntSushi/xgb
XGB project URL: https://github.com/robotn/xgb

Quick Example
=============
go get github.com/BurntSushi/xgbutil/_examples/window-name-sizes
go get github.com/robotn/xgbutil/_examples/window-name-sizes
"$GOPATH"/bin/window-name-sizes

The output will be a list of names of all top-level windows and their geometry
Expand All @@ -37,7 +37,7 @@ some basic EWMH properties.)

Documentation
=============
https://godoc.org/github.com/BurntSushi/xgbutil
https://godoc.org/github.com/robotn/xgbutil

Examples
========
Expand Down
8 changes: 4 additions & 4 deletions _examples/change-cursor/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ package main
import (
"log"

"github.com/BurntSushi/xgb/xproto"
"github.com/robotn/xgb/xproto"

"github.com/BurntSushi/xgbutil"
"github.com/BurntSushi/xgbutil/xcursor"
"github.com/BurntSushi/xgbutil/xwindow"
"github.com/robotn/xgbutil"
"github.com/robotn/xgbutil/xcursor"
"github.com/robotn/xgbutil/xwindow"
)

func main() {
Expand Down
8 changes: 4 additions & 4 deletions _examples/compress-events/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@ import (
"log"
"time"

"github.com/BurntSushi/xgb/xproto"
"github.com/robotn/xgb/xproto"

"github.com/BurntSushi/xgbutil"
"github.com/BurntSushi/xgbutil/xevent"
"github.com/BurntSushi/xgbutil/xwindow"
"github.com/robotn/xgbutil"
"github.com/robotn/xgbutil/xevent"
"github.com/robotn/xgbutil/xwindow"
)

// workTime is the amount of time to sleep to simulate "work" in response to
Expand Down
2 changes: 1 addition & 1 deletion _examples/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ more bloated than I would like.
If you have any suggestions for other examples to include, I'd be happy to hear
them. You may post them at the main project page:
https://github.com/BurntSushi/xgbutil.
https://github.com/robotn/xgbutil.
*/
package documentation
6 changes: 3 additions & 3 deletions _examples/draw-text/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (
"log"
"os"

"github.com/BurntSushi/xgbutil"
"github.com/BurntSushi/xgbutil/xevent"
"github.com/BurntSushi/xgbutil/xgraphics"
"github.com/robotn/xgbutil"
"github.com/robotn/xgbutil/xevent"
"github.com/robotn/xgbutil/xgraphics"
)

var (
Expand Down
22 changes: 11 additions & 11 deletions _examples/fullscreen/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,17 @@ import (
_ "image/png"
"log"

"github.com/BurntSushi/xgb/xproto"

"github.com/BurntSushi/xgbutil"
"github.com/BurntSushi/xgbutil/ewmh"
"github.com/BurntSushi/xgbutil/gopher"
"github.com/BurntSushi/xgbutil/icccm"
"github.com/BurntSushi/xgbutil/keybind"
"github.com/BurntSushi/xgbutil/mousebind"
"github.com/BurntSushi/xgbutil/xevent"
"github.com/BurntSushi/xgbutil/xgraphics"
"github.com/BurntSushi/xgbutil/xwindow"
"github.com/robotn/xgb/xproto"

"github.com/robotn/xgbutil"
"github.com/robotn/xgbutil/ewmh"
"github.com/robotn/xgbutil/gopher"
"github.com/robotn/xgbutil/icccm"
"github.com/robotn/xgbutil/keybind"
"github.com/robotn/xgbutil/mousebind"
"github.com/robotn/xgbutil/xevent"
"github.com/robotn/xgbutil/xgraphics"
"github.com/robotn/xgbutil/xwindow"
)

func main() {
Expand Down
10 changes: 5 additions & 5 deletions _examples/graceful-window-close/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ import (
"os"
"time"

"github.com/BurntSushi/xgb/xproto"
"github.com/robotn/xgb/xproto"

"github.com/BurntSushi/xgbutil"
"github.com/BurntSushi/xgbutil/mousebind"
"github.com/BurntSushi/xgbutil/xevent"
"github.com/BurntSushi/xgbutil/xwindow"
"github.com/robotn/xgbutil"
"github.com/robotn/xgbutil/mousebind"
"github.com/robotn/xgbutil/xevent"
"github.com/robotn/xgbutil/xwindow"
)

// When counter reaches 0, exit.
Expand Down
12 changes: 6 additions & 6 deletions _examples/image-speed/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
package main

import (
"github.com/BurntSushi/xgb/xproto"
"github.com/BurntSushi/xgbutil"
"github.com/BurntSushi/xgbutil/keybind"
"github.com/BurntSushi/xgbutil/xevent"
"github.com/BurntSushi/xgbutil/xgraphics"
"github.com/BurntSushi/xgbutil/xwindow"
"github.com/robotn/xgb/xproto"
"github.com/robotn/xgbutil"
"github.com/robotn/xgbutil/keybind"
"github.com/robotn/xgbutil/xevent"
"github.com/robotn/xgbutil/xgraphics"
"github.com/robotn/xgbutil/xwindow"
"image"
"log"
"time"
Expand Down
10 changes: 5 additions & 5 deletions _examples/keypress-english/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ import (
"flag"
"log"

"github.com/BurntSushi/xgb/xproto"
"github.com/robotn/xgb/xproto"

"github.com/BurntSushi/xgbutil"
"github.com/BurntSushi/xgbutil/keybind"
"github.com/BurntSushi/xgbutil/xevent"
"github.com/BurntSushi/xgbutil/xwindow"
"github.com/robotn/xgbutil"
"github.com/robotn/xgbutil/keybind"
"github.com/robotn/xgbutil/xevent"
"github.com/robotn/xgbutil/xwindow"
)

var flagRoot = false
Expand Down
12 changes: 6 additions & 6 deletions _examples/multiple-source-event-loop/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ import (
"log"
"time"

"github.com/BurntSushi/xgb/xproto"
"github.com/robotn/xgb/xproto"

"github.com/BurntSushi/xgbutil"
"github.com/BurntSushi/xgbutil/ewmh"
"github.com/BurntSushi/xgbutil/xevent"
"github.com/BurntSushi/xgbutil/xprop"
"github.com/BurntSushi/xgbutil/xwindow"
"github.com/robotn/xgbutil"
"github.com/robotn/xgbutil/ewmh"
"github.com/robotn/xgbutil/xevent"
"github.com/robotn/xgbutil/xprop"
"github.com/robotn/xgbutil/xwindow"
)

// otherSource serves as a placeholder from some other source of user input.
Expand Down
18 changes: 9 additions & 9 deletions _examples/pointer-painting/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ import (
_ "image/png"
"log"

"github.com/BurntSushi/xgb/xproto"

"github.com/BurntSushi/xgbutil"
"github.com/BurntSushi/xgbutil/gopher"
"github.com/BurntSushi/xgbutil/keybind"
"github.com/BurntSushi/xgbutil/mousebind"
"github.com/BurntSushi/xgbutil/xevent"
"github.com/BurntSushi/xgbutil/xgraphics"
"github.com/BurntSushi/xgbutil/xwindow"
"github.com/robotn/xgb/xproto"

"github.com/robotn/xgbutil"
"github.com/robotn/xgbutil/gopher"
"github.com/robotn/xgbutil/keybind"
"github.com/robotn/xgbutil/mousebind"
"github.com/robotn/xgbutil/xevent"
"github.com/robotn/xgbutil/xgraphics"
"github.com/robotn/xgbutil/xwindow"
)

var (
Expand Down
8 changes: 4 additions & 4 deletions _examples/screenshot/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ package main
import (
"log"

"github.com/BurntSushi/xgb/xproto"
"github.com/robotn/xgb/xproto"

"github.com/BurntSushi/xgbutil"
"github.com/BurntSushi/xgbutil/xevent"
"github.com/BurntSushi/xgbutil/xgraphics"
"github.com/robotn/xgbutil"
"github.com/robotn/xgbutil/xevent"
"github.com/robotn/xgbutil/xgraphics"
)

func main() {
Expand Down
8 changes: 4 additions & 4 deletions _examples/show-image/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ import (
_ "image/png"
"log"

"github.com/BurntSushi/xgbutil"
"github.com/BurntSushi/xgbutil/gopher"
"github.com/BurntSushi/xgbutil/xevent"
"github.com/BurntSushi/xgbutil/xgraphics"
"github.com/robotn/xgbutil"
"github.com/robotn/xgbutil/gopher"
"github.com/robotn/xgbutil/xevent"
"github.com/robotn/xgbutil/xgraphics"
)

func main() {
Expand Down
8 changes: 4 additions & 4 deletions _examples/show-window-icons/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ import (
"image/color"
"log"

"github.com/BurntSushi/xgbutil"
"github.com/BurntSushi/xgbutil/ewmh"
"github.com/BurntSushi/xgbutil/xevent"
"github.com/BurntSushi/xgbutil/xgraphics"
"github.com/robotn/xgbutil"
"github.com/robotn/xgbutil/ewmh"
"github.com/robotn/xgbutil/xevent"
"github.com/robotn/xgbutil/xgraphics"
)

var (
Expand Down
6 changes: 3 additions & 3 deletions _examples/simple-keybinding/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ package main
import (
"log"

"github.com/BurntSushi/xgbutil"
"github.com/BurntSushi/xgbutil/keybind"
"github.com/BurntSushi/xgbutil/xevent"
"github.com/robotn/xgbutil"
"github.com/robotn/xgbutil/keybind"
"github.com/robotn/xgbutil/xevent"
)

func main() {
Expand Down
6 changes: 3 additions & 3 deletions _examples/simple-mousebinding/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ package main
import (
"log"

"github.com/BurntSushi/xgbutil"
"github.com/BurntSushi/xgbutil/mousebind"
"github.com/BurntSushi/xgbutil/xevent"
"github.com/robotn/xgbutil"
"github.com/robotn/xgbutil/mousebind"
"github.com/robotn/xgbutil/xevent"
)

func main() {
Expand Down
10 changes: 5 additions & 5 deletions _examples/window-gradient/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ import (
"math/rand"
"time"

"github.com/BurntSushi/xgb/xproto"
"github.com/robotn/xgb/xproto"

"github.com/BurntSushi/xgbutil"
"github.com/BurntSushi/xgbutil/xevent"
"github.com/BurntSushi/xgbutil/xgraphics"
"github.com/BurntSushi/xgbutil/xwindow"
"github.com/robotn/xgbutil"
"github.com/robotn/xgbutil/xevent"
"github.com/robotn/xgbutil/xgraphics"
"github.com/robotn/xgbutil/xwindow"
)

func main() {
Expand Down
8 changes: 4 additions & 4 deletions _examples/window-name-sizes/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ import (
"fmt"
"log"

"github.com/BurntSushi/xgbutil"
"github.com/BurntSushi/xgbutil/ewmh"
"github.com/BurntSushi/xgbutil/icccm"
"github.com/BurntSushi/xgbutil/xwindow"
"github.com/robotn/xgbutil"
"github.com/robotn/xgbutil/ewmh"
"github.com/robotn/xgbutil/icccm"
"github.com/robotn/xgbutil/xwindow"
)

func main() {
Expand Down
10 changes: 5 additions & 5 deletions _examples/workarea-struts/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ import (
"fmt"
"log"

"github.com/BurntSushi/xgbutil"
"github.com/BurntSushi/xgbutil/ewmh"
"github.com/BurntSushi/xgbutil/xinerama"
"github.com/BurntSushi/xgbutil/xrect"
"github.com/BurntSushi/xgbutil/xwindow"
"github.com/robotn/xgbutil"
"github.com/robotn/xgbutil/ewmh"
"github.com/robotn/xgbutil/xinerama"
"github.com/robotn/xgbutil/xrect"
"github.com/robotn/xgbutil/xwindow"
)

func main() {
Expand Down
8 changes: 4 additions & 4 deletions _examples/xgraphics-compat/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ package main
import (
"log"

"github.com/BurntSushi/xgb/xproto"
"github.com/robotn/xgb/xproto"

"github.com/BurntSushi/xgbutil"
"github.com/BurntSushi/xgbutil/xgraphics"
"github.com/robotn/xgbutil"
"github.com/robotn/xgbutil/xgraphics"
)

func main() {
Expand Down Expand Up @@ -76,7 +76,7 @@ func checkCompatibility(X *xgbutil.XUtil) {
// Give instructions on reporting the issue.
if failed {
log.Printf("Please report the aforementioned error message(s) at " +
"https://github.com/BurntSushi/xgbutil. Please also include the " +
"https://github.com/robotn/xgbutil. Please also include the " +
"entire output of the `xdpyinfo` command in your report. Thanks!")
} else {
log.Printf("No compatibility issues detected.")
Expand Down
6 changes: 3 additions & 3 deletions _examples/xmodmap/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ import (
"log"
"strings"

"github.com/BurntSushi/xgb/xproto"
"github.com/robotn/xgb/xproto"

"github.com/BurntSushi/xgbutil"
"github.com/BurntSushi/xgbutil/keybind"
"github.com/robotn/xgbutil"
"github.com/robotn/xgbutil/keybind"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Installation
xgbutil is go-gettable:
go get github.com/BurntSushi/xgbutil
go get github.com/robotn/xgbutil
Dependencies
Expand All @@ -31,7 +31,7 @@ Quick Example
A quick example to demonstrate that xgbutil is working correctly:
go get github.com/BurntSushi/xgbutil/examples/window-name-sizes
go get github.com/robotn/xgbutil/examples/window-name-sizes
GO/PATH/bin/window-name-sizes
The output will be a list of names of all top-level windows and their geometry
Expand Down
Loading

0 comments on commit c861d6f

Please sign in to comment.