Commit graph

388 commits

Author SHA1 Message Date
Lennox Schneider
a08ecbbf33
screencopy: attempt retry when pw doesn't return buffers (#249)
* portals: fix output screencopy not capturing after error

* portals: limit amount of retries for screencopy

* portals: change max retries count
2024-08-19 14:25:26 +01:00
7f2a77ddf6
CI: update actions
nix/overlays: simplify overlay
2024-07-30 21:59:36 +03:00
0e2f3b9c85
flake.lock: update
nix/overlays: remove pipewire overlay (merged upstream)
2024-07-28 18:36:59 +03:00
5555f467f6
CMake: fmt, require pw>=1.1.82 2024-07-23 20:17:29 +03:00
dec05eba
3b8c78145a
global-shortcuts: fix crash by ignoring duplicate shortcuts (#241)
* global shortcuts: fix crash by ignoring duplicate shortcuts

hyprland_global_shortcuts_manager_v1_register_shortcut will cause an
error if the (app_id, shortcut_id) combination has already been
registered. Ignore shortcuts that have already been registered.

When a shortcut is registered again it should also overwrite the
session for the keybind to make the shortcut work after restarting
an application, otherwise the key can't be used again.

* Show warning if the shortcut has already been registered

* Remove {} around short ifs
2024-07-23 14:01:00 +02:00
663be9cad4 props: bump version to 1.3.3 2024-07-22 13:35:31 +02:00
0bb709491b core: sanitize environment and paths from user data
fixes #242
2024-07-22 13:32:58 +02:00
b9b97e5ba2
nix/overlays: overlay pipewire 1.2.0 2024-07-05 18:47:46 +03:00
bc7131ce67
flake.lock: update 2024-07-05 18:47:25 +03:00
c5b3093871 core: fix compilation with pw >= 1.1.82
fixes #227
2024-07-02 19:45:21 +02:00
c7894aa54f
Nix: don't strip debug symbols 2024-06-17 13:12:54 +03:00
24be4a26f0 props: bump version to 1.3.2 2024-06-13 11:48:34 +02:00
Aqa-Ib
8f1ee9f964
screencopy: clamp the timer to a miminum of 6 milliseconds (#226)
When the timer is less than 6 milliseconds, the screen copy portal would frequently fail to start working.
2024-06-11 22:57:19 +02:00
maltbeverage
72907822c1 Update README.md
Fixed broken URL to wiki.
2024-06-09 10:40:56 +03:00
Yaroslav
91e48d6acd
core: Small fixes (#215)
* fix build warnings

* properly generate wayland protocols on rebuild

* make systemd service installation optional
2024-05-21 12:16:37 +01:00
v3llocet
af7c87a32f
core: fix inShellPath, Permission denied (#213) 2024-05-15 16:54:17 +01:00
1f228ba2f1 screencopy: add a small time buffer for next queue frame
ref #120
2024-05-02 16:08:52 +01:00
ccabd97be3 config: add screencopy:max_fps 2024-05-02 16:05:56 +01:00
12af841341 screencopy: fixup timing issues with frame re-scheduling
ref #120
2024-05-02 16:01:58 +01:00
Tom Englund
0fe840441e
core: reset screenshot pointer aswell (#209)
ensure the screenshot portal is destructed before the connection is
down, otherwise it segfaults inside sdbus.
2024-04-25 16:47:35 +01:00
9ace6f969c core: use a lock_guard for loopRequestMutex
fixes #207
2024-04-21 19:33:52 +01:00
bb44921534
flake.lock: update 2024-04-15 23:54:44 +03:00
2d2fb54717 picker: use only qt6 2024-03-01 13:27:19 +00:00
Jan Beich
15fd76cb6e screencopy: add missing header for sdbus-cpp 1.5.0
src/portals/Screencopy.cpp:956:9: error: use of undeclared identifier 'close'
        close(PBUFFER->fd[plane]);
        ^
src/portals/Screencopy.cpp:1293:21: error: use of undeclared identifier 'close'
                    close(pBuffer->fd[plane_tmp]);
                    ^
src/portals/Screencopy.cpp:1308:17: error: use of undeclared identifier 'close'
                close(pBuffer->fd[plane]);
                ^
2024-02-26 15:41:56 +02:00
Mihai Fufezan
1b713911c2
flake.lock: update 2024-02-23 15:54:29 +02:00
65fb44ae49 config: add explicit ctors for config variables
fixes #190
2024-02-21 16:29:24 +00:00
rurigk
f62fcea0cb
picker: Save the output name to a proper variable instead of parsing it from the button text (#183) 2024-02-18 23:24:29 +00:00
rurigk
c06fd88b3d
picker: Adds elided buttons for better readability (#176)
It also fixes the region button size and alignment

fixes hyprwm#175
2024-01-29 09:45:09 +00:00
rurigk
f29e046456
picker: Allow dialog resizing (#173)
* picker: Allow dialog resizing

* picker: Smaller dialog and remember size changes

* picker: Save size in temp files
2024-01-28 12:51:53 +00:00
5a59264758 screencast: remove frame callbacks on every stream state change 2024-01-25 01:23:05 +00:00
4fc83e6871 core: avoid using uninitialized ptrs 2024-01-18 15:50:22 +01:00
Pavel Solovev
6a5de92769 cmake: Don't install sdbus-cpp files 2024-01-07 22:30:50 +02:00
Pavel Solovev
24fa87b939 Cmake: Do not use CMAKE_INSTALL_LIBDIR for the systemd service
In some distros CMAKE_INSTALL_LIBDIR is lib64, but systemd services are always in lib (not lib64)
2024-01-07 22:30:50 +02:00
899a70e759 core: don't critically exit if env doesnt have home
fixes #163
2024-01-07 19:14:05 +01:00
Mihai Fufezan
f2a8536d42
README: update build instructions 2024-01-07 18:59:26 +02:00
André Silva
bad305c0bd nix: use same nixpkgs input for hyprlang 2024-01-06 16:39:46 +02:00
57ab6df950 version: bump to 1.3.1 2024-01-05 15:58:42 +01:00
7596dec7be screencopy: set allowToken to true when token is found
ref #123
2024-01-05 15:52:29 +01:00
536e6ed570 screencopy: properly handle stream resume on all frame statuses
fixes #162
2024-01-05 15:46:53 +01:00
Mihai Fufezan
1c802128f6
CMake: fix configure_file replacement 2024-01-04 22:34:27 +02:00
Mihai Fufezan
379b27281e
Meson: fix conf_data 2024-01-04 22:02:50 +02:00
Mihai Fufezan
86a94c3e4e
CMake: include GNUInstallDirs 2024-01-04 20:13:20 +02:00
Mihai Fufezan
df8c154f57
CMake: properly choose pkg-config or submodule sdbus 2024-01-04 19:48:43 +02:00
Mihai Fufezan
c0b606460a
CMake: add back -Wno-address-of-temporary 2024-01-04 19:22:30 +02:00
Mihai Fufezan
21d216ed7f
CMake: get rid of Makefile and Ninja (#154)
* CMake: get rid of Makefile

* Nix: build using CMake
2024-01-04 16:20:11 +01:00
Mihai Fufezan
f46cff1df2
CMake: sdbus through pkg-config, fallback to subproject 2024-01-03 23:43:01 +02:00
bd110073cf version: bump to 1.3.0 2024-01-03 19:58:37 +01:00
Mihai Fufezan
874c6ab200
Fix Nix 2024-01-03 17:24:17 +02:00
a2c37e2d6e core: fix invalid type passed to CConfig 2024-01-03 14:10:31 +01:00
09e97f5940 nix: add hyprlang 2024-01-03 13:19:32 +01:00