-
-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
grimblast: screen recording #5
Comments
What should we record with? I've had mixed results with |
What about OBS headless? |
Didn't even know that was a thing, but sure sounds great. |
any progress on this? |
Nope. I figured we can't really use OBS, as it's inflexible with |
Hello bumping this issue, What should be better wf-recorder or wl-screenrec wl-screenrec looks promising. What can be the caveats on both. |
Based on the benchmark, |
I tried |
Here's a little script I wrote which uses #!/bin/bash
# If wl-screenrec is already running, stop recording.
if pgrep -x "wl-screenrec" > /dev/null; then
killall -s 2 wl-screenrec
exit 0
fi
FILE="$(xdg-user-dir VIDEOS)/$(date +'screencast_%Y%m%d%H%M%S.mp4')"
dunstify "Starting screencast" --timeout=1000
wl-screenrec -g "$(slurp)" --filename $FILE &&
ffmpeg -i $FILE -ss 00:00:00 -vframes 1 /tmp/screenrec_thumbnail.png -y &&
printf -v out "`dunstify "Recording saved to $FILE" \
--icon "/tmp/screenrec_thumbnail.png" \
--action="default,Open"`" &&
# If the notification is clicked, reveal the recording in default file explorer.
case "$out" in
"default")
gdbus call --session \
--dest org.freedesktop.FileManager1 \
--object-path /org/freedesktop/FileManager1 \
--method org.freedesktop.FileManager1.ShowItems "['file://$FILE']" ""
;;
esac I also wanted to add a tray icon that appears after starting recording and can be clicked to stop, but I couldn't find any good program to create tray icon. If anyone knows any, let me know! |
Seems that the easiest way to get a tray indicator is with yad |
yad doesn't work natively on wayland v1cont/yad#216 And even if I use |
Screen recording with
xdg-desktop-portal-wlr
would be cool cuz Kooha sucks on Hyprland lolThe text was updated successfully, but these errors were encountered: