desktop

package
v0.2.30 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Available

func Available() bool

Available reports whether virtual desktop switching is supported. Always returns false on non-Windows platforms.

func Count

func Count() (int, error)

Count returns the number of virtual desktops. Not supported on non-Windows platforms.

func Current

func Current() (int, error)

Current returns the current virtual desktop number (1-indexed). Not supported on non-Windows platforms.

func HideConsole

func HideConsole()

HideConsole is a no-op on non-Windows platforms.

func IsProtocolRegistered

func IsProtocolRegistered() bool

IsProtocolRegistered checks whether the notify:// protocol handler is registered. Always returns false on non-Windows platforms.

func RegisterProtocol

func RegisterProtocol(exePath string) error

RegisterProtocol registers the notify:// URI protocol handler. Not supported on non-Windows platforms.

func SwitchTo

func SwitchTo(n int) error

SwitchTo switches to the given virtual desktop (1-indexed). Not supported on non-Windows platforms.

func UnregisterProtocol

func UnregisterProtocol() error

UnregisterProtocol removes the notify:// URI protocol handler. Not supported on non-Windows platforms.

Types

This section is empty.

Jump to

Keyboard shortcuts

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