feat: river: fixed wrong screen capture via portals.

This commit is contained in:
Andrey Parhomenko 2024-07-14 01:41:31 +05:00
parent ba639b3834
commit 563c3bec58

View file

@ -44,8 +44,9 @@ riverctl map -repeat normal Super H send-layout-cmd rivertile "main-ratio -0.05"
riverctl map -repeat normal Super L send-layout-cmd rivertile "main-ratio +0.05"
# Increment/decrement the main count of rivertile(1)
riverctl map normal Super I send-layout-cmd rivertile "main-count +1"
riverctl map normal Super D send-layout-cmd rivertile "main-count -1"
riverctl map -repeat normal Super I send-layout-cmd rivertile "main-count +1"
riverctl map -repeat normal Super+Shift I send-layout-cmd rivertile "main-count 1"
riverctl map -repeat normal Super D send-layout-cmd rivertile "main-count -1"
# Super+Alt+{H,J,K,L} to move views
riverctl map -repeat normal Super+Alt H move left 100
@ -191,3 +192,15 @@ if test -z "$RIVER_RELOAD" ; then
eval $XTERMINAL &
fi
export QT_QPA_PLATFORM=wayland
#export QT_QPA_PLATFORM=xcb
export XDG_CURRENT_DESKTOP=sway
dbus-update-activation-environment --systemd \
WAYLAND_DISPLAY \
XDG_CURRENT_DESKTOP=river
XWIRE_DAEMON=wireplumber
systemctl --user stop pipewire "$XWIRE_DAEMON" xdg-desktop-portal xdg-desktop-portal-wlr
systemctl --user start "$XWIRE_DAEMON"