mirror of
https://github.com/basecamp/omarchy.git
synced 2025-07-27 12:19:24 +00:00
Add simple screen recordings (#235)
* Add simple screen recording tool * Need slurp too
This commit is contained in:

committed by
GitHub

parent
3b0fd13be1
commit
2e874adb50
14
bin/omarchy-screenrecord
Executable file
14
bin/omarchy-screenrecord
Executable file
@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
|
||||
if pgrep -x wl-screenrec >/dev/null; then
|
||||
pkill -x wl-screenrec
|
||||
notify-send "Screen recording saved to ~/Videos" -t 2000
|
||||
else
|
||||
region=$(slurp) || exit 1
|
||||
notify-send "Screen recording starting..." -t 1000
|
||||
sleep 1
|
||||
wl-screenrec \
|
||||
-g "$region" \
|
||||
-f "$HOME/Videos/screen-recording-$(date +'%Y-%m-%d_%H-%M-%S').mp4" \
|
||||
--ffmpeg-encoder-options="-c:v libx264 -crf 23 -preset medium -movflags +faststart"
|
||||
fi
|
Reference in New Issue
Block a user