* Added key binds to control brightness
I added keybinds to control brightness with brightnessctl.
F5 to decrease brightness.
f6 to increase brightness.
* Update src/main.zig
Co-authored-by: ShiningLea <anerruption@disroot.org>
* added proper keybinds and configs for brightness control
* Update src/main.zig
Co-authored-by: ShiningLea <anerruption@disroot.org>
* code improvement and changes
* updated en.ini
---------
Co-authored-by: ShiningLea <anerruption@disroot.org>
* Fix stray cursor, integer overflows and other bugs
* check for getenvlist error, shorten code
* fix cascade, set info_line before auth, make code clearer and a bug fix
* Add option to turn on numlock at startup
* Fix setting numlock
* Update build.zig
* Custom info text
* Shift+Tab for previous input
* update changelog and res/config
* Some fixes
* update build.zig
* update build.zig again
* Fix xauth command for some shells and fix building in ReleaseSafe
* Use git describe to get dev version str
* revert change to getLockState (it broke the doom animation)
* add new ly error messages. Only try to make path for pam/exe during install when dest_directory is defined + print warning on error.
* add warning message for workaround
* 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>
Include options in the configuration to change which function keys to use for shutdown and reboot.
Fix config.map_len size in src/config.c.
Add missing defaults in config_defaults() in src/config.c.
* Added a big clock
* fixed clock timing when animation is turned off
* fix memory leak and segfault
* rename clock to bigclock
* Added formattable clock
* fix clock position on first draw
don't rely on box_x and box_y to position the clock, because it might not be initialized in the first frame.
* fix memory leak
Clang generates more warning messages, such as pointing out a lack
of newline at end of file and issues with the size of a strncopy.
Moving -Wno-unused-parameter to the end of the flags avoids it being
overwritten by -Wextra.
Removing -Werror avoids compilation errors that may arise from new
compiler warnings that might come from newer versions of compilers.
Implements utmp audit required by policykit.
This commit also flattens the pidtree for the DM by starting the
display environment directly in the first fork which already should
have the environment ready for this purpose. This is with the
exception of xorg environments where this can't be done that easily.
This allows disabling the feature if PATH was already set (e.g. by the systemd session
slice) and the user wishes to honor that.
Signed-off-by: Roosembert Palacios <roosembert.palacios@epfl.ch>
This allows the user to specify a different directory to store static files, such as
translations and other resources.
Signed-off-by: Roosembert Palacios <roosembert.palacios@epfl.ch>
* remove trailing whitespace
* always submit password on enter
Moves the keypress logic for keypresses from if-else statements
to switches, adds non-contextual behavior on pressing enter
* wrap pam actions and handle errors at on spot
* init all of text struct in input_text()
This gets rid off valgrind warning on unitialized variables