Table of contents
AppModelApplicationsServiceGreetdHyprlandClientHyprlandWorkspaceMprisLoopingChangedMprisOutputMprisPlayerMprisServiceMprisShuffleToggledMprisTrackChangedMprisVolumeChangedTimeServiceTrackMetadata
AppModel
Propreties:
description→stringThe description of the app, if it has one
desktop→stringThe .desktop file path
executable→stringThe apps executable binary path
icon→stringThe icon name of the app
id→stringThe id of the app. The id is oobtained by the desktop file name
name→stringThe 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:stringThe username to log in with
attempt:stringThe password you need to loog in with
command:stringThe command to run if login was successfull
HyprlandClient
Propreties:
at→{ x: number, y: number }The x and y position where the client is on
class→stringThe class name of the client
floating→booleanIs this window floating or not
initial_class→stringThe
initial_titleof the client
initial_title→stringThe
initial_titleof the client
process_id→numberThe process id of the client
size→{ x: number, y: number }the x and y size of the client
title→stringThe title of the client
workspace_id→numberThe id of the workspace that the client/window is on
Methods:
HyprlandWorkspace
Propreties:
active→boolean
id→number
Methods:
MprisLoopingChanged
Propreties:
loop_status→"None"|"Playlist"|"Track"
player→stringThe players name
Methods:
MprisOutput
Propreties:
player→stringThe 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:
player→stringThe players name
shuffle→boolean
Methods:
MprisTrackChanged
Propreties:
player→stringThe players name
track→TrackMetadata|{ empty: boolean }
see definitions: TrackMetadata
Methods:
MprisVolumeChanged
Propreties:
player→stringThe players name
volume→number
Methods:
TimeService
Propreties:
Methods:
:delay(duration, signal)
duration:numberHow much time (in seconds) needs to pass until sending the signal
signal:string|CustomSignalThe signal to send once the specified amount of time has passed
TrackMetadata
Propreties:
album_artists→string[]List of artists of the song
album_name→stringThe album name of the song playing
length→numberThe length of the song in seconds
title→stringThe title of the song playing