2021-11-02 23:44:28 -05:00
|
|
|
package main
|
|
|
|
import ( "log"
|
|
|
|
|
|
|
|
"git.wit.org/wit/gui"
|
|
|
|
)
|
|
|
|
|
|
|
|
func tabResets(w *gui.Node) *gui.Node {
|
|
|
|
if (w == nil) {
|
|
|
|
gui.Config.Title = "resets window"
|
|
|
|
gui.Config.Width = 240
|
|
|
|
gui.Config.Height = 280
|
|
|
|
gui.Config.Exit = customExit
|
|
|
|
w = gui.NewWindow()
|
|
|
|
}
|
|
|
|
|
|
|
|
newTab := w.AddTab("tabResets()", nil)
|
|
|
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
2021-11-03 01:45:08 -05:00
|
|
|
g1 := newTab.AddGroup("reset windows")
|
2021-11-02 23:44:28 -05:00
|
|
|
|
2021-11-03 01:45:08 -05:00
|
|
|
g1.NewLabel("Working Stuff")
|
2021-11-02 23:44:28 -05:00
|
|
|
|
2021-11-03 01:45:08 -05:00
|
|
|
g1.AddButton("Generic SSH Window", func (*gui.Node) {
|
|
|
|
sshGenericWindow(nil)
|
|
|
|
})
|
|
|
|
|
|
|
|
g1.AddButton("Configure xterm", func (*gui.Node) {
|
|
|
|
xtermSettings(nil)
|
|
|
|
})
|
|
|
|
|
|
|
|
g1.AddButton("Configure resolv.conf", func (*gui.Node) {
|
2021-11-02 23:44:28 -05:00
|
|
|
log.Println("supposed to make the resolv.conf window")
|
|
|
|
resolvWindow(nil)
|
|
|
|
})
|
|
|
|
|
2021-11-03 01:45:08 -05:00
|
|
|
g1.AddButton("update DNS (IPv6)", func (*gui.Node) {
|
|
|
|
updateDNS(nil)
|
|
|
|
})
|
|
|
|
|
2021-11-03 17:12:13 -05:00
|
|
|
aptGroup(newTab)
|
2021-11-03 23:29:39 -05:00
|
|
|
newTab.MakeBasicControlsPage("testing stuff")
|
2021-11-02 23:44:28 -05:00
|
|
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
gn := newTab.AddGroup("GO")
|
|
|
|
gn.AddButton("go install golang.org/x/tools/gopls@latest", func (*gui.Node) {
|
|
|
|
xterm("go install golang.org/x/tools/gopls@latest")
|
|
|
|
})
|
|
|
|
gn.AddButton("vim-go clone", func (*gui.Node) {
|
|
|
|
xterm("git clone https://github.com/fatih/vim-go.git ~/.vim/pack/plugins/start/vim-go")
|
|
|
|
})
|
|
|
|
gn.AddButton("vim-go vimrc settings", func (*gui.Node) {
|
|
|
|
log.Println("echo", "let g:go_def_mode='gopls'\nlet g:go_info_mode='gopls'")
|
|
|
|
// xterm("echo", "let g:go_def_mode='gopls'\nlet g:go_info_mode='gopls'")
|
|
|
|
})
|
|
|
|
|
|
|
|
return newTab
|
|
|
|
}
|