actions

package
v0.0.0-...-c33b1db Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2023 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Calculate

func Calculate(i map[string]any) map[string]any

Get current user and host name Arguments: - expression: string Returns: - result: string

func CliboardCopy

func CliboardCopy(i map[string]any) map[string]any

Copy text to clipboard Arguments: - text: string - text to copy Returns: none

func CliboardCopySelfDestruct

func CliboardCopySelfDestruct(i map[string]any) map[string]any

Copy text to clipboard and delete it again after certain amount of time. Arguments: - text: string - text to copy

  • timeout: int - clear clipboard after so many seconds

Returns: none

func Empty

func Empty(i map[string]any) map[string]any

Does nothing Arguments: none Returns: none

func FileOpen

func FileOpen(i map[string]any) map[string]any

Opens a file in the default application. Arguments: - file: string Returns: - file: string - file opened

func FolderCreate

func FolderCreate(i map[string]any) map[string]any

Creates a folder. Arguments: folder: string Returns: - folder: string

func GetClipboard

func GetClipboard(i map[string]any) map[string]any

Get data from clipboard. Arguments: none Returns: - text: string - text from clipboard

func GetUserAndHost

func GetUserAndHost(i map[string]any) map[string]any

Get current user and host name Arguments: none Returns: - username: string - hostname: string

func GetWifiState

func GetWifiState(i map[string]any) map[string]any

Get wifi state Arguments: none Returns: - wifi-on: string

func Notification

func Notification(i map[string]any) map[string]any

Sends a desktop notification. Arguments: - [title: string] - [body: string] - [icon: string]

func QrEncode

func QrEncode(i map[string]any) map[string]any

Generates a QR code from procided string. Arguments: - data: string Returns: - data: string - original data - file: string - file where the qr code was saved

func Stop

func Stop(i map[string]any) map[string]any

Stops executing Arguments: none Returns: none

func Wifi

func Wifi(i map[string]any) map[string]any

Changes WiFi state. Arguments: - status: string ("on"/"off") Returns: - status: string ("on"/"off")

Types

This section is empty.

Jump to

Keyboard shortcuts

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