Table of contents

  1. AppModel
  2. ApplicationsService
  3. Greetd
  4. HyprlandClient
  5. HyprlandWorkspace
  6. MprisLoopingChanged
  7. MprisOutput
  8. MprisPlayer
  9. MprisService
  10. MprisShuffleToggled
  11. MprisTrackChanged
  12. MprisVolumeChanged
  13. TimeService
  14. TrackMetadata

source


AppModel

Propreties:

descriptionstring

The description of the app, if it has one

desktopstring

The .desktop file path

executablestring

The apps executable binary path

iconstring

The icon name of the app

idstring

The id of the app. The id is oobtained by the desktop file name

namestring

The name of the app

Methods:


ApplicationsService

Propreties:

Methods:

:get_all_apps()AppModel[]

:launch_app(executable_path)

executable_path: string


Greetd

Propreties:

Methods:

:login(username, attempt, command)"login_failure"|"login_success"

username: string

The username to log in with

attempt: string

The password you need to loog in with

command: string

The command to run if login was successfull


HyprlandClient

Propreties:

at{ x: number, y: number }

The x and y position where the client is on

classstring

The class name of the client

floatingboolean

Is this window floating or not

initial_classstring

The initial_title of the client

initial_titlestring

The initial_title of the client

process_idnumber

The process id of the client

size{ x: number, y: number }

the x and y size of the client

titlestring

The title of the client

workspace_idnumber

The id of the workspace that the client/window is on

Methods:


HyprlandWorkspace

Propreties:

activeboolean

idnumber

Methods:


MprisLoopingChanged

Propreties:

loop_status"None"|"Playlist"|"Track"

playerstring

The players name

Methods:


MprisOutput

Propreties:

playerstring

The players name

Methods:


MprisPlayer

Propreties:

Methods:

:get_volume()number

:next()

:play_pause()

:previous()

:set_loop(status)

status: "None"|"Playlist"|"Track"

:set_shuffle(shuffle)

shuffle: boolean

:set_volume(volume)

volume: number


MprisService

Propreties:

Methods:

:get_player(player_name)MprisPlayer

player_name: string


MprisShuffleToggled

Propreties:

playerstring

The players name

shuffleboolean

Methods:


MprisTrackChanged

Propreties:

playerstring

The players name

trackTrackMetadata|{ empty: boolean }

see definitions: TrackMetadata

Methods:


MprisVolumeChanged

Propreties:

playerstring

The players name

volumenumber

Methods:


TimeService

Propreties:

Methods:

:delay(duration, signal)

duration: number

How much time (in seconds) needs to pass until sending the signal

signal: string|CustomSignal

The signal to send once the specified amount of time has passed


TrackMetadata

Propreties:

album_artistsstring[]

List of artists of the song

album_namestring

The album name of the song playing

lengthnumber

The length of the song in seconds

titlestring

The title of the song playing

Methods: