mirror of
https://github.com/fairyglade/ly.git
synced 2026-05-06 07:10:36 +00:00
## What are the changes about? Adds customizable commands and labels to ly. Solves https://codeberg.org/fairyglade/ly/issues/905. Since Ly doesn't use INI headers. I use them exclusively for declarations of custom commands and labels. ### Commands Bind a keybind to a command, and add a hint to the HUD. Useful for use cases like display brightness, switching between GPUs, etc. Supports localization in the `name` field only. ex: where `lang = es`: `$brightness_up` => `bajar brillo` Declared in config.ini with the following: ```ini [cmd:F8] name = custom command 2 cmd = touch /tmp/ly.gaming ``` ### Labels Add a label to the HUD. As specified in #905. The text of the label corresponds to the output of the command specified in `[lbl:NAME]`. Only shows the first line of the output. Declared in config.ini with the following: ```ini [lbl:kernel] cmd = uname -srn refresh = 0 ``` Example to add to the config.ini: ```ini # Declare a command with the F8 binding. [cmd:F8] #The name of the command to show up in Ly. name = custom command cmd = touch /tmp/ly.gaming # Declare a label with an ID. This ID should be unique across all labels. [lbl:kernel] cmd = uname -srn # In frames, the time to re-run the command and update the label. If 0, only run once- do not refresh. refresh = 0 # Once you're done setting up labels and commands, add an empty header # below to continue configurating the rest of Ly. # Put other settings not belonging to custom commands/labels below here. [] ``` ## Pre-requisites - [x] I have tested & confirmed the changes work locally  Reviewed-on: https://codeberg.org/fairyglade/ly/pulls/945 Reviewed-by: AnErrupTion <anerruption+codeberg@disroot.org> Co-authored-by: RadsammyT <radsammyt@gmail.com> Co-committed-by: RadsammyT <radsammyt@gmail.com>
83 lines
1.7 KiB
INI
83 lines
1.7 KiB
INI
|
|
|
|
|
|
capslock = capslock
|
|
|
|
|
|
|
|
|
|
err_alloc = impossibile allocare memoria
|
|
|
|
|
|
err_bounds = indice fuori limite
|
|
|
|
err_chdir = impossibile aprire home directory
|
|
|
|
|
|
|
|
err_dgn_oob = messaggio log
|
|
err_domain = dominio non valido
|
|
|
|
|
|
|
|
|
|
err_hostname = impossibile ottenere hostname
|
|
|
|
|
|
|
|
err_mlock = impossibile ottenere lock per la password in memoria
|
|
err_null = puntatore nullo
|
|
|
|
err_pam = transazione PAM fallita
|
|
err_pam_abort = transazione PAM interrotta
|
|
err_pam_acct_expired = account scaduto
|
|
err_pam_auth = errore di autenticazione
|
|
err_pam_authinfo_unavail = impossibile ottenere informazioni utente
|
|
err_pam_authok_reqd = token scaduto
|
|
err_pam_buf = errore buffer memoria
|
|
err_pam_cred_err = impossibile impostare credenziali
|
|
err_pam_cred_expired = credenziali scadute
|
|
err_pam_cred_insufficient = credenziali insufficienti
|
|
err_pam_cred_unavail = impossibile ottenere credenziali
|
|
err_pam_maxtries = raggiunto limite tentativi
|
|
err_pam_perm_denied = permesso negato
|
|
err_pam_session = errore di sessione
|
|
err_pam_sys = errore di sistema
|
|
err_pam_user_unknown = utente sconosciuto
|
|
err_path = impossibile impostare percorso
|
|
err_perm_dir = impossibile cambiare directory corrente
|
|
err_perm_group = impossibile ridurre permessi gruppo
|
|
err_perm_user = impossibile ridurre permessi utente
|
|
err_pwnam = impossibile ottenere dati utente
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
err_user_gid = impossibile impostare GID utente
|
|
err_user_init = impossibile inizializzare utente
|
|
err_user_uid = impossible impostare UID utente
|
|
|
|
|
|
err_xsessions_dir = impossibile localizzare cartella sessioni
|
|
err_xsessions_open = impossibile aprire cartella sessioni
|
|
|
|
|
|
login = username
|
|
logout = scollegato
|
|
|
|
|
|
numlock = numlock
|
|
|
|
password = password
|
|
restart = riavvio
|
|
shell = shell
|
|
shutdown = arresto
|
|
|
|
|
|
wayland = wayland
|
|
|
|
xinitrc = xinitrc
|