diff --git a/README b/README index a31507a..1b66e69 100644 --- a/README +++ b/README @@ -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 @@ -37,7 +37,7 @@ some basic EWMH properties.) Documentation ============= -https://godoc.org/github.com/BurntSushi/xgbutil +https://godoc.org/github.com/robotn/xgbutil Examples ======== diff --git a/_examples/change-cursor/main.go b/_examples/change-cursor/main.go index 09fc6e1..4029feb 100644 --- a/_examples/change-cursor/main.go +++ b/_examples/change-cursor/main.go @@ -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() { diff --git a/_examples/compress-events/main.go b/_examples/compress-events/main.go index 811fca7..5761f13 100644 --- a/_examples/compress-events/main.go +++ b/_examples/compress-events/main.go @@ -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 diff --git a/_examples/doc.go b/_examples/doc.go index 3d687fb..06af5ad 100644 --- a/_examples/doc.go +++ b/_examples/doc.go @@ -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 diff --git a/_examples/draw-text/main.go b/_examples/draw-text/main.go index f105f9c..0534f70 100644 --- a/_examples/draw-text/main.go +++ b/_examples/draw-text/main.go @@ -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 ( diff --git a/_examples/fullscreen/main.go b/_examples/fullscreen/main.go index 0da5023..b046b14 100644 --- a/_examples/fullscreen/main.go +++ b/_examples/fullscreen/main.go @@ -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() { diff --git a/_examples/graceful-window-close/main.go b/_examples/graceful-window-close/main.go index ba557e9..dd79d99 100644 --- a/_examples/graceful-window-close/main.go +++ b/_examples/graceful-window-close/main.go @@ -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. diff --git a/_examples/image-speed/main.go b/_examples/image-speed/main.go index 5178d06..a4951c9 100644 --- a/_examples/image-speed/main.go +++ b/_examples/image-speed/main.go @@ -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" diff --git a/_examples/keypress-english/main.go b/_examples/keypress-english/main.go index 3f92635..7a5dc67 100644 --- a/_examples/keypress-english/main.go +++ b/_examples/keypress-english/main.go @@ -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 diff --git a/_examples/multiple-source-event-loop/main.go b/_examples/multiple-source-event-loop/main.go index c656a93..9d8b2a7 100644 --- a/_examples/multiple-source-event-loop/main.go +++ b/_examples/multiple-source-event-loop/main.go @@ -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. diff --git a/_examples/pointer-painting/main.go b/_examples/pointer-painting/main.go index 290f0cb..8818e7b 100644 --- a/_examples/pointer-painting/main.go +++ b/_examples/pointer-painting/main.go @@ -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 ( diff --git a/_examples/screenshot/main.go b/_examples/screenshot/main.go index 82aca1c..b03332b 100644 --- a/_examples/screenshot/main.go +++ b/_examples/screenshot/main.go @@ -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() { diff --git a/_examples/show-image/main.go b/_examples/show-image/main.go index d38a75c..f721689 100644 --- a/_examples/show-image/main.go +++ b/_examples/show-image/main.go @@ -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() { diff --git a/_examples/show-window-icons/main.go b/_examples/show-window-icons/main.go index 409cb89..d488e67 100644 --- a/_examples/show-window-icons/main.go +++ b/_examples/show-window-icons/main.go @@ -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 ( diff --git a/_examples/simple-keybinding/main.go b/_examples/simple-keybinding/main.go index 8a02402..8297308 100644 --- a/_examples/simple-keybinding/main.go +++ b/_examples/simple-keybinding/main.go @@ -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() { diff --git a/_examples/simple-mousebinding/main.go b/_examples/simple-mousebinding/main.go index bc97968..ac3feae 100644 --- a/_examples/simple-mousebinding/main.go +++ b/_examples/simple-mousebinding/main.go @@ -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() { diff --git a/_examples/window-gradient/main.go b/_examples/window-gradient/main.go index 5aa10d1..2a50110 100644 --- a/_examples/window-gradient/main.go +++ b/_examples/window-gradient/main.go @@ -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() { diff --git a/_examples/window-name-sizes/main.go b/_examples/window-name-sizes/main.go index a83cc70..336d37c 100644 --- a/_examples/window-name-sizes/main.go +++ b/_examples/window-name-sizes/main.go @@ -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() { diff --git a/_examples/workarea-struts/main.go b/_examples/workarea-struts/main.go index 3ec81e4..1c39cfa 100644 --- a/_examples/workarea-struts/main.go +++ b/_examples/workarea-struts/main.go @@ -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() { diff --git a/_examples/xgraphics-compat/main.go b/_examples/xgraphics-compat/main.go index 8dfc47b..c77c7fb 100644 --- a/_examples/xgraphics-compat/main.go +++ b/_examples/xgraphics-compat/main.go @@ -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() { @@ -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.") diff --git a/_examples/xmodmap/main.go b/_examples/xmodmap/main.go index 99a9611..2c1bbd4 100644 --- a/_examples/xmodmap/main.go +++ b/_examples/xmodmap/main.go @@ -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() { diff --git a/doc.go b/doc.go index d4c9586..be3d5d9 100644 --- a/doc.go +++ b/doc.go @@ -19,7 +19,7 @@ Installation xgbutil is go-gettable: - go get github.com/BurntSushi/xgbutil + go get github.com/robotn/xgbutil Dependencies @@ -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 diff --git a/ewmh/ewmh.go b/ewmh/ewmh.go index eecbe82..e04e4ea 100644 --- a/ewmh/ewmh.go +++ b/ewmh/ewmh.go @@ -1,11 +1,11 @@ package ewmh import ( - "github.com/BurntSushi/xgb/xproto" + "github.com/robotn/xgb/xproto" - "github.com/BurntSushi/xgbutil" - "github.com/BurntSushi/xgbutil/xevent" - "github.com/BurntSushi/xgbutil/xprop" + "github.com/robotn/xgbutil" + "github.com/robotn/xgbutil/xevent" + "github.com/robotn/xgbutil/xprop" ) // ClientEvent is a convenience function that sends ClientMessage events diff --git a/ewmh/winman.go b/ewmh/winman.go index b5ec80e..4b8c13b 100644 --- a/ewmh/winman.go +++ b/ewmh/winman.go @@ -3,7 +3,7 @@ package ewmh import ( "fmt" - "github.com/BurntSushi/xgbutil" + "github.com/robotn/xgbutil" ) // GetEwmhWM uses the EWMH spec to find if a conforming window manager diff --git a/go.mod b/go.mod index fee1422..51635e0 100644 --- a/go.mod +++ b/go.mod @@ -5,11 +5,5 @@ go 1.13 require ( github.com/BurntSushi/freetype-go v0.0.0-20160129220410-b763ddbfe298 github.com/BurntSushi/graphics-go v0.0.0-20160129215708-b43f31a4a966 - github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802 - github.com/BurntSushi/xgbutil v0.0.0-20190907113008-ad855c713046 -) - -replace ( - github.com/BurntSushi/xgb => github.com/robotn/xgb v0.0.0-20190910151114-b250faa511c2 - github.com/BurntSushi/xgbutil => github.com/robotn/xgbutil v0.0.0-20190910152759-31a4be58354a + github.com/robotn/xgb v0.0.0-20190912153532-2cb92d044934 ) diff --git a/go.sum b/go.sum index 5d497f8..0c5662b 100644 --- a/go.sum +++ b/go.sum @@ -2,7 +2,5 @@ github.com/BurntSushi/freetype-go v0.0.0-20160129220410-b763ddbfe298 h1:1qlsVAQJ github.com/BurntSushi/freetype-go v0.0.0-20160129220410-b763ddbfe298/go.mod h1:D+QujdIlUNfa0igpNMk6UIvlb6C252URs4yupRUV4lQ= github.com/BurntSushi/graphics-go v0.0.0-20160129215708-b43f31a4a966 h1:lTG4HQym5oPKjL7nGs+csTgiDna685ZXjxijkne828g= github.com/BurntSushi/graphics-go v0.0.0-20160129215708-b43f31a4a966/go.mod h1:Mid70uvE93zn9wgF92A/r5ixgnvX8Lh68fxp9KQBaI0= -github.com/robotn/xgb v0.0.0-20190910151114-b250faa511c2 h1:xqEFcO1uUaZ/keHtQkz9gVMWeDxs+zkzLNroyj9sjEI= -github.com/robotn/xgb v0.0.0-20190910151114-b250faa511c2/go.mod h1:SxQhJskUJ4rleVU44YvnrdvxQr0tKy5SRSigBrCgyyQ= -github.com/robotn/xgbutil v0.0.0-20190910152759-31a4be58354a h1:3Y7tV4pC5n5VC6qCqAYwmEt/li32Y3P94c0iAifFZt4= -github.com/robotn/xgbutil v0.0.0-20190910152759-31a4be58354a/go.mod h1:8j8AYKlAY/ezh3xN7eoneXxgufp1x/nj8tRh0vs79HM= +github.com/robotn/xgb v0.0.0-20190912153532-2cb92d044934 h1:2lhSR8N3T6I30q096DT7/5AKEIcf1vvnnWAmS0wfnNY= +github.com/robotn/xgb v0.0.0-20190912153532-2cb92d044934/go.mod h1:SxQhJskUJ4rleVU44YvnrdvxQr0tKy5SRSigBrCgyyQ= diff --git a/icccm/icccm.go b/icccm/icccm.go index 95db745..f8f28d5 100644 --- a/icccm/icccm.go +++ b/icccm/icccm.go @@ -3,10 +3,10 @@ package icccm import ( "fmt" - "github.com/BurntSushi/xgb/xproto" + "github.com/robotn/xgb/xproto" - "github.com/BurntSushi/xgbutil" - "github.com/BurntSushi/xgbutil/xprop" + "github.com/robotn/xgbutil" + "github.com/robotn/xgbutil/xprop" ) const ( diff --git a/icccm/protocols.go b/icccm/protocols.go index acc8620..f0597ab 100644 --- a/icccm/protocols.go +++ b/icccm/protocols.go @@ -1,11 +1,11 @@ package icccm import ( - "github.com/BurntSushi/xgb/xproto" + "github.com/robotn/xgb/xproto" - "github.com/BurntSushi/xgbutil" - "github.com/BurntSushi/xgbutil/xevent" - "github.com/BurntSushi/xgbutil/xprop" + "github.com/robotn/xgbutil" + "github.com/robotn/xgbutil/xevent" + "github.com/robotn/xgbutil/xprop" ) // IsDeleteProtocol checks whether a ClientMessage event satisfies the diff --git a/keybind/callback.go b/keybind/callback.go index a489a89..d44d85f 100644 --- a/keybind/callback.go +++ b/keybind/callback.go @@ -3,10 +3,10 @@ package keybind import ( "fmt" - "github.com/BurntSushi/xgb/xproto" + "github.com/robotn/xgb/xproto" - "github.com/BurntSushi/xgbutil" - "github.com/BurntSushi/xgbutil/xevent" + "github.com/robotn/xgbutil" + "github.com/robotn/xgbutil/xevent" ) // connect is essentially 'Connect' for either KeyPress or KeyRelease events. diff --git a/keybind/encoding.go b/keybind/encoding.go index 2f63b3c..754589b 100644 --- a/keybind/encoding.go +++ b/keybind/encoding.go @@ -14,9 +14,9 @@ import ( "strings" "unicode" - "github.com/BurntSushi/xgb/xproto" + "github.com/robotn/xgb/xproto" - "github.com/BurntSushi/xgbutil" + "github.com/robotn/xgbutil" ) // LookupString attempts to convert a (modifiers, keycode) to an english string. diff --git a/keybind/keybind.go b/keybind/keybind.go index 3833d3f..661e6ec 100644 --- a/keybind/keybind.go +++ b/keybind/keybind.go @@ -4,10 +4,10 @@ import ( "fmt" "strings" - "github.com/BurntSushi/xgb/xproto" + "github.com/robotn/xgb/xproto" - "github.com/BurntSushi/xgbutil" - "github.com/BurntSushi/xgbutil/xevent" + "github.com/robotn/xgbutil" + "github.com/robotn/xgbutil/xevent" ) var ( diff --git a/keybind/keysymdef.go b/keybind/keysymdef.go index ad8ec4e..c407aec 100644 --- a/keybind/keysymdef.go +++ b/keybind/keysymdef.go @@ -13,7 +13,7 @@ keysyms is a mapping from english strings to key symbols. strKeysyms is a mapping from key symbols to english strings. */ -import "github.com/BurntSushi/xgb/xproto" +import "github.com/robotn/xgb/xproto" func init() { strKeysyms = make(map[xproto.Keysym]string, len(keysyms)) diff --git a/keybind/xutil.go b/keybind/xutil.go index 30b8f3f..6553033 100644 --- a/keybind/xutil.go +++ b/keybind/xutil.go @@ -10,9 +10,9 @@ would become cluttered with functions that should not be used. */ import ( - "github.com/BurntSushi/xgb/xproto" + "github.com/robotn/xgb/xproto" - "github.com/BurntSushi/xgbutil" + "github.com/robotn/xgbutil" ) // attachKeyBindCallback associates an (event, window, mods, keycode) diff --git a/motif/motif.go b/motif/motif.go index 24f8999..567f415 100644 --- a/motif/motif.go +++ b/motif/motif.go @@ -30,10 +30,10 @@ package motif import ( "fmt" - "github.com/BurntSushi/xgb/xproto" + "github.com/robotn/xgb/xproto" - "github.com/BurntSushi/xgbutil" - "github.com/BurntSushi/xgbutil/xprop" + "github.com/robotn/xgbutil" + "github.com/robotn/xgbutil/xprop" ) const ( diff --git a/mousebind/callback.go b/mousebind/callback.go index 792fc4c..dfdd5f0 100644 --- a/mousebind/callback.go +++ b/mousebind/callback.go @@ -3,10 +3,10 @@ package mousebind import ( "fmt" - "github.com/BurntSushi/xgb/xproto" + "github.com/robotn/xgb/xproto" - "github.com/BurntSushi/xgbutil" - "github.com/BurntSushi/xgbutil/xevent" + "github.com/robotn/xgbutil" + "github.com/robotn/xgbutil/xevent" ) // connect is essentially 'Connect' for either ButtonPress or diff --git a/mousebind/drag.go b/mousebind/drag.go index d9578a5..4eca5f3 100644 --- a/mousebind/drag.go +++ b/mousebind/drag.go @@ -1,10 +1,10 @@ package mousebind import ( - "github.com/BurntSushi/xgb/xproto" + "github.com/robotn/xgb/xproto" - "github.com/BurntSushi/xgbutil" - "github.com/BurntSushi/xgbutil/xevent" + "github.com/robotn/xgbutil" + "github.com/robotn/xgbutil/xevent" ) // Drag is the public interface that will make the appropriate connections diff --git a/mousebind/mousebind.go b/mousebind/mousebind.go index 68728c0..bd79f95 100644 --- a/mousebind/mousebind.go +++ b/mousebind/mousebind.go @@ -5,10 +5,10 @@ import ( "strconv" "strings" - "github.com/BurntSushi/xgb/xproto" + "github.com/robotn/xgb/xproto" - "github.com/BurntSushi/xgbutil" - "github.com/BurntSushi/xgbutil/xevent" + "github.com/robotn/xgbutil" + "github.com/robotn/xgbutil/xevent" ) var modifiers []uint16 = []uint16{ // order matters! diff --git a/mousebind/xutil.go b/mousebind/xutil.go index 7923ff6..b7d336e 100644 --- a/mousebind/xutil.go +++ b/mousebind/xutil.go @@ -10,9 +10,9 @@ would become cluttered with functions that should not be used. */ import ( - "github.com/BurntSushi/xgb/xproto" + "github.com/robotn/xgb/xproto" - "github.com/BurntSushi/xgbutil" + "github.com/robotn/xgbutil" ) // attachMouseBindCallback associates an (event, window, mods, button) diff --git a/scripts/write-events b/scripts/write-events index ce23987..dad2cf1 100755 --- a/scripts/write-events +++ b/scripts/write-events @@ -56,8 +56,8 @@ if sys.argv[1] == 'evtypes': print 'import (' print '\t"fmt"' print - print '\t"github.com/BurntSushi/xgb/shape"' - print '\t"github.com/BurntSushi/xgb/xproto"' + print '\t"github.com/robotn/xgb/shape"' + print '\t"github.com/robotn/xgb/xproto"' print ')' print @@ -100,9 +100,9 @@ elif sys.argv[1] == 'callbacks': */''' print print 'import (' - print '\t"github.com/BurntSushi/xgb/xproto"' + print '\t"github.com/robotn/xgb/xproto"' print - print '\t"github.com/BurntSushi/xgbutil"' + print '\t"github.com/robotn/xgbutil"' print ')' print diff --git a/types.go b/types.go index 6ea44d8..9560610 100644 --- a/types.go +++ b/types.go @@ -8,8 +8,8 @@ mousebind.) */ import ( - "github.com/BurntSushi/xgb" - "github.com/BurntSushi/xgb/xproto" + "github.com/robotn/xgb" + "github.com/robotn/xgb/xproto" ) // Callback is an interface that should be implemented by event callback diff --git a/xcursor/xcursor.go b/xcursor/xcursor.go index bc90449..fdd79a6 100644 --- a/xcursor/xcursor.go +++ b/xcursor/xcursor.go @@ -1,9 +1,9 @@ package xcursor import ( - "github.com/BurntSushi/xgb/xproto" + "github.com/robotn/xgb/xproto" - "github.com/BurntSushi/xgbutil" + "github.com/robotn/xgbutil" ) // CreateCursor sets some default colors for nice and easy cursor creation. diff --git a/xevent/callback.go b/xevent/callback.go index 1aee451..0248823 100644 --- a/xevent/callback.go +++ b/xevent/callback.go @@ -9,9 +9,9 @@ package xevent */ import ( - "github.com/BurntSushi/xgb/xproto" + "github.com/robotn/xgb/xproto" - "github.com/BurntSushi/xgbutil" + "github.com/robotn/xgbutil" ) type KeyPressFun func(xu *xgbutil.XUtil, event KeyPressEvent) diff --git a/xevent/eventloop.go b/xevent/eventloop.go index 458f391..ca5ca5d 100644 --- a/xevent/eventloop.go +++ b/xevent/eventloop.go @@ -11,10 +11,10 @@ loop. */ import ( - "github.com/BurntSushi/xgb/shape" - "github.com/BurntSushi/xgb/xproto" + "github.com/robotn/xgb/shape" + "github.com/robotn/xgb/xproto" - "github.com/BurntSushi/xgbutil" + "github.com/robotn/xgbutil" ) // Read reads one or more events and queues them in XUtil. diff --git a/xevent/types_auto.go b/xevent/types_auto.go index 9bdb702..ec8ff22 100644 --- a/xevent/types_auto.go +++ b/xevent/types_auto.go @@ -11,8 +11,8 @@ package xevent import ( "fmt" - "github.com/BurntSushi/xgb/shape" - "github.com/BurntSushi/xgb/xproto" + "github.com/robotn/xgb/shape" + "github.com/robotn/xgb/xproto" ) type KeyPressEvent struct { diff --git a/xevent/types_manual.go b/xevent/types_manual.go index b32c59a..5765f83 100644 --- a/xevent/types_manual.go +++ b/xevent/types_manual.go @@ -3,7 +3,7 @@ package xevent import ( "fmt" - "github.com/BurntSushi/xgb/xproto" + "github.com/robotn/xgb/xproto" ) // ClientMessageEvent embeds the struct by the same name from the xgb library. diff --git a/xevent/xevent.go b/xevent/xevent.go index c5c2fe5..31c1ad7 100644 --- a/xevent/xevent.go +++ b/xevent/xevent.go @@ -1,10 +1,10 @@ package xevent import ( - "github.com/BurntSushi/xgb" - "github.com/BurntSushi/xgb/xproto" + "github.com/robotn/xgb" + "github.com/robotn/xgb/xproto" - "github.com/BurntSushi/xgbutil" + "github.com/robotn/xgbutil" ) // Sometimes we need to specify NO WINDOW when a window is typically diff --git a/xgbutil.go b/xgbutil.go index 1539ad3..92770e2 100644 --- a/xgbutil.go +++ b/xgbutil.go @@ -5,9 +5,9 @@ import ( "os" "sync" - "github.com/BurntSushi/xgb" - "github.com/BurntSushi/xgb/xinerama" - "github.com/BurntSushi/xgb/xproto" + "github.com/robotn/xgb" + "github.com/robotn/xgb/xinerama" + "github.com/robotn/xgb/xproto" ) // Logger is used through xgbutil when messages need to be emitted to stderr. diff --git a/xgraphics/doc.go b/xgraphics/doc.go index 5252a78..ddaea1b 100644 --- a/xgraphics/doc.go +++ b/xgraphics/doc.go @@ -85,6 +85,6 @@ routines. (Unfortunately, both things need to be fast.) If your X server is not configured to what the xgraphics package expects, messages will be emitted to stderr when a new xgraphics.Image value is created. If you see any of these messages, please report them to xgbutil's project page: -https://github.com/BurntSushi/xgbutil. +https://github.com/robotn/xgbutil. */ package xgraphics diff --git a/xgraphics/image.go b/xgraphics/image.go index 64593f4..123e7df 100644 --- a/xgraphics/image.go +++ b/xgraphics/image.go @@ -30,10 +30,10 @@ import ( "os" "github.com/BurntSushi/graphics-go/graphics" - "github.com/BurntSushi/xgb/xproto" + "github.com/robotn/xgb/xproto" - "github.com/BurntSushi/xgbutil" - "github.com/BurntSushi/xgbutil/xwindow" + "github.com/robotn/xgbutil" + "github.com/robotn/xgbutil/xwindow" ) // Model for the BGRA color type. diff --git a/xgraphics/new.go b/xgraphics/new.go index a46aa11..d3f4004 100644 --- a/xgraphics/new.go +++ b/xgraphics/new.go @@ -14,11 +14,11 @@ import ( _ "image/png" "os" - "github.com/BurntSushi/xgb/xproto" + "github.com/robotn/xgb/xproto" - "github.com/BurntSushi/xgbutil" - "github.com/BurntSushi/xgbutil/ewmh" - "github.com/BurntSushi/xgbutil/xwindow" + "github.com/robotn/xgbutil" + "github.com/robotn/xgbutil/ewmh" + "github.com/robotn/xgbutil/xwindow" ) // NewConvert converts any image satisfying the image.Image interface to an diff --git a/xgraphics/util.go b/xgraphics/util.go index 8e1f968..3332b0d 100644 --- a/xgraphics/util.go +++ b/xgraphics/util.go @@ -8,11 +8,11 @@ import ( "math" "github.com/BurntSushi/graphics-go/graphics" - "github.com/BurntSushi/xgb/xproto" + "github.com/robotn/xgb/xproto" - "github.com/BurntSushi/xgbutil" - "github.com/BurntSushi/xgbutil/ewmh" - "github.com/BurntSushi/xgbutil/icccm" + "github.com/robotn/xgbutil" + "github.com/robotn/xgbutil/ewmh" + "github.com/robotn/xgbutil/icccm" ) /* diff --git a/xgraphics/xsurface.go b/xgraphics/xsurface.go index a9cd485..ed03039 100644 --- a/xgraphics/xsurface.go +++ b/xgraphics/xsurface.go @@ -4,15 +4,15 @@ import ( "fmt" "image" - "github.com/BurntSushi/xgb/xproto" - - "github.com/BurntSushi/xgbutil" - "github.com/BurntSushi/xgbutil/ewmh" - "github.com/BurntSushi/xgbutil/icccm" - "github.com/BurntSushi/xgbutil/keybind" - "github.com/BurntSushi/xgbutil/mousebind" - "github.com/BurntSushi/xgbutil/xevent" - "github.com/BurntSushi/xgbutil/xwindow" + "github.com/robotn/xgb/xproto" + + "github.com/robotn/xgbutil" + "github.com/robotn/xgbutil/ewmh" + "github.com/robotn/xgbutil/icccm" + "github.com/robotn/xgbutil/keybind" + "github.com/robotn/xgbutil/mousebind" + "github.com/robotn/xgbutil/xevent" + "github.com/robotn/xgbutil/xwindow" ) /* diff --git a/xinerama/xinerama.go b/xinerama/xinerama.go index b07f436..9f522a1 100644 --- a/xinerama/xinerama.go +++ b/xinerama/xinerama.go @@ -3,10 +3,10 @@ package xinerama import "sort" import ( - "github.com/BurntSushi/xgb/xinerama" + "github.com/robotn/xgb/xinerama" - "github.com/BurntSushi/xgbutil" - "github.com/BurntSushi/xgbutil/xrect" + "github.com/robotn/xgbutil" + "github.com/robotn/xgbutil/xrect" ) // Alias so we use it as a receiver to satisfy sort.Interface diff --git a/xprop/atom.go b/xprop/atom.go index e2e0f20..f9cacae 100644 --- a/xprop/atom.go +++ b/xprop/atom.go @@ -12,9 +12,9 @@ request is sent for interning each atom.) import ( "fmt" - "github.com/BurntSushi/xgb/xproto" + "github.com/robotn/xgb/xproto" - "github.com/BurntSushi/xgbutil" + "github.com/robotn/xgbutil" ) // Atm is a short alias for Atom in the common case of interning an atom. diff --git a/xprop/xprop.go b/xprop/xprop.go index 950013b..c610e9a 100644 --- a/xprop/xprop.go +++ b/xprop/xprop.go @@ -3,10 +3,10 @@ package xprop import ( "fmt" - "github.com/BurntSushi/xgb" - "github.com/BurntSushi/xgb/xproto" + "github.com/robotn/xgb" + "github.com/robotn/xgb/xproto" - "github.com/BurntSushi/xgbutil" + "github.com/robotn/xgbutil" ) // GetProperty abstracts the messiness of calling xgb.GetProperty. diff --git a/xwindow/ewmh.go b/xwindow/ewmh.go index deba236..35f6c96 100644 --- a/xwindow/ewmh.go +++ b/xwindow/ewmh.go @@ -6,11 +6,11 @@ the currently running window manager. */ import ( - "github.com/BurntSushi/xgb/xproto" + "github.com/robotn/xgb/xproto" - "github.com/BurntSushi/xgbutil" - "github.com/BurntSushi/xgbutil/ewmh" - "github.com/BurntSushi/xgbutil/xrect" + "github.com/robotn/xgbutil" + "github.com/robotn/xgbutil/ewmh" + "github.com/robotn/xgbutil/xrect" ) // DecorGeometry retrieves the client's width and height including decorations. diff --git a/xwindow/icccm.go b/xwindow/icccm.go index 21c6b78..1940dff 100644 --- a/xwindow/icccm.go +++ b/xwindow/icccm.go @@ -1,11 +1,11 @@ package xwindow import ( - "github.com/BurntSushi/xgb/xproto" + "github.com/robotn/xgb/xproto" - "github.com/BurntSushi/xgbutil" - "github.com/BurntSushi/xgbutil/icccm" - "github.com/BurntSushi/xgbutil/xevent" + "github.com/robotn/xgbutil" + "github.com/robotn/xgbutil/icccm" + "github.com/robotn/xgbutil/xevent" ) // WMGracefulClose will do all the necessary setup to implement the diff --git a/xwindow/xwindow.go b/xwindow/xwindow.go index ab04c92..ca9161b 100644 --- a/xwindow/xwindow.go +++ b/xwindow/xwindow.go @@ -3,13 +3,13 @@ package xwindow import ( "fmt" - "github.com/BurntSushi/xgb/xproto" + "github.com/robotn/xgb/xproto" - "github.com/BurntSushi/xgbutil" - "github.com/BurntSushi/xgbutil/keybind" - "github.com/BurntSushi/xgbutil/mousebind" - "github.com/BurntSushi/xgbutil/xevent" - "github.com/BurntSushi/xgbutil/xrect" + "github.com/robotn/xgbutil" + "github.com/robotn/xgbutil/keybind" + "github.com/robotn/xgbutil/mousebind" + "github.com/robotn/xgbutil/xevent" + "github.com/robotn/xgbutil/xrect" ) // Window represents an X window. It contains an XUtilValue to simplfy the