Benjamin Yule Bädorf
56ea689de6
This used to live in the old pub-solar/os repository in the `momo/main` branch. This commit changes that so this repository has all code from terraform to nix.
12 lines
447 B
Nix
12 lines
447 B
Nix
self:
|
|
with self; ''
|
|
mkdir -p "$HOME/Videos/Screenrecordings"
|
|
GEOMETRY="$(slurp -d -b \#ffffff11)"
|
|
RESOLUTION="$(echo $GEOMETRY | awk '{print $2}')"
|
|
FILE_LOCATION="$HOME/Videos/Screenrecordings/$(${coreutils}/bin/date +%Y%m%d_%Hh%Mm%Ss)_$RESOLUTION.mp4"
|
|
echo "Recording $GEOMETRY into $FILE_LOCATION"
|
|
${alacritty}/bin/alacritty \
|
|
--class screen-recorder \
|
|
-e ${wf-recorder}/bin/wf-recorder -g "$GEOMETRY" -f "$FILE_LOCATION"
|
|
''
|