mirror of
https://github.com/fairyglade/ly.git
synced 2026-05-06 15:20: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.8 KiB
INI
83 lines
1.8 KiB
INI
|
|
|
|
|
|
capslock = capslock
|
|
|
|
|
|
|
|
|
|
err_alloc = alokace paměti selhala
|
|
|
|
|
|
err_bounds = index je mimo hranice pole
|
|
|
|
err_chdir = nelze otevřít domovský adresář
|
|
|
|
|
|
|
|
err_dgn_oob = zpráva protokolu
|
|
err_domain = neplatná doména
|
|
|
|
|
|
|
|
|
|
err_hostname = nelze získat název hostitele
|
|
|
|
|
|
|
|
err_mlock = uzamčení paměti hesel selhalo
|
|
err_null = nulový ukazatel
|
|
|
|
err_pam = pam transakce selhala
|
|
err_pam_abort = pam transakce přerušena
|
|
err_pam_acct_expired = platnost účtu vypršela
|
|
err_pam_auth = chyba autentizace
|
|
err_pam_authinfo_unavail = nelze získat informace o uživateli
|
|
err_pam_authok_reqd = platnost tokenu vypršela
|
|
err_pam_buf = chyba vyrovnávací paměti
|
|
err_pam_cred_err = nelze nastavit pověření
|
|
err_pam_cred_expired = platnost pověření vypršela
|
|
err_pam_cred_insufficient = nedostatečné pověření
|
|
err_pam_cred_unavail = nepodařilo se získat pověření
|
|
err_pam_maxtries = byl dosažen maximální počet pokusů
|
|
err_pam_perm_denied = přístup odepřen
|
|
err_pam_session = chyba relace
|
|
err_pam_sys = systemová chyba
|
|
err_pam_user_unknown = neznámý uživatel
|
|
err_path = nepodařilo se nastavit cestu
|
|
err_perm_dir = nepodařilo se změnit adresář
|
|
err_perm_group = nepodařilo se snížit skupinová oprávnění
|
|
err_perm_user = nepodařilo se snížit uživatelská oprávnění
|
|
err_pwnam = nelze získat informace o uživateli
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
err_user_gid = nastavení GID uživatele selhalo
|
|
err_user_init = inicializace uživatele selhala
|
|
err_user_uid = nastavení UID uživateli selhalo
|
|
|
|
|
|
err_xsessions_dir = nepodařilo se najít složku relací
|
|
err_xsessions_open = nepodařilo se otevřít složku relací
|
|
|
|
|
|
login = uživatel
|
|
logout = odhlášen
|
|
|
|
|
|
numlock = numlock
|
|
|
|
password = heslo
|
|
restart = restartovat
|
|
shell = příkazový řádek
|
|
shutdown = vypnout
|
|
|
|
|
|
wayland = wayland
|
|
|
|
xinitrc = xinitrc
|