Find a file
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
.builds builds: add gbm and libdrm to the build environment 2022-04-10 13:38:01 +02:00
.github/workflows nix: add files 2022-12-04 01:45:36 +02:00
contrib systemd: switch slice for xdph (#34) 2023-03-19 19:38:56 +00:00
hyprland-share-picker fix share picker region H coord 2023-03-16 15:21:55 +00:00
include feat: add session restore 2023-04-09 23:30:19 +01:00
nix nix: adds grim and slurp to PATH to support screenshots (#25) 2023-02-11 17:59:30 +02:00
protocols [WIP] Global Shortcuts impl (#35) 2023-04-09 13:47:05 +01:00
src globalshortcuts: fix -Wint-conversion as error with Clang 15 (#42) 2023-04-10 12:27:59 +01:00
subprojects meson: require hl-protocols 0.2 2023-04-09 21:44:51 +03:00
.editorconfig Add yml exception to editorconfig 2020-03-13 21:01:32 +01:00
.gitignore Implement hyprland-share-picker 2022-12-03 21:27:49 +00:00
.gitmodules nix & meson: add hyprland-protocols through pkgconfig (#14) 2023-01-08 14:00:36 +01:00
CONTRIBUTING.md Fix link to trigger-screen-shot.py 2021-03-04 20:42:40 +01:00
flake.lock flake.lock: update hyprland-protocols 2023-04-09 22:01:22 +03:00
flake.nix nix & meson: add hyprland-protocols through pkgconfig (#14) 2023-01-08 14:00:36 +01:00
hyprland.portal [WIP] Global Shortcuts impl (#35) 2023-04-09 13:47:05 +01:00
LICENSE Initial commit 2018-12-12 11:46:19 +01:00
meson.build ver: bump to 0.2.1 2023-04-10 00:04:09 +01:00
meson_options.txt Implement hyprland-share-picker 2022-12-03 21:27:49 +00:00
org.freedesktop.impl.portal.desktop.hyprland.service.in Implement hyprland-share-picker 2022-12-03 21:27:49 +00:00
README.md update readme 2022-12-10 20:31:30 +00:00

xdg-desktop-portal-hyprland

xdg-desktop-portal backend for hyprland

What and why?

Due to reasons explained in hyprland-protocols, we have a separate desktop portal impl for Hyprland.

Although -wlr does work with Hyprland, -hyprland offers more features.

Additional dependencies

XDPH depends on qt6 and qt6-wayland for the sharing selector. Lack of either will cause screensharing to not work at all.

Building

meson build --prefix=/usr
ninja -C build
cd hyprland-share-picker && make all && cd ..

Installing

From Source

ninja -C build install
sudo cp ./hyprland-share-picker/build/hyprland-share-picker /usr/bin

AUR

yay -S xdg-desktop-portal-hyprland-git

Usage

Although should start automatically, consult the Hyprland wiki in case of issues.

For other wlroots-based compositors

If you are a developer and wish to support features that XDPH provides, make sure to support those protocols:

  • wlr_foreign_toplevel_management_unstable_v1
  • hyprland_toplevel_export_v1 - XDPH uses Rev2 exclusively (_with_toplevel_handle)

License

MIT