align 1st window. start libnotify
This commit is contained in:
parent
a000c06987
commit
f24c509859
2
Makefile
2
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
|
||||
|
||||
|
|
4
init.go
4
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
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue