Commit graph

357 commits

Author SHA1 Message Date
vaxerski
39fd0e46b1 screencopy: avoid defective exit() calls 2023-10-05 16:53:47 +01:00
vaxerski
552e928e7c screencopy: log dma format 2023-10-05 16:53:10 +01:00
vaxerski
158b5892bd internal: gracefully exit on termination after creating the event loop
possibly might help #103
2023-10-05 01:24:55 +01:00
Rudolchr
f9461b0b7d
build: Fix build when using clang (#100)
* Add -Wno-address-of-temporary to allow taking an address of temporary like -fpermissive does for gcc

* Make some implicit casts explicit

* Implement the wl_array_for_each macro inline as clang does not like to handle it's implicit typecast

* Removed unecessary include that was automatically added by the ide

* Replaced reinterpret_cast's with c-style casts
2023-09-26 22:23:02 +01:00
vaxerski
b6e1732fda picker: start on index 0 2023-09-22 19:28:51 +01:00
Jan Beich
54b5467ec1
build: Unbreak build on FreeBSD (#98)
* helpers: add missing header after 9dfb9e125b

src/helpers/MiscFunctions.cpp: In function 'void addHyprlandNotification(const std::string&, float, const std::string&, const std::string&)':
src/helpers/MiscFunctions.cpp:24:9: error: 'fork' was not declared in this scope
   24 |     if (fork() == 0)
      |         ^~~~
src/helpers/MiscFunctions.cpp:25:9: error: 'execl' was not declared in this scope
   25 |         execl("/bin/sh", "/bin/sh", "-c", CMD.c_str(), nullptr);
      |         ^~~~~

* build: add missing dependency for libc++ after 2f48e65503

ld.lld: error: undefined symbol: pthread_create
>>> referenced by PortalManager.cpp
>>>               src/xdg-desktop-portal-hyprland.p/core_PortalManager.cpp.o:(CPortalManager::startEventLoop())
>>> referenced by PortalManager.cpp
>>>               src/xdg-desktop-portal-hyprland.p/core_PortalManager.cpp.o:(CPortalManager::startEventLoop())
2023-09-18 20:00:21 +01:00
vaxerski
ccdb6a4899 bump ver to 1.1 2023-09-18 18:10:57 +01:00
Commrade Goad
b645ab7cce
screencopy: fix unescaped quotes in titles (#96) 2023-09-16 18:51:54 +01:00
vaxerski
2f48e65503 core: rework event loop for polling and C++-style awaits
Stops the event loop from checking all the time in favor of locks and polling.
2023-09-16 18:22:53 +01:00
vaxerski
8f45a64350 internal: make frame callbacks log a trace 2023-09-13 19:08:00 +01:00
vaxerski
9dfb9e125b internal: add a notification on missing qt-wayland packages
fixes #91
2023-09-11 23:31:33 +01:00
Mihai Fufezan
aca51609d4
flake.lock: update nixpkgs
nix/overlays: remove sdbus-cpp override (1.3.0 now in nixpkgs)
2023-09-10 19:39:48 +03:00
Mihai Fufezan
5c1905f549 hyprland-share-picker: build with meson
Nix: combine xdph and the picker into one package
2023-09-10 17:26:09 +01:00
Mihai Fufezan
0d2d2b20d4 Makefile: properly handle dbus & systemd services 2023-09-10 17:26:09 +01:00
Jan Beich
676571b2c0
build: drop unused dependencies after 022469529c (#84) 2023-09-08 23:38:55 +01:00
Vaxry
022469529c
Woo! Full rewrite, v1.0 release. (#78) 2023-09-06 20:36:48 +02:00
Jacob Birkett
57a3a41ba6
flake: protocols input follows systems (#76) 2023-08-12 14:52:50 +03:00
Jacob Birkett
9257b0c9b9
Nix: Some corrections for overlays (#75)
* flake: use legacyPackages for formatter

* nix: separate xdph and share-picker overlays

* flake: make systems overrideable

* flake: inherit packages from overlaid nixpkgs
2023-08-10 00:22:51 +03:00
vaxerski
42747d267a version: bump to 0.5.0 2023-08-03 19:08:45 +02:00
Nicola Guerrera
af539f4e4d
screencast: correct array size (#72) 2023-07-23 15:48:06 +02:00
vaxerski
43300c11a9 toplevelexport: remove _done call from _buffer
requires recent hyprland commit to work
2023-07-20 12:41:50 +02:00
vaxerski
7276435c46 pw: guard output in transform checks 2023-07-20 12:01:23 +02:00
vaxerski
4d9ff0c177 version: bump to 0.4.0 2023-05-29 20:42:44 +02:00
vaxerski
ca077cc05c screencast: restore window share by class 2023-05-25 16:54:02 +02:00
Mihai Fufezan
4f0c5756c9
flake.lock: update nixpkgs 2023-05-16 22:29:50 +03:00
Jacob Birkett
2bdadd2d37 flake: overlays: xdph: remove stdenv override 2023-05-02 18:49:04 +03:00
Jacob Birkett
bc7d9c7366 flake: fix usage of prev in overlays
flake: use overlays in pkgsFor
2023-05-02 18:49:04 +03:00
vaxerski
c0e2339555 screencast: send transform to pw 2023-04-25 17:16:24 +01:00
Lucas Alber
f9f08c802e
Fix build after 7d3da7e968 (#54) 2023-04-24 15:04:59 +01:00
Pascal J
7d3da7e968
fix implicit function declaration (#53)
Signed-off-by: Pascal Jäger <pascal.jaeger@leimstift.de>
2023-04-23 19:37:42 +01:00
vaxerski
bf035bf3d5 pw: set type for all planes 2023-04-14 17:29:17 +01:00
vaxerski
a7b7880172 screencast: send damage via pw 2023-04-14 17:27:28 +01:00
vaxerski
7fc2e78581 screencast: use spa-pod-dynamic 2023-04-14 17:22:16 +01:00
vaxerski
78dee83d77 screencast: add fallback for linear modifier 2023-04-14 17:14:41 +01:00
vaxerski
2366b4d415 internal: remove metadata cursor mode 2023-04-13 21:14:13 +01:00
Mihai Fufezan
04f579377a
nix: add libuuid 2023-04-10 14:51:52 +03:00
Jan Beich
e33206673d
globalshortcuts: fix -Wint-conversion as error with Clang 15 (#42)
src/globalshortcuts/global_shortcuts.c:40:44: error: incompatible pointer to integer conversion initializing 'uint64_t' (aka 'unsigned long') with an expression of type 'void *' [-Wint-conversion]
    SD_BUS_SIGNAL("Activated", "osta{sv}", NULL),
                                           ^~~~
src/globalshortcuts/global_shortcuts.c:41:46: error: incompatible pointer to integer conversion initializing 'uint64_t' (aka 'unsigned long') with an expression of type 'void *' [-Wint-conversion]
    SD_BUS_SIGNAL("Deactivated", "osta{sv}", NULL),
                                             ^~~~
src/globalshortcuts/global_shortcuts.c:42:53: error: incompatible pointer to integer conversion initializing 'uint64_t' (aka 'unsigned long') with an expression of type 'void *' [-Wint-conversion]
    SD_BUS_SIGNAL("ShortcutsChanged", "oa(sa{sv})", NULL),
                                                    ^~~~
/usr/include/sys/_null.h:34:14: note: expanded from macro 'NULL'
 #define NULL    ((void *)0)
                 ^~~~~~~~~~~
/usr/include/basu/sd-bus-vtable.h:113:26: note: expanded from macro 'SD_BUS_SIGNAL'
                .flags = _flags,                                        \
                         ^~~~~~
2023-04-10 12:27:59 +01:00
vaxerski
0527deefe8 internal: bring back metadata cursor support 2023-04-10 12:27:18 +01:00
vaxerski
198d019583 ver: bump to 0.2.1 2023-04-10 00:04:09 +01:00
vaxerski
7ca51f935e screencast: make restore persistent 2023-04-10 00:03:24 +01:00
vaxerski
8924e7adb3 versioning: fixup ver in meson 2023-04-09 23:32:24 +01:00
vaxerski
ab8d54f6f6 feat: add session restore 2023-04-09 23:30:19 +01:00
Mihai Fufezan
e48165c563
flake.lock: update hyprland-protocols 2023-04-09 22:01:22 +03:00
Mihai Fufezan
03f252d927
meson: require hl-protocols 0.2 2023-04-09 21:44:51 +03:00
Vaxry
510257c0e9
[WIP] Global Shortcuts impl (#35)
Implements the `GlobalShortcuts` portal via `hyprland-global-shortcuts-v1`

---------

Co-authored-by: Mihai Fufezan <fufexan@protonmail.com>
2023-04-09 13:47:05 +01:00
vaxerski
803c00db11 screencast: crudely allow metadata and ignore it 2023-04-05 22:23:59 +01:00
nexec
e1f145d15d
systemd: switch slice for xdph (#34)
Consider xdg-desktop-portal-hyprland as essential for user's
graphic session

See https://systemd.io/DESKTOP_ENVIRONMENTS/
2023-03-19 19:38:56 +00:00
vaxerski
85f49f4d6c fix share picker region H coord 2023-03-16 15:21:55 +00:00
vaxerski
74128d2a97 minor fix for region sharing 2023-03-16 15:11:27 +00:00
Philipp Mildenberger
2fa7e345a4
nix: adds grim and slurp to PATH to support screenshots (#25) 2023-02-11 17:59:30 +02:00