summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-01-16Print more detailed error messagesemersion
2019-01-16Merge pull request #12 from swaywm/ciDrew DeVault
ci: add .build.yml
2019-01-16ci: add .build.ymlemersion
2019-01-15Merge pull request #9 from johnae/masterDrew DeVault
Fix swaylock.h include directive
2019-01-15Fix swaylock.h include directiveJohn Axel Eriksson
2019-01-15Remove list.cBrian Ashworth
This replaces all occurrences of `list_t` with `wl_list` to eliminate the need for `list.c`
2019-01-15Merge pull request #7 from RedSoxFan/remove-wlrootsemersion
Implement logging and remove wlroots dependency
2019-01-14Implement logging and remove wlroots dependencyBrian Ashworth
This implements a simpler version of the wlroots logger for swaylock. With this logger, the dependency on wlroots can be dropped. This also adds a debug flag and disables debugging output by default
2019-01-14Add datadir1.2Drew DeVault
And actually tested it as if I weren't a dumbass
2019-01-14Remove enable-tray properly1.1Drew DeVault
2019-01-14Add completions1.0Drew DeVault
2019-01-14Merge pull request #5 from Robinhuett/caps_indicatorDrew DeVault
Add caps lock state to indicator
2019-01-14Add caps lock state to indicatorRobinhuett
This implements customization for the indicator as proposed in sway#2788 with comments from sway#3367 in mind. The default behaviour does not change exept for the caps lock text color. Since these changes seem to be lost in the split I've remade them.
2019-01-13Correct references to swayidle in readmeDrew DeVault
2019-01-13Add README.md, compile man pagesDrew DeVault
2019-01-13MIT licenseDrew DeVault
2019-01-13Remove unused functions in common codeDrew DeVault
2019-01-13Convert swaylock into standalone projectDrew DeVault
2019-01-08Merge pull request #3275 from ianyfan/remove-readlineemersion
Rewrite strip_whitespace and remove readline.c
2019-01-03swaylock: Fix caps lock not updating immediatelyOscar Cowdery Lack
Partially fixes #2788. This change makes it so the lock screen is redrawn whenever the caps lock modifier state changes, rather on relying on the keypress event. This didn't work because caps lock is disabled when the key is released, not pressed, so the caps lock indicator does not go away until the next keypress event.
2019-01-01Remove readline.cIan Fan
All occurrences of read_line have been replaced by getline. peek_line has been absorbed into detect_brace.
2018-12-23swaylock: Submit password on Ctrl-DMilkey Mouse
Ctrl-D functions as EOF in most cases on the terminal. login(1) & many other programs check the password on EOF, same as Enter. To make behavior consistent, have swaylock submit the password on Ctrl-D. This commit moves the handling for Enter into its own static function, which is now also called on Ctrl-D.
2018-12-23swaylock: Clear password buffer on Ctrl-CMilkey Mouse
I've got in the habit of using Ctrl-C with login(1) to restart password entry. If Sway does the same thing I don't have to retrain my login muscle memory ;)
2018-12-02fix typobschacht
bahavior -> behavior
2018-11-30swaylock: fix build with musl libcCameron Nemo
Signed-off-by: Cameron Nemo <camerontnorman@gmail.com>
2018-11-25Replace _XOPEN_SOURCE with _POSIX_C_SOURCEemersion
And make sure we don't define both in the same source file.
2018-10-27reordered swaylock manpagemadblobfish
2018-10-24Merge pull request #2925 from ianyfan/swaylockDrew DeVault
swaylock: exit early if unable to get input inhibitor
2018-10-24Add multiseat support to swaylockRyan Dwyer
2018-10-23swaylock: exit on display errorIan Fan
2018-10-23swaylock: exit early if unable to inhibit inputIan Fan
This stops the program from going into a spinlock without exiting
2018-10-19Change initial background mode before arg parse.Connor E
2018-10-16Fix swaylock version stringRyan Dwyer
The referenced constants were not defined so it always printed "version unknown". Also it would exit with code 1. It now exits with code 0.
2018-10-15Sway clients: Exit gracefully when compositor is unavailableRyan Dwyer
2018-10-15Remove timerfd from loop implementationRyan Dwyer
timerfd doesn't work on the BSDs, so this replaces it with a timespec for the expiry and uses a poll timeout to check the timers when needed.
2018-10-15swaylock: Don't wait too long for surface damage before verifyingRyan Dwyer
2018-10-15swaylock: clear password after 10 secondsRyan Dwyer
2018-10-15swaylock: Remove indicator after 3 secondsRyan Dwyer
2018-10-15swaylock: Use common event loopRyan Dwyer
2018-10-14swaylock: fix clear_password_bufferespkk
2018-10-06Fix swaylock w/shadow on glibc, improve securityDrew DeVault
Today I learned that GNU flaunts the POSIX standard in yet another creative way. Additionally, this adds some security improvements, namely: - Zeroing out password buffers in the privileged child process - setuid/setgid after reading /etc/shadow
2018-10-06swaylock: Support keyboard and pointer disconnects and reconnectsRyan Dwyer
2018-09-30Add support for installing binaries with DT_RPATHArkadiusz Hiler
It's better to use DT_RPATH dynamic section of the elf binary to store the paths of libraries to load instead of overwriting LD_LIBRARY_PATH for the whole environment, causing surprises. This solution is much more transparent and perfectly suitable for running contained installations of wayland/wlroots/sway. The code unsetting the LD_LIBRARY_PATH/LD_PRELOAD was also deleted as it's a placebo security at best - we should trust the execution path that leads us to running sway, and it's way too late to care about those variables since we already started executing our compositor, thus we would be compromised anyway.
2018-09-30Turn funcs() into funcs(void)Arkadiusz Hiler
If they really do not take undefined number of arguments.
2018-09-28Add support for building swaylock without PAMDrew DeVault
This involves setuid'ing swaylock, which then forks and drops perms on the parent process. The child process remains root and listens on a pipe for requests to validate passwords against /etc/shadow.
2018-09-22swaybar, swaylock, & tree/container: Set cairo font options to render text ↵Geoff Greer
and lines with subpixel hinting (if available).
2018-08-30Add FreeBSD-specific PAM configurationsghctoma
The "login" PAM configuration means somathing entirely different on FreeBSD than on Linux: if you try to authenticate as the calling user, it OKs the request without prompting for password. The "passwd" config implements the desired functionality, therefore it should be used by swaylock.
2018-07-17Fix swaylock argumentsBrian Ashworth
2018-07-16Switch to using getopt_long for config flagBrian Ashworth
2018-07-16Remove leftover parensBrian Ashworth