diff options
| -rw-r--r-- | Makefile | 2 | ||||
| -rw-r--r-- | init.go | 4 | ||||
| -rw-r--r-- | structs.go | 8 |
3 files changed, 12 insertions, 2 deletions
@@ -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 @@ -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 @@ -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 { |
