Commit Graph

85 Commits

Author SHA1 Message Date
bvr-yr 94ac7fef1a
input-field: dots improvements (#84)
* input-field: dots improvements

* fix stuff
2024-02-26 00:33:19 +00:00
WindyDay 146965e7fb
core: unlock on sigusr1 (#82)
* Add SIGUSR1 to unlock

* minor style improvements

---------

Co-authored-by: Vaxry <vaxry@vaxry.net>
2024-02-25 14:08:12 +00:00
Mihai Fufezan 844a899254
flake.lock: update nixpkgs 2024-02-24 17:12:33 +02:00
Maurice Kraus 0ad65916b8
renderer: restrict maximum dot amount w.r.t to input width (#56) 2024-02-24 14:14:10 +00:00
Gonçalo Negrier Duarte 57e8000660
core: fix libc++ compatibility (#75)
src/config/ConfigManager.cpp:91:6: error: no type named 'mutex' in namespace 'std'
   91 | std::mutex   configMtx;
      | ~~~~~^
src/config/ConfigManager.cpp:94:10: error: no member named 'lock_guard' in namespace 'std'
   94 |     std::lock_guard<std::mutex> lg(configMtx);
      |     ~~~~~^
/var/tmp/portage/gui-apps/hyprlock-9999/work/hyprlock-9999/src/config/ConfigManager.cpp:94:26: error: no member named 'mutex' in namespace 'std'
   94 |     std::lock_guard<std::mutex> lg(configMtx);
      |                     ~~~~~^

Closes: https://github.com/hyprwm/hyprlock/issues/43

Signed-off-by: Gonçalo Negrier Duarte <gonegrier.duarte@gmail.com>
2024-02-24 02:54:15 +00:00
Jan Beich 8969351cba
core: Add libc++ compatibility (#73)
src/renderer/AsyncResourceGatherer.cpp:98:22: error: no viable overloaded '+='
   98 |             progress += 1.0 / (preloads + 1.0);
      |             ~~~~~~~~ ^  ~~~~~~~~~~~~~~~~~~~~~~
src/renderer/widgets/IWidget.cpp:41:44: error: no member named 'current_zone' in namespace 'std::chrono'
   41 |     const auto current_zone = std::chrono::current_zone();
      |                               ~~~~~~~~~~~~~^
2024-02-23 21:29:08 +00:00
Vaxry 4c68780143 format: sanitize username for null
ref #64
2024-02-23 13:04:13 +00:00
Jan Beich f85287a523
core: Unbreak build on FreeBSD (#71)
* Add OpenPAM support (used by BSDs except OpenBSD)

--   Package 'pam', required by 'virtual:world', not found
CMake Error at /usr/local/share/cmake/Modules/FindPkgConfig.cmake:619 (message):
  The following required packages were not found:

   - pam

src/core/Password.cpp:6:10: fatal error: 'security/pam_misc.h' file not found
    6 | #include <security/pam_misc.h>
      |          ^~~~~~~~~~~~~~~~~~~~~

* Add missing headers

src/renderer/widgets/IWidget.cpp: In member function 'virtual IWidget::SFormatResult IWidget::formatString(std::string)':
src/renderer/widgets/IWidget.cpp:51:41: error: 'getlogin' was not declared in this scope
   51 |     replaceAll(in, "$USER", std::string{getlogin()});
      |                                         ^~~~~~~~
src/renderer/widgets/IWidget.cpp:51:51: error: no matching function for call to 'std::__cxx11::basic_string<char>::basic_string(<brace-enclosed initializer list>)'
   51 |     replaceAll(in, "$USER", std::string{getlogin()});
      |                                                   ^
src/renderer/DMAFrame.cpp: In member function 'bool CDMAFrame::onBufferDone()':
src/renderer/DMAFrame.cpp:181:17: error: 'close' was not declared in this scope; did you mean 'pclose'?
  181 |                 close(fd[plane_tmp]);
      |                 ^~~~~
      |                 pclose
src/renderer/DMAFrame.cpp:196:13: error: 'close' was not declared in this scope; did you mean 'pclose'?
  196 |             close(fd[plane]);
      |             ^~~~~
      |             pclose
src/core/Password.cpp: In lambda function:
src/core/Password.cpp:44:31: error: 'strdup' was not declared in this scope
   44 |         reply->resp         = strdup(pass.c_str());
      |                               ^~~~~~
src/core/hyprlock.cpp: In member function 'void CHyprlock::spawnAsync(const std::string&)':
src/core/hyprlock.cpp:768:9: error: 'sigemptyset' was not declared in this scope
  768 |         sigemptyset(&set);
      |         ^~~~~~~~~~~
src/core/hyprlock.cpp:769:21: error: 'SIG_SETMASK' was not declared in this scope
  769 |         sigprocmask(SIG_SETMASK, &set, NULL);
      |                     ^~~~~~~~~~~
src/core/hyprlock.cpp:769:9: error: 'sigprocmask' was not declared in this scope
  769 |         sigprocmask(SIG_SETMASK, &set, NULL);
      |         ^~~~~~~~~~~
2024-02-23 12:54:14 +00:00
Vaxry 9ba88d0ace gbm: prefer linear modifiers
ref #62
2024-02-22 23:02:42 +00:00
retchohrips f411d9d632 Nix: add blur settings and no_fade_in 2024-02-22 11:07:27 +02:00
Vaxry 272fc359ad gbm: pick only valid modifiers 2024-02-22 03:05:56 +00:00
Vaxry 57ce4f759c config: add no_fade_in
fixes #55
2024-02-22 00:36:01 +00:00
Vaxry 7ca13a801b renderer: fix misc blur shenanigans
fixes #58
2024-02-22 00:31:33 +00:00
Aaron Blasko 33c272be9f
README: add libdrm and mesa dependencies (#57) 2024-02-21 23:52:43 +00:00
Maurice Kraus 2fc23cbfc8
config: add source parsing (#28)
* config: add source parsing

* config: add nested source parsing

* config: streamlined absolutePath impl
2024-02-21 23:52:12 +00:00
Mihai Fufezan 59997a7c38
Nix: add mesa dependency 2024-02-22 01:09:27 +02:00
Vaxry af9e8d1758 core: do not process keys on pending password verif
fixes #54
2024-02-21 23:05:52 +00:00
Mihai Fufezan 29c5d4da94
Nix: add libdrm dependency 2024-02-22 00:55:46 +02:00
Vaxry 3f8b6b5c95 framebuffer: ask for 2101010 by default 2024-02-21 22:30:37 +00:00
Vaxry 1b57d52179 background: add blurring 2024-02-21 22:21:16 +00:00
Vaxry 2836f02ded background: add screenshot 2024-02-21 21:39:14 +00:00
Austin Horstman 3b7e055dcf nix: add general:grace 2024-02-21 20:45:36 +02:00
Austin Horstman 9dea7c2f55 nix: add dots_center 2024-02-21 20:25:14 +02:00
Vaxry 9d8ee2a1d0
core: Nvidia and stuff fixes (#44)
* nvidia and stuff fixes

* no no null confures

* drop stupid roundtrip
2024-02-21 16:56:25 +00:00
Vaxry 6355216f48 config: add general:grace
fixes #48
2024-02-21 16:48:59 +00:00
Vaxry 06b07c53e5 label: add executing commands 2024-02-21 14:12:20 +00:00
Leon 3d27060688 Nix: HM module: add dots options + convert input fields and labels to type = listOf submodule 2024-02-21 13:49:21 +02:00
Vaxry b1ffd73534 input-field: add dots_center 2024-02-21 11:42:18 +00:00
Vaxry 5c7b23eefb input: allow KP_Enter for submitting
fixes #32
2024-02-21 11:35:31 +00:00
Siavash Askari Nasr 277a377eb2
input: Clear password buffer with escape key (#37) 2024-02-21 11:01:52 +00:00
Maurice Kraus 7b15d34f0a
core: add support for 90/270 degree rotated monitors (#26) 2024-02-20 19:20:08 +00:00
Leon a756d761eb Nix: add hide_input to hm module + correctly convert bools to strings + some minor styling changes 2024-02-20 19:51:23 +02:00
bvr-yr d28e009c55
input-field: allow configure dots size (#24) 2024-02-20 17:12:43 +00:00
Vaxry a92e3fbe36 input: fix outerColor alpha being nuked 2024-02-20 16:34:59 +00:00
Vaxry 40802b9672 renderer: minor alpha improvements 2024-02-20 16:29:23 +00:00
Vaxry b9c88e8600 debug: log surface configure sizes 2024-02-20 16:16:46 +00:00
jacekpoz 0cc6f88f29 nix: add package to home.packages in hm module 2024-02-20 18:04:24 +02:00
jacekpoz 4663920d29
nix: add color option to backgrounds in the hm module (#22)
Co-authored-by: jacekpoz <jacekpoz@cock.li>
2024-02-20 18:03:06 +02:00
Vaxry 11a6213c36 background: fix typo in calcs 2024-02-20 16:02:40 +00:00
jacekpoz e1aac7e135 nix: fix hm module
changed cfg from config.services.hyprlock to config.programs.hyprlock
2024-02-20 17:39:45 +02:00
Vaxry 6ff808cebf input-field: add hide_input 2024-02-20 14:42:10 +00:00
Mihai Fufezan 843695b0b0
Nix: services.hyprlock -> programs.hyprlock
Mistake on my part when writing this module.
2024-02-20 14:59:09 +02:00
DamitusThyYeetus123 2b20e48a37
Nix: update HM module 2024-02-20 14:37:12 +02:00
Mihai Fufezan c1b96e12ae
Nix & CI: init 2024-02-20 14:37:12 +02:00
Siavash Askari Nasr 1049ac9a0b
label: Use local time for $TIME variable (#17)
Before this change, system's time zone was not used to return the time
2024-02-20 11:29:39 +00:00
Vaxry d37786be5c core: always roundtrip on unlock 2024-02-20 03:31:10 +00:00
Vaxry e57f146bad core: fixup deadlock in timersThr exit cond 2024-02-20 03:18:17 +00:00
Vaxry b23b0a6d32 core: add wait timeout to main thread 2024-02-20 03:07:34 +00:00
Vaxry 394dc81ff3 core: wait for poll threads to exit to avoid a coredump 2024-02-20 03:05:51 +00:00
Vaxry 98606beaad core: fixup number of pollfds in poll thread 2024-02-20 03:01:58 +00:00