#How would i get per-application or per-workspace capture on sway?

106 messages · Page 1 of 1 (latest)

oblique linden
#

I looked around but couldnt find anything

#

pls ping reply btw

neon peak
oblique linden
#

my baddd

#

obs mainly just for recording

neon peak
#

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

oblique linden
#

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

oblique linden
#

and screensharing if posisble

sharp sedge
oblique linden
#

but is there no way to choose per tab?

#

or well per applicaiton

sharp sedge
#

wait thats for xorg

#

hold on please

oblique linden
sharp sedge
#

for screensharing uuuhhhhhhhhhh

oblique linden
#

yeahh my issue is screensharing and recording xd

sharp sedge
#

@oblique linden ok i think i got it

#

do you know where your xdg-desktop-portal-wlr config is

oblique linden
#

i think

sharp sedge
#

its here btw

#

one of these places

#

if it exists

oblique linden
#

gimme a sec ill check it

#

my xdg thing is cooked i cant find my wlr config lol

sharp sedge
oblique linden
#

doesnt exist

sharp sedge
#

cool then

#

make the directory ~/.config/xdg-desktop-portal-wlr/

oblique linden
#

don

sharp sedge
#

and then uuhmm

#

what app launcher do you use

#

wmenu?

oblique linden
#

rofi

sharp sedge
#

rofi ok

#

im looking im looking

oblique linden
#

dw its fine

sharp sedge
#

make ~/.config/xdg-desktop-portal-wlr/config

#

it has something to do with chooser_cmd but im not bothering to figure out the syntax

oblique linden
#

do you have the docs page

sharp sedge
#

man xdg-desktop-portal-wlr

oblique linden
#

ioh

sharp sedge
#
chooser_type=simple
chooser_cmd=rofi -dmenu -p 'Select a source to share: %p'
oblique linden
sharp sedge
#

fun stuff fun stuff

oblique linden
#

do i want man-db or mandoc

#

mandoc right

sharp sedge
#

idk

#

i use mandoc though

oblique linden
#

ye im gonna use mandoc

sharp sedge
#

maybe try chooser_cmd=slurp -f 'Monitor: %o' -or

#

see what that does

oblique linden
#

is xdg desktop portal wlr even maintained?

sharp sedge
sharp sedge
#

its actually pretty new so its still alive

oblique linden
#

the rofi thing does work btw

#

its just based on a monitor

#

which i only got 1... lol

sharp sedge
#

ok

oblique linden
#

the issu now is getting specific iwndows lol

#

maybe i should just switch back to hyprland or smth

sharp sedge
#

real

#

i actually wanted to do this for a while but i never figured it out

#

i might as well try now tho

sharp sedge
oblique linden
sharp sedge
#

oh yeah thats true

oblique linden
sharp sedge
#

oh ok

oblique linden
sharp sedge
#

well im not using sway so

#

i did not know you could nest sway tho

oblique linden
#

what do you use

sharp sedge
#

river

#

its like sway but weird

oblique linden
#

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)...

sharp sedge
#

weirdly enough my wlroots isnt even reading my config

oblique linden
#

is xdg-deskop-portal supposed to be started on boot by my config or by systemd

sharp sedge
#

i know xdpw is

oblique linden
#

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

oblique linden
#

assuming thtey are gonna follow wlroots

sharp sedge
sharp sedge
#

(the next update to river makes it lose any ability to manage windows)

oblique linden
#

ah

#

well that commit just sent should add the partial protocol support for the toplevel capture thing from desktopwlr thingy

sharp sedge
#

oh ok