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.9 KiB
INI
83 lines
1.9 KiB
INI
|
|
|
|
|
|
capslock = caixa alta
|
|
|
|
|
|
|
|
|
|
err_alloc = alocação de memória malsucedida
|
|
|
|
|
|
err_bounds = índice fora de limites
|
|
|
|
err_chdir = não foi possível abrir o diretório home
|
|
|
|
|
|
|
|
err_dgn_oob = mensagem de log
|
|
err_domain = domínio inválido
|
|
|
|
|
|
|
|
|
|
err_hostname = não foi possível obter o nome do host
|
|
|
|
|
|
|
|
err_mlock = bloqueio da memória de senha malsucedido
|
|
err_null = ponteiro nulo
|
|
|
|
err_pam = transação pam malsucedida
|
|
err_pam_abort = transação pam abortada
|
|
err_pam_acct_expired = conta expirada
|
|
err_pam_auth = erro de autenticação
|
|
err_pam_authinfo_unavail = não foi possível obter informações do usuário
|
|
err_pam_authok_reqd = token expirada
|
|
err_pam_buf = erro de buffer de memória
|
|
err_pam_cred_err = erro para definir credenciais
|
|
err_pam_cred_expired = credenciais expiradas
|
|
err_pam_cred_insufficient = credenciais insuficientes
|
|
err_pam_cred_unavail = não foi possível obter credenciais
|
|
err_pam_maxtries = limite máximo de tentativas atingido
|
|
err_pam_perm_denied = permissão negada
|
|
err_pam_session = erro de sessão
|
|
err_pam_sys = erro de sistema
|
|
err_pam_user_unknown = usuário desconhecido
|
|
err_path = não foi possível definir o caminho
|
|
err_perm_dir = não foi possível alterar o diretório atual
|
|
err_perm_group = não foi possível reduzir as permissões de grupo
|
|
err_perm_user = não foi possível reduzir as permissões de usuário
|
|
err_pwnam = não foi possível obter informações do usuário
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
err_user_gid = não foi possível definir o GID do usuário
|
|
err_user_init = não foi possível iniciar o usuário
|
|
err_user_uid = não foi possível definir o UID do usuário
|
|
|
|
|
|
err_xsessions_dir = não foi possível encontrar a pasta das sessões
|
|
err_xsessions_open = não foi possível abrir a pasta das sessões
|
|
|
|
|
|
login = conectar
|
|
logout = desconectado
|
|
|
|
|
|
numlock = numlock
|
|
|
|
password = senha
|
|
restart = reiniciar
|
|
shell = shell
|
|
shutdown = desligar
|
|
|
|
|
|
wayland = wayland
|
|
|
|
xinitrc = xinitrc
|