Commit Graph

30 Commits

Author SHA1 Message Date
SuperDJY 1e284b9488
feat(control char): add basic control char support (#238)
* feat(control char): add basic control char support

* feat(control char): fix wrong x when \n after \b

* feat(control char): add `\t` support, same behavior as `\t` in c printf

* Gonna go with 4 spaces per tab to be safer

* fix(control chars): leading control chars run into 'out of bounds memory acessing', and render at wrong position

* doc(control chars): describe the control chars behavior and declare the influenced options and bump date to SEP 2021.

* update to NOV

* Bump years

* Redo manpage

Co-authored-by: Raymond Li <hi@raymond.li>
2022-01-10 12:34:12 -05:00
Rio6 91092a1bf1 refactor background types to use enum 2021-05-30 02:15:25 -04:00
Rio6 085df46f42
Add --bar-total-width option (#206)
* Add adjustable total bar width and bar position

* Update parameter name and documentation

* Fix option name in error message

* Reword error message

Co-authored-by: Raymond Li <hi@raymond.li>
2021-02-18 14:14:55 -05:00
Rio6 4bc07d8ea5 Implement bar-count to replace bar-width
And tried to make draw_bar less messy
2021-01-24 01:14:03 -05:00
Benoît Dardenne 457ab2ae2b Refactor to share image drawing code 2020-04-18 12:50:27 +02:00
Benoît Dardenne 8bb468697c Added option to display the provided image centered on all monitors 2020-04-18 12:37:41 +02:00
Benoît Dardenne 0da5cdb447 Use 32bit-deep drawables to allow setting a color with alpha channel as background 2020-04-11 21:44:02 +02:00
Raymond Li 032f960c1e
Replace quotes here as well 2020-03-08 16:22:22 -04:00
Jakob Lindskog 556cc7f0a8 add greeter option, which displays a user provided string 2018-10-05 16:40:50 +02:00
eyenseo efd6b36daa Add drawing lock on multiple screens 2018-02-04 09:15:38 +01:00
eyenseo 19e6bb9acf Fix scaling issues 2018-02-03 22:18:17 +01:00
Pandora fdd03ea1e3 merge upstream 2018-01-20 00:06:10 -05:00
Michael Stapelberg 6b53758e14
display error when backspace is pressed without any input (#172)
This adds some feedback to a keypress which previously had no visible effect.

While the text “no input” isn’t the most descriptive, it was the only one I
could think of which fit into the unlock indicator circle. If you have a better
suggestion, let me know.

fixes #164
2018-01-14 22:17:43 +01:00
Pandora 59cdccb3e5
make render thread optional
theoretical potential security concerns; no use unless using bar and you care... I hammered pretty hard on my kb for a while to try and see if it's possible to configure it poorly and get the render thread to crash, but to no avail.
2017-12-08 02:29:05 -05:00
Pandora e69147d860 fix that annoying refresh bug 2017-12-08 00:38:55 -05:00
Chris Guillott 5e0aeccbb3 first commit towards fixing this 2017-12-05 12:53:54 -05:00
Chris Guillott 3d6b294d11 initial keylayout work 2017-11-19 15:12:43 -05:00
Chris Guillott 12e3a846b8 fix compile warning 2017-05-30 18:34:02 -04:00
Chris Guillott 3a1790ecc2 merge commit etc 2017-04-17 16:55:50 -04:00
Jasper Lievisse Adriaanse 68fc2e8b5f Use bsd_auth(3) instead of PAM on OpenBSD
Also apply two security measures for OpenBSD:
- use explicit_bzero(3)
- mlock(2) works for non-root users too
2017-04-17 15:06:59 +02:00
Jasper Lievisse Adriaanse c1de117825 Rename all PAM-independant variables/comments.
there is nothing PAM-specific about pam_state or pam_state_t. therefore
rename them to be authenticator independant.
2017-04-15 09:44:09 +02:00
Chris Guillott e4301604e5 add custom time formatter strings 2016-10-14 20:57:34 -04:00
Chris Guillott 158623508a add basic clock feature 2016-10-14 14:48:43 -04:00
eplanet d2130092cf Display error message when locking failed (#99)
To give a feedback for when the pointer couldn't be grabbed,
displaying an error message before exiting.
2016-10-11 13:40:51 -07:00
eplanet 1c97a84847 Displaying locking message when grabbing the pointer/keyboard. (#88)
Display "locking…" message when grabbing the pointer/keyboard,
after at least 250 ms of unfruitful attempts. If grabbing
eventually fails, application will not fork and return 1.
2016-09-27 18:39:52 -07:00
Michael Stapelberg 68b78a7f57 clang-format -i **/*.[ch]
From here on, we’ll use clang-format to automatically format the source.

This has worked well in i3, so we are introducing it for i3lock.
2015-03-16 18:47:16 +01:00
Vytautas Šaltenis 2509c987d1 Extract start/stop timer code to reusable funcs 2014-03-11 09:11:20 +01:00
Michael Stapelberg dc2b6e5f39 Use (void) instead of () for functions without args (Thanks fernandotcl)
See also:
http://article.gmane.org/gmane.linux.kernel/1268792

The C compiler will handle (void) as "no arguments" and () as "variadic
function" (equivalent to (...)) which might lead to subtle errors, such
as the one which was fixed with commit 0ea64ae4.
2012-04-01 12:28:28 +02:00
Michael Stapelberg 0e7e009f45 Properly free timeouts, move one of the timeouts to unlock_indicator.c 2012-01-03 22:18:33 +00:00
Michael Stapelberg 57585bef70 Refactor the unlock indicator into its own source code file 2012-01-03 20:56:05 +00:00