#How would i get per-application or per-workspace capture on sway?
106 messages · Page 1 of 1 (latest)
The answer depends on what you’re capturing for (recording, streaming, screenshots).
ohh ye i had to say obs lol
my baddd
obs mainly just for recording
Install sudo pacman -S obs-studio pipewire pipewire-pulse wireplumber xdg-desktop-portal xdg-desktop-portal-wlr
After that start them systemctl --user enable --now pipewire pipewire-pulse wireplumber xdg-desktop-portal xdg-desktop-portal-wlr and check systemctl --user status xdg-desktop-portal-wlr
capture works
it just doenst give a selector
the selector turned everything a bite whitesy and i had to click and then it captures the full monitor
and screensharing if posisble
yeah thats slurp you can click and drag too
https://github.com/naelstrof/maim seems to do that
wait thats for xorg
hold on please
so on this page it would be for screenshraing etc?
that only covers screenshots
for screensharing uuuhhhhhhhhhh
yeahh my issue is screensharing and recording xd
@oblique linden ok i think i got it
do you know where your xdg-desktop-portal-wlr config is
i think
could you try to send it then
its here btw
one of these places
if it exists
one liner to search:
ls ${XDG_CONFIG_HOME:-$HOME/.config}/xdg-desktop-portal-wlr /etc/xdg/xdg-desktop-portal-wlr
doesnt exist
don
rofi
dw its fine
make ~/.config/xdg-desktop-portal-wlr/config
it has something to do with chooser_cmd but im not bothering to figure out the syntax
do you have the docs page
man xdg-desktop-portal-wlr
ioh
chooser_type=simple
chooser_cmd=rofi -dmenu -p 'Select a source to share: %p'
ah
fun stuff fun stuff
ye im gonna use mandoc
may ask what this is uspposed to do
is xdg desktop portal wlr even maintained?
it makes slurp choose a window i think
its actually pretty new so its still alive
the rofi thing does work btw
its just based on a monitor
which i only got 1... lol
ok
the issu now is getting specific iwndows lol
maybe i should just switch back to hyprland or smth
real
i actually wanted to do this for a while but i never figured it out
i might as well try now tho
replace simple with dmenu maybe?
it is possible through nested instances of sway
oh yeah thats true
i did thats why its showing my monitor now
oh ok
which... is completely terrible
what do you use
this is a interesting message btw
smth weird i just noticed
Dec 11 16:41:51 meowarch systemd[465]: Starting Portal service (wlroots implementation)...
Dec 11 16:41:51 meowarch xdg-desktop-portal-wlr[6765]: 2025/12/11 16:41:51 [ERROR] - pipewire: couldn't connect to context
Dec 11 16:41:51 meowarch xdg-desktop-portal-wlr[6765]: 2025/12/11 16:41:51 [ERROR] - xdpw: failed to initialize screencast
Dec 11 16:41:51 meowarch xdg-desktop-portal-wlr[6765]: 'impl->enter_count > 0' failed at ../pipewire/spa/plugins/support/loop.c:592 loop_leave()
Dec 11 16:41:51 meowarch systemd[465]: xdg-desktop-portal-wlr.service: Main process exited, code=exited, status=1/FAILURE
Dec 11 16:41:51 meowarch systemd[465]: xdg-desktop-portal-wlr.service: Failed with result 'exit-code'.
Dec 11 16:41:51 meowarch systemd[465]: Failed to start Portal service (wlroots implementation).
Dec 11 16:41:52 meowarch systemd[465]: xdg-desktop-portal-wlr.service: Scheduled restart job, restart counter is at 2.
Dec 11 16:41:52 meowarch systemd[465]: Starting Portal service (wlroots implementation)...
weirdly enough my wlroots isnt even reading my config
is xdg-deskop-portal supposed to be started on boot by my config or by systemd
its started by dbus i think
i know xdpw is
i had fucked up my entire xdg deskop portal entirley lol
as wlr portal should support it but it just doesnt for whatever reason for me
ok so:
in the next sway update it will implement the proper protocol for xdg-desktop-portal-wlr
river will get per-applicaiton soon too
assuming thtey are gonna follow wlroots
https://gitlab.freedesktop.org/wlroots/wlroots/-/commit/f4327f52cf18fea41c08e054012b5a85967b18b1
this is the ocmmit for wlroots to implement the toplevel protoocol to allow the new screensharing feature that hopefully will come soon i guess
no actually its going to lose per application
(the next update to river makes it lose any ability to manage windows)
ah
well that commit just sent should add the partial protocol support for the toplevel capture thing from desktopwlr thingy
oh ok