diff --git a/Makefile b/Makefile index 4844b42..cbd271d 100644 --- a/Makefile +++ b/Makefile @@ -23,7 +23,7 @@ custom: GO111MODULE=off go build -v -work -buildmode=blah clean: - rm -f gocui gocui.so go.* + rm -f gocui *.so go.* rm -f *.pb.go *.patch go-mod-clean --purge diff --git a/init.go b/init.go index 4546b72..5fcf589 100644 --- a/init.go +++ b/init.go @@ -56,6 +56,8 @@ func initPlugin() { //time.Sleep(200 * time.Millisecond) log.CaptureMode(me.stdout) + // initial app window settings + // initial stdout window settings me.stdout.w = 180 me.stdout.h = 40 @@ -289,7 +291,7 @@ func newWindowTrigger() { time.Sleep(200 * time.Millisecond) waitOK() time.Sleep(200 * time.Millisecond) - redoWindows(3, 3) + redoWindows(me.FirstWindowW, me.FirstWindowH) me.firstWindowOk = true if !me.stdout.init { me.stdout.init = true diff --git a/structs.go b/structs.go index 53449b9..a9702a4 100644 --- a/structs.go +++ b/structs.go @@ -44,6 +44,8 @@ type config struct { ctrlDown *tree.Node // shown if you click the mouse when the ctrl key is pressed helpLabel *gocui.View // ? showHelp bool // toggle boolean for the help menu (deprecate?) + FirstWindowW int `default:"2"` // how far over to start window #1 + FirstWindowH int `default:"0"` // how far down to start window #1 FramePadW int `default:"1" dense:"0"` // When the widget has a frame, like a button, it adds 2 lines runes on each side FramePadH int `default:"1" dense:"0"` // When the widget has a frame, like a button, it adds 2 lines runes on each side PadW int `default:"1" dense:"0"` // pad spacing @@ -129,6 +131,12 @@ type dropdown struct { wId int `default:"-78"` // the widget id to use } +// the desktop libnotify menu +type libnotify struct { + clock *guiWidget // where to show the clock + menu *guiWidget // where to show the clock +} + // this is the gocui way // corner starts at in the upper left corner type rectType struct {