input

package
v2.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2024 License: MIT Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BindDbus added in v2.5.0

func BindDbus(tr *desktop.Tracker)

func BindKeys

func BindKeys(tr *desktop.Tracker)

func BindMouse

func BindMouse(tr *desktop.Tracker)

func BindSignal

func BindSignal(tr *desktop.Tracker)

func BindSocket

func BindSocket(tr *desktop.Tracker)

func BindTray

func BindTray(tr *desktop.Tracker)

func CycleNext

func CycleNext(tr *desktop.Tracker, ws *desktop.Workspace) bool

func CyclePrevious

func CyclePrevious(tr *desktop.Tracker, ws *desktop.Workspace) bool

func DecreaseMaster

func DecreaseMaster(tr *desktop.Tracker, ws *desktop.Workspace) bool

func DecreaseProportion

func DecreaseProportion(tr *desktop.Tracker, ws *desktop.Workspace) bool

func DecreaseSlave

func DecreaseSlave(tr *desktop.Tracker, ws *desktop.Workspace) bool

func Disable

func Disable(tr *desktop.Tracker, ws *desktop.Workspace) bool

func Enable

func Enable(tr *desktop.Tracker, ws *desktop.Workspace) bool

func ExecuteAction added in v2.5.0

func ExecuteAction(action string, tr *desktop.Tracker, ws *desktop.Workspace) bool

func ExecuteActions added in v2.5.0

func ExecuteActions(action string, tr *desktop.Tracker, mod string) bool

func Exit

func Exit(tr *desktop.Tracker) bool

func External

func External(command string) bool

func FullscreenLayout

func FullscreenLayout(tr *desktop.Tracker, ws *desktop.Workspace) bool

func GetProperty added in v2.5.0

func GetProperty(name string) common.Map

func HorizontalBottomLayout

func HorizontalBottomLayout(tr *desktop.Tracker, ws *desktop.Workspace) bool

func HorizontalTopLayout

func HorizontalTopLayout(tr *desktop.Tracker, ws *desktop.Workspace) bool

func IncreaseMaster

func IncreaseMaster(tr *desktop.Tracker, ws *desktop.Workspace) bool

func IncreaseProportion

func IncreaseProportion(tr *desktop.Tracker, ws *desktop.Workspace) bool

func IncreaseSlave

func IncreaseSlave(tr *desktop.Tracker, ws *desktop.Workspace) bool

func Introspect added in v2.5.0

func Introspect() map[string][]string

func Listen added in v2.5.0

func Listen(args []string)

func MakeMaster

func MakeMaster(tr *desktop.Tracker, ws *desktop.Workspace) bool

func MakeMasterNext

func MakeMasterNext(tr *desktop.Tracker, ws *desktop.Workspace) bool

func MakeMasterPrevious

func MakeMasterPrevious(tr *desktop.Tracker, ws *desktop.Workspace) bool

func MaximizedLayout added in v2.5.0

func MaximizedLayout(tr *desktop.Tracker, ws *desktop.Workspace) bool

func Method added in v2.5.0

func Method(name string, args []string)

func NextWindow

func NextWindow(tr *desktop.Tracker, ws *desktop.Workspace) bool

func NotifySocket

func NotifySocket[T any](m Message[T])

func OnExecute

func OnExecute(fun func(string, uint, uint))

func PreviousWindow

func PreviousWindow(tr *desktop.Tracker, ws *desktop.Workspace) bool

func Property added in v2.5.0

func Property(name string)

func Query

func Query(state string, tr *desktop.Tracker) bool

func Reset added in v2.4.0

func Reset(tr *desktop.Tracker, ws *desktop.Workspace) bool

func Restore

func Restore(tr *desktop.Tracker, ws *desktop.Workspace) bool

func SetProperty added in v2.5.0

func SetProperty(name string, obj interface{})

func Toggle

func Toggle(tr *desktop.Tracker, ws *desktop.Workspace) bool

func VerticalLeftLayout

func VerticalLeftLayout(tr *desktop.Tracker, ws *desktop.Workspace) bool

func VerticalRightLayout

func VerticalRightLayout(tr *desktop.Tracker, ws *desktop.Workspace) bool

Types

type Menu struct {
	Toggle *systray.MenuItem   // Toggle checkbox item
	Items  []*systray.MenuItem // Menu items for actions
}

type Message

type Message[T any] struct {
	Type string // Socket message type
	Name string // Socket message name
	Data T      // Socket message data
}

type Methods added in v2.5.0

type Methods struct {
	Naming  map[string][]string // Method and arguments names
	Tracker *desktop.Tracker    // Workspace tracker instance
}

func (Methods) ActionExecute added in v2.5.0

func (m Methods) ActionExecute(name string, desk int32, screen int32) (string, *dbus.Error)

func (Methods) DesktopSwitch added in v2.5.0

func (m Methods) DesktopSwitch(desk int32) (string, *dbus.Error)

func (Methods) Introspection added in v2.5.0

func (m Methods) Introspection() []introspect.Method

func (Methods) WindowActivate added in v2.5.0

func (m Methods) WindowActivate(id int32) (string, *dbus.Error)

func (Methods) WindowToDesktop added in v2.5.0

func (m Methods) WindowToDesktop(id int32, desk int32) (string, *dbus.Error)

func (Methods) WindowToPosition added in v2.5.0

func (m Methods) WindowToPosition(id int32, x int32, y int32) (string, *dbus.Error)

func (Methods) WindowToScreen added in v2.5.0

func (m Methods) WindowToScreen(id int32, screen int32) (string, *dbus.Error)

Jump to

Keyboard shortcuts

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