sway: fix screen sharing
This commit is contained in:
parent
d5457351d1
commit
e7b4daa928
4 changed files with 16 additions and 1 deletions
|
@ -50,5 +50,6 @@
|
||||||
},
|
},
|
||||||
"[scss]": {
|
"[scss]": {
|
||||||
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
||||||
}
|
},
|
||||||
|
"redhat.telemetry.enabled": false
|
||||||
}
|
}
|
|
@ -327,3 +327,8 @@ exec_always {
|
||||||
gsettings set $gnome-schema cursor-theme 'Adwaita'
|
gsettings set $gnome-schema cursor-theme 'Adwaita'
|
||||||
gsettings set $gnome-schema font-name '$font_family $gtk_font_size'
|
gsettings set $gnome-schema font-name '$font_family $gtk_font_size'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
# xdg-desktop-portal
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
exec /home/loherj/.local/bin/fix_xdg_desktop_portal_sharing.sh
|
||||||
|
|
8
.local/bin/fix_xdg_desktop_portal_sharing.sh
Executable file
8
.local/bin/fix_xdg_desktop_portal_sharing.sh
Executable file
|
@ -0,0 +1,8 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Import the WAYLAND_DISPLAY env var from sway into the systemd user session.
|
||||||
|
dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=sway
|
||||||
|
|
||||||
|
# Stop any services that are running, so that they receive the new env var when they restart.
|
||||||
|
systemctl --user stop pipewire pipewire-media-session xdg-desktop-portal xdg-desktop-portal-wlr
|
||||||
|
systemctl --user start pipewire-media-session
|
1
.profile
1
.profile
|
@ -1,3 +1,4 @@
|
||||||
|
export XDG_CURRENT_DESKTOP=sway
|
||||||
export MOZ_ENABLE_WAYLAND=1
|
export MOZ_ENABLE_WAYLAND=1
|
||||||
export CLUTTER_BACKEND=wayland
|
export CLUTTER_BACKEND=wayland
|
||||||
export QT_QPA_PLATFORM=wayland-egl
|
export QT_QPA_PLATFORM=wayland-egl
|
||||||
|
|
Loading…
Reference in a new issue