Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type List ¶
type List struct { Prompt string CursorPos int NameToggled bool SourceFiles []*SourceFile }
func (*List) AddSourceToList ¶
func (l *List) AddSourceToList(sourceFile SourceFile) *List
func (*List) Display ¶
func (l *List) Display() (SourceFilePointerArray, bool)
func (*List) SetSources ¶
func (l *List) SetSources(sfs []*SourceFile) *List
type SourceFile ¶
type SourceFile struct { Name string `json:"name"` Path string `json:"path"` Selected bool `json:"selected"` Priority string `json:"priority"` }
func GetJsonSources ¶
func GetJsonSources() []SourceFile
type SourceFilePointerArray ¶
type SourceFilePointerArray []*SourceFile
func MatchSources ¶
func MatchSources(jsonSources []SourceFile, hyprSources []string) SourceFilePointerArray
func (*SourceFilePointerArray) SaveToHyprland ¶
func (s *SourceFilePointerArray) SaveToHyprland()
func (*SourceFilePointerArray) SaveToJson ¶
func (s *SourceFilePointerArray) SaveToJson()
Click to show internal directories.
Click to hide internal directories.