mirror of
https://github.com/basecamp/omarchy.git
synced 2026-02-17 15:25:37 +00:00
17 lines
530 B
Bash
17 lines
530 B
Bash
echo "Add custom share portal picker"
|
|
omarchy-pkg-add hyprland-preview-share-picker
|
|
|
|
if ! grep -q "custom_picker_binary" ~/.config/hypr/xdph.conf; then
|
|
sed -i '/screencopy {/a\ custom_picker_binary = hyprland-preview-share-picker' ~/.config/hypr/xdph.conf
|
|
|
|
sleep 1
|
|
killall -e xdg-desktop-portal-hyprland
|
|
killall -e xdg-desktop-portal-wlr
|
|
killall xdg-desktop-portal
|
|
/usr/lib/xdg-desktop-portal-hyprland &
|
|
sleep 2
|
|
/usr/lib/xdg-desktop-portal &
|
|
fi
|
|
|
|
omarchy-refresh-config hyprland-preview-share-picker/config.yaml
|