mirror of
https://github.com/fairyglade/ly.git
synced 2025-12-20 19:24:53 +00:00
* Add build.zig, remove makefile, add .idea directory to .gitignore * Remove submodules, add projects directly * Remove submodules * Add projects * Rename sub/ to dep/, remove makefiles * Rewrite main.c * Remove Argoat dependency * Remove unused dependencies * Rewrite config.c * Add files * Change default fg to 8 in config.ini * Partially rewrite utils.c * Use Zig package manager * Rewrite INPUTS enum in Zig * Commit unfinished full rewrite (Zig 0.11.0) What needs to be dealt with: - Matrix animation - Authentication part - Testing on actual TTY (not just virtual console) Signed-off-by: AnErrupTion <anerruption@disroot.org> * Implement more (untested) authentication code Signed-off-by: AnErrupTion <anerruption@disroot.org> * Fix some bugs (hopefully) Signed-off-by: AnErrupTion <anerruption@disroot.org> * Try to fix some more bugs Signed-off-by: AnErrupTion <anerruption@disroot.org> * Oops, forgot to allocate hehe Signed-off-by: AnErrupTion <anerruption@disroot.org> * Changes in the Zig rewrite (#596) * Everything * make matrix.zig a bit cleaner * make long lines shorter and add changelog * vi mode * update changelog * get errors from child process and (hopefully) fix some other things * fix utmp entry * run authentication in a child process * update changelog * small code improvements * change that * clear terminal on SIGTERM * Remove LogFile * moved ini to a lib, fixed alternative langs * fix logging out * oops * code improvements * consistency * clearing the env isn't needed anymore (afaik) * replace vi_mode with a bool * type aliases, avoiding zeroes(), breaking a long line * lowercase insert/normal, merge conditionals, code improvements * Add experimental save file migrator + bug fixes + add "-dev" version suffix Signed-off-by: AnErrupTion <anerruption@disroot.org> * Resolve conflicts Signed-off-by: AnErrupTion <anerruption@disroot.org> * Clean up when SIGTERM is received (#597) * clean up child processes on SIGTERM * small code improvement * consistency.. i guess? * Properly set XDG_CURRENT_DESKTOP Signed-off-by: AnErrupTion <anerruption@disroot.org> * Zig 0.12.0 and more! (#599) * less alloc, update migrator, get DesktopNames from .desktop * small cleanup * Update zigini to improve compatibility with old config * Code improvements * Update to zig version 0.12.0 * Some fixes * tiny changes * remove useless comment * migrator changes, and small things * set XDG env vars differently * free memory on error when appending environments * Fix out of bounds issue when using the Delete key Signed-off-by: AnErrupTion <anerruption@disroot.org> * Update zig-ini to fix configuration issue (#603) * Mention display-manager-init for Gentoo/OpenRC in readme.md Signed-off-by: AnErrupTion <anerruption@disroot.org> * Tidy up readme.md Signed-off-by: AnErrupTion <anerruption@disroot.org> * Fix authentication in a few edge cases (#604) * fix loginConv and auth * fix potential mem leak with configs * BIG changes --------- Signed-off-by: AnErrupTion <anerruption@disroot.org> Co-authored-by: アシュ <120780645+Kawaii-Ash@users.noreply.github.com>
52 lines
2.4 KiB
Zig
52 lines
2.4 KiB
Zig
capslock: []const u8 = "capslock",
|
|
err_alloc: []const u8 = "failed memory allocation",
|
|
err_bounds: []const u8 = "out-of-bounds index",
|
|
err_chdir: []const u8 = "failed to open home folder",
|
|
err_console_dev: []const u8 = "failed to access console",
|
|
err_dgn_oob: []const u8 = "log message",
|
|
err_domain: []const u8 = "invalid domain",
|
|
err_hostname: []const u8 = "failed to get hostname",
|
|
err_mlock: []const u8 = "failed to lock password memory",
|
|
err_null: []const u8 = "null pointer",
|
|
err_pam: []const u8 = "pam transaction failed",
|
|
err_pam_abort: []const u8 = "pam transaction aborted",
|
|
err_pam_acct_expired: []const u8 = "account expired",
|
|
err_pam_auth: []const u8 = "authentication error",
|
|
err_pam_authinfo_unavail: []const u8 = "failed to get user info",
|
|
err_pam_authok_reqd: []const u8 = "token expired",
|
|
err_pam_buf: []const u8 = "memory buffer error",
|
|
err_pam_cred_err: []const u8 = "failed to set credentials",
|
|
err_pam_cred_expired: []const u8 = "credentials expired",
|
|
err_pam_cred_insufficient: []const u8 = "insufficient credentials",
|
|
err_pam_cred_unavail: []const u8 = "failed to get credentials",
|
|
err_pam_maxtries: []const u8 = "reached maximum tries limit",
|
|
err_pam_perm_denied: []const u8 = "permission denied",
|
|
err_pam_session: []const u8 = "session error",
|
|
err_pam_sys: []const u8 = "system error",
|
|
err_pam_user_unknown: []const u8 = "unknown user",
|
|
err_path: []const u8 = "failed to set path",
|
|
err_perm_dir: []const u8 = "failed to change current directory",
|
|
err_perm_group: []const u8 = "failed to downgrade group permissions",
|
|
err_perm_user: []const u8 = "failed to downgrade user permissions",
|
|
err_pwnam: []const u8 = "failed to get user info",
|
|
err_unknown: []const u8 = "an unknown error occurred",
|
|
err_user_gid: []const u8 = "failed to set user GID",
|
|
err_user_init: []const u8 = "failed to initialize user",
|
|
err_user_uid: []const u8 = "failed to set user UID",
|
|
err_xsessions_dir: []const u8 = "failed to find sessions folder",
|
|
err_xsessions_open: []const u8 = "failed to open sessions folder",
|
|
insert: []const u8 = "insert",
|
|
login: []const u8 = "login:",
|
|
logout: []const u8 = "logged out",
|
|
normal: []const u8 = "normal",
|
|
numlock: []const u8 = "numlock",
|
|
other: []const u8 = "other",
|
|
password: []const u8 = "password:",
|
|
restart: []const u8 = "reboot",
|
|
shell: [:0]const u8 = "shell",
|
|
shutdown: []const u8 = "shutdown",
|
|
sleep: []const u8 = "sleep",
|
|
wayland: []const u8 = "wayland",
|
|
xinitrc: [:0]const u8 = "xinitrc",
|
|
x11: []const u8 = "x11",
|