Skip to content
Discussion options

You must be logged in to vote

Alright it's been a minute but I have some findings/a workaround:

I'm using swaync for notifications and wf-recorder for screen recording. So after reading some docs, I wrote this script and referenced it in my sway/config:

#!/bin/bash
filelocation=/home/fugue/Vídeos/Grabas/oh-snap-`date +%Y-%m-%d_%T`.mp4
recording=$(pgrep wf-recorder -c)
if [ $recording -ge 1 ]; then
  killall -q -s SIGINT wf-recorder
  swaync-client -df 
else
  wf-recorder -g "$(slurp)" -f $filelocation -x yuv420p
  swaync-client -dn 
fi

It just pgreps any instance of wf-recorder and sends the appropriate dnd message to swaync
I haven't set anything up with OBS yet but I might be able to do something similar.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@fuguesoft
Comment options

@fuguesoft
Comment options

Answer selected by fuguesoft
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants