Rules-based browser launcher for TUI + GNOME. switchyard.aly.codes
tui gome bowser go
0

Configure Feed

Select the types of activity you want to include in your feed.

add docs link to menu

Aly Raffauf (Jun 23, 2026, 3:45 PM EDT) e28ae4cc f8aa5de3

+10
+1
src/app.go
··· 20 20 DonateURL = "https://ko-fi.com/alyraffauf" 21 21 ChromeExtensionURL = "https://chromewebstore.google.com/detail/switchyard/ncehhpikkabfdcceimdhjjjodogflokc" 22 22 FirefoxExtensionURL = "https://addons.mozilla.org/firefox/addon/switchyard/" 23 + DocsURL = "https://switchyard.aly.codes/docs" 23 24 ) 24 25 25 26 type Contributor struct {
+9
src/window_settings.go
··· 60 60 }) 61 61 app.AddAction(donateAction) 62 62 63 + helpAction := gio.NewSimpleAction("help", nil) 64 + helpAction.ConnectActivate(func(p *glib.Variant) { 65 + launcher := gtk.NewURILauncher(DocsURL) 66 + launcher.Launch(context.Background(), &win.Window, nil) 67 + }) 68 + app.AddAction(helpAction) 69 + 63 70 quitAction := gio.NewSimpleAction("quit", nil) 64 71 quitAction.ConnectActivate(func(p *glib.Variant) { 65 72 win.Close() ··· 67 74 app.AddAction(quitAction) 68 75 69 76 app.SetAccelsForAction("app.quit", []string{"<Ctrl>q"}) 77 + app.SetAccelsForAction("app.help", []string{"F1"}) 70 78 } 71 79 72 80 func createSidebar(win *adw.Window, cfg *Config, browsers []*Browser, splitView *adw.NavigationSplitView) gtk.Widgetter { ··· 85 93 menuBtn.SetTooltipText("Main Menu") 86 94 87 95 menu := gio.NewMenu() 96 + menu.Append("Documentation", "app.help") 88 97 menu.Append("Donate ❤️", "app.donate") 89 98 menu.Append("About", "app.about") 90 99