session

package
v1.0.260758 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 30, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clear

func Clear() error

Clear removes the saved session (optional).

func Path

func Path() string

Path returns ~/.config/ttypedesk/session.json

func Save

func Save(st State) error

Types

type Entry

type Entry struct {
	Action      string `json:"action"` // terminal | notes | prog:id | pty:cmd | …
	Title       string `json:"title,omitempty"`
	X           int    `json:"x"`
	Y           int    `json:"y"`
	W           int    `json:"w"`
	H           int    `json:"h"`
	Maximized   bool   `json:"maximized,omitempty"`
	Minimized   bool   `json:"minimized,omitempty"`
	TitlePinned bool   `json:"title_pinned,omitempty"`
	Focused     bool   `json:"focused,omitempty"`
}

Entry is one window to restore on next launch.

type State

type State struct {
	Windows []Entry `json:"windows"`
}

State is the last desktop session.

func Load

func Load() (State, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL