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.4 KiB
INI
83 lines
1.4 KiB
INI
|
|
|
|
|
|
capslock = 大写锁定
|
|
|
|
|
|
|
|
|
|
err_alloc = 内存分配失败
|
|
|
|
|
|
err_bounds = 索引越界
|
|
|
|
err_chdir = 无法打开home文件夹
|
|
|
|
|
|
|
|
err_dgn_oob = 日志消息
|
|
err_domain = 无效的域
|
|
|
|
|
|
|
|
|
|
err_hostname = 获取主机名失败
|
|
|
|
|
|
|
|
err_mlock = 锁定密码存储器失败
|
|
err_null = 空指针
|
|
|
|
err_pam = PAM事件失败
|
|
err_pam_abort = PAM事务已中止
|
|
err_pam_acct_expired = 帐户已过期
|
|
err_pam_auth = 身份验证错误
|
|
err_pam_authinfo_unavail = 获取用户信息失败
|
|
err_pam_authok_reqd = 口令已过期
|
|
err_pam_buf = 内存缓冲区错误
|
|
err_pam_cred_err = 设置凭据失败
|
|
err_pam_cred_expired = 凭据已过期
|
|
err_pam_cred_insufficient = 凭据不足
|
|
err_pam_cred_unavail = 无法获取凭据
|
|
err_pam_maxtries = 已达到最大尝试次数限制
|
|
err_pam_perm_denied = 拒绝访问
|
|
err_pam_session = 会话错误
|
|
err_pam_sys = 系统错误
|
|
err_pam_user_unknown = 未知用户
|
|
err_path = 无法设置路径
|
|
err_perm_dir = 更改当前目录失败
|
|
err_perm_group = 组权限降级失败
|
|
err_perm_user = 用户权限降级失败
|
|
err_pwnam = 获取用户信息失败
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
err_user_gid = 设置用户GID失败
|
|
err_user_init = 初始化用户失败
|
|
err_user_uid = 设置用户UID失败
|
|
|
|
|
|
err_xsessions_dir = 找不到会话文件夹
|
|
err_xsessions_open = 无法打开会话文件夹
|
|
|
|
|
|
login = 登录
|
|
logout = 注销
|
|
|
|
|
|
numlock = 数字锁定
|
|
|
|
password = 密码
|
|
|
|
shell = shell
|
|
|
|
|
|
|
|
wayland = wayland
|
|
x11 = x11
|
|
xinitrc = xinitrc
|