Commit graph

319 commits

Author SHA1 Message Date
Jan Beich
408ce95dd0
widgets: chase libc++ < 19 compat after 2c5ae4d661 (#659)
src/renderer/widgets/IWidget.cpp:123:11: error: no type named 'time_zone' in namespace 'std::__1::chrono'; did you mean 'date::time_zone'?
  123 |     const std::chrono::time_zone* pCurrentTz = nullptr;
      |           ^~~~~~~~~~~~~~~~~~~~~~
      |           date::time_zone
/usr/include/date/tz.h:785:7: note: 'date::time_zone' declared here
  785 | class time_zone
      |       ^
src/renderer/widgets/IWidget.cpp:127:39: error: no member named 'locate_zone' in namespace 'std::__1::chrono'
  127 |             pCurrentTz = std::chrono::locate_zone(name);
      |                          ~~~~~~~~~~~~~^
2025-01-24 17:31:43 +01:00
Maximilian Seidler
07b5e1b4cd
core: fix background screenshot on nvidia (#656)
Fixes DMA buffer screencopy on nvidia cards. Additionally adds shm screencopy as an option
2025-01-24 14:25:37 +01:00
742eb98c6a
flake.lock: update 2025-01-23 14:31:33 +02:00
Maximilian Seidler
d547d1d4e3
core: move wayland event reading into the poll thread (#655)
This was done, so that we can

  wl_display_prepare_read -> poll -> wl_display_read_events

That fixes synchronization issues on nvidia proprietary drivers.
2025-01-21 13:42:11 +00:00
Maximilian Seidler
02639c2759
animation: small gradient fail transition fixup (#648) 2025-01-15 16:09:11 +01:00
Maximilian Seidler
4f964371cc
auth: fixup prompt and fail substitution (#641)
BREAKING:
- Removed $PROMPT variable. Either use $PAMPROMPT or $FPRINTPROMPT.
- Removed $FPRINTMESSAGE. Use $FPRINTPROMPT instead. There is also
  $FPRINTFAIL.
2025-01-12 17:18:18 +00:00
pastalian
023aff52ad
cmake: explicitly require GLES3 component (#645)
This allows building on a system that:
- Lack GLX support
- Require explicit declaration for OpenGL::EGL

Reference: 0cc144ecfd/Tests/FindOpenGL/Test/CMakeLists.txt (L127-131)
2025-01-11 16:38:18 +00:00
Maximilian Seidler
e84267085d
animation: allow adding vars during ::tick (#644) 2025-01-11 16:36:18 +00:00
izmyname
a5e346783f
examples: Add default animations to the example config (#643) 2025-01-10 13:15:27 +00:00
Maximilian Seidler
73e23e535f
animations: fix overshoot beziers and cleanup animation config parsing (#642) 2025-01-09 20:59:16 +00:00
davc0n
de844d39ad
helpers: fix absolutePath relative with tilde (#640)
Relative path was not handled if input started with tilde.
Examples:
	~/./test
	~/weird/../test

No reason to do something like this imho, but users you never know.
2025-01-06 13:18:13 +00:00
Maximilian Seidler
00d2cbfee3
core: introduce animation manager and animation config (#631)
BREAKING:
- Removed `input-field:dots_fade_time`. Now configured via
`animation=inputFieldDots,...`
- Removed `input-field:fail_transition`. Now configured via
`animation=inputFieldColors,...`
- Removed `general:no_fade_in` and `general:no_fade_out`. Now configured
globally via `animations:enabled` or via `animation=fadeIn,...` and
`animation=fadeOut,...`
2025-01-06 12:34:21 +00:00
8f68fad50a core: bind to wl_seat v8
fixes #638
2025-01-04 17:32:44 +01:00
Maximilian Seidler
c3d95953c0
output: fix setting transform (#636) 2025-01-03 22:57:16 +00:00
Brayden Zee
e01afaf107
fingerprint: add a delay after an unrecognized fingerprint (#625) 2025-01-01 20:48:32 +00:00
Maximilian Seidler
a2f00fb735
config: fix gradient rgb(a) parsing with spaces (for real this time) (#628)
* config: fix gradient rgb(a) parsing with spaces (for real this time)

* config: conditionally split gradient colors
2025-01-01 12:18:37 +00:00
Jan Beich
836dbfbb13
core: add missing header for BSDs after 753c538dea (#630)
src/core/Seat.cpp:76:17: error: use of undeclared identifier 'close'
   76 |                 close(fd);
      |                 ^
2024-12-30 18:40:59 +00:00
davc0n
2c5ae4d661
widgets: add TZ env var support for $TIME (#627)
* widgets: add TZ env var support for $TIME

* widgets: refactor getTime if else brackets
2024-12-30 15:32:46 +00:00
Maximilian Seidler
3d63d9b129
input-field: don't change outer color when numlock_color is not set (#621)
* input-field: don't change outer color when numlock_color is not set

* input-field: same for bothlock_color
2024-12-29 18:38:16 +00:00
Vaxry
753c538dea
Core: move to hyprwayland-scanner (#624)
nix: add hyprwayland-scanner dep

flake.lock: update

---------

Co-authored-by: Mihai Fufezan <mihai@fufexan.net>
2024-12-29 18:36:08 +00:00
77d194c1e9 core: clean up pointer logic and clang-format 2024-12-29 16:40:01 +01:00
Maximilian Seidler
d94cc3a5ab
widgets: algin rect outline radius with inner border radius (#614)
* widget: add utility functions to calculate borders and make em static

* image: use the rounding util functions

* input-field: use the rounding util functions

* shape: use the rounding util functions
2024-12-29 11:14:49 +00:00
Maximilian Seidler
820eaff7a8
misc: print the correct commit hash (#619) 2024-12-29 08:24:25 +00:00
Ricky Lopez
d212f4cc10
fingerprint: better feedback and don't clear input field on retry (#613) 2024-12-27 15:21:02 +00:00
Maximilian Seidler
181294c4d8
widgets: use absolutePath to get last_write_time and ignore when no reloadTime (#615)
* image: use absolutePath to get last_write_time and ignore when no reloadTime

* background: use absolutePath to get last_write_time and ignore when no reloadTime
2024-12-26 15:43:11 +00:00
Maximilian Seidler
90bc9764f1
input-field: use IWidget::formatString for placeholder text (#603) 2024-12-24 22:38:39 +00:00
Maximilian Seidler
bf37645daa
auth: assert username (#604) 2024-12-23 20:53:27 +00:00
Maximilian Seidler
5361dc40da
misc: move to std::print (#592) 2024-12-22 15:09:20 +00:00
Maximilian Seidler
002e44f627
label: fix redrawing shadow on label updates (#599) 2024-12-22 15:53:52 +01:00
Maximilian Seidler
83bda4883d input-field: improve behavior of *lock colors (#596) 2024-12-22 13:37:22 +00:00
Maximilian Seidler
8a9f05fa1f
core: fix parsing grad with decimal rgb(a) colors (#595)
* Revert "config: use removeEmpty for the gradient varlist (#565)"

This reverts commit 578246b996.

* config: ignore empty grad components
2024-12-22 13:56:02 +01:00
f2c153c09b
nix: pass commit info to cmake 2024-12-21 23:20:38 +02:00
Maximilian Seidler
ee37e41723
misc: add git commit hash to --version when not on tag v${VERSION} (#590) 2024-12-20 19:41:06 +01:00
Jan Beich
d12b4a7fba
pam: add missing header for libc++ after a4b0562749 (#589)
In file included from src/auth/Auth.cpp:2:
src/auth/Pam.hpp:43:5: error: no type named 'thread' in namespace 'std'; did you mean 'pthread'?
   43 |     std::thread           m_thread;
      |     ^~~~~~~~~~~
      |     pthread
2024-12-18 20:10:01 +01:00
Robin Carlier
058830668e
widgets: Reload backgrounds and not just images (#583)
* widgets: Reload background and fade

* clang-format

also clang-format

* undo possibly unwanted format on Renderer.hpp

* rename stuff + style

* codestyle + initialize reloadTime

* remove trailing eols
2024-12-18 16:28:05 +01:00
381a284b3b version: bump to 0.6.0 2024-12-18 15:03:04 +00:00
Maximilian Seidler
fe35a8068c
core: terminate auth after recieving finished (#586) 2024-12-18 15:52:35 +01:00
Austin Horstman
61be0cb652
nix/overlays: gcc13 -> gcc14; flake.lock: update (#584)
* nix/overlays: gcc13 -> gcc14

* flake.lock: update
2024-12-16 22:24:00 +01:00
Maximilian Seidler
a4b0562749
auth: add an interface for different authentication methods (#578)
* auth: add an interface for different authentication methods

* auth: pick inline feedback based on last active implementation

* config: move auth options to auth:<auth_impl>

BREAKING:
- general:pam_module -> auth:pam:module
- general:enable_fingerprint -> auth:fingerprint:enabled
- general:fingerprint_ready_message -> auth:fingerprint:ready_message
- general:fingerprint_present_message ->
auth:fingerprint:present_message

* auth: don't clear password input for fingerprint auth check

* fingerprint: checkAuthenticated when handling verfiy status

* Revert conditionally clearing the password input buffer

Makes sure the input field can show the fail text for fingerprint auth.

* auth: virtual instead of override, remove braces

* pam: join the thread

* auth: remove isAuthenticated and switch to a control flow based unlock

* auth: initialize authentication before aquiring the session lock
2024-12-16 19:58:36 +01:00
Maximilian Seidler
4681f8f7f3
input-field: fix width animations (#582) 2024-12-16 01:00:41 +01:00
Maximilian Seidler
8010b81e7b
core: move to Hyprutils::OS::CProcess for spawning processes (#575)
* core: move to Hyprutils::OS::CProcess for spawning processes

* nix: flake update
2024-12-08 16:42:16 +01:00
Maximilian Seidler
cc7ffe73e7
renderer: round boxes (#571)
* renderer: round boxes before matrix projection

* renderer: use rounded boxes throughout
2024-12-01 17:13:55 +00:00
Vaxry
4667f721be
Core: move to hyprgraphics (#570)
* core: move to hyprgraphics

* Nix: add hyprgraphics

---------

Co-authored-by: Mihai Fufezan <mihai@fufexan.net>
2024-11-28 16:43:11 +00:00
Maximilian Seidler
578246b996
config: use removeEmpty for the gradient varlist (#565) 2024-11-19 13:35:53 +00:00
Maximilian Seidler
b9cf5151ba
input-field: fix colorConfig caps, num and both when they are empty (#559) 2024-11-15 00:45:55 +00:00
Maximilian Seidler
d159e14e5b
config: make configStringToInt support rgb(a) with decimal values (#558) 2024-11-15 00:43:47 +00:00
Maximilian Seidler
2775ab2868
widgets: render frambuffers with alpha 1.0 (#554)
* helpers: update CColor

yoinked from Hyprland

* image: fix border alpha

* shape: fix border alpha
2024-11-12 13:31:27 +00:00
c3c28feb4c widget: show 12AM instead of 0AM 2024-11-11 15:58:49 +00:00
eadcbc0aed widget: fix time12 when it's 12pm
fixes #552
2024-11-11 15:58:11 +00:00
Maximilian Seidler
d8bd25b52d
core: add support for composed keys (#551) 2024-11-11 15:49:51 +00:00