From c1fca69de5cf23e85cff89beb854d8a575580456 Mon Sep 17 00:00:00 2001 From: Larry Dewey Date: Tue, 18 Nov 2025 09:20:08 -0600 Subject: [PATCH] hypr: Adding xdph token default of true (#3404) * hypr: Adding xdph token default of true The `allow_token_by_default` configuration option under `screencopy` within `xdg-dektop-portal-hyprland` (xdph) enables the "Allow restore token" checkbox by default in the screen sharing section dialog. Enabling it to `true` ensures the checkbox is pre-ticked, which can help avoid repeated selection prompts during screen sharing sessions, such as those reported with Slack, Google Meet, Zoom, etc. on Hyprland. Signed-off-by: Larry Dewey * Enable the XDPH config on existing installations --------- Signed-off-by: Larry Dewey Co-authored-by: David Heinemeier Hansson --- config/hypr/xdph.conf | 3 +++ migrations/1763478660.sh | 4 ++++ 2 files changed, 7 insertions(+) create mode 100644 config/hypr/xdph.conf create mode 100644 migrations/1763478660.sh diff --git a/config/hypr/xdph.conf b/config/hypr/xdph.conf new file mode 100644 index 00000000..176b0c9e --- /dev/null +++ b/config/hypr/xdph.conf @@ -0,0 +1,3 @@ +screencopy { + allow_token_by_default = true +} diff --git a/migrations/1763478660.sh b/migrations/1763478660.sh new file mode 100644 index 00000000..f7eec943 --- /dev/null +++ b/migrations/1763478660.sh @@ -0,0 +1,4 @@ +echo "Configure XDPH config for screensharing to remember token selection" + +cp $OMARCHY_PATH/config/hypr/xdph.conf ~/.config/hypr/ +systemctl --user restart xdg-desktop-portal-hyprland