From a1ec4771740d321df4480e8a7224fa10b59f0569 Mon Sep 17 00:00:00 2001 From: WriterV2 Date: Fri, 3 Apr 2026 22:46:48 +0200 Subject: Update repo with git init directly in home dir --- .config/nushell/screen.nu | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .config/nushell/screen.nu (limited to '.config/nushell/screen.nu') diff --git a/.config/nushell/screen.nu b/.config/nushell/screen.nu new file mode 100644 index 0000000..88c72f5 --- /dev/null +++ b/.config/nushell/screen.nu @@ -0,0 +1,17 @@ +export def shot [] { + maim -s $"($env.SCREENS_PATH)/(date now | format date %s)-screen.png" +} + +export def shoot [--duration: int, --delay: int] { + mut args = [] + + if $duration != null { + $args = $args | append "-t" | append $duration + } + if $delay != null { + $args = $args | append $"-ss" | append $delay + } + + + ffmpeg -video_size 1900x1080 -framerate 25 -f x11grab -i :0.0+0,0 -f alsa -ac 2 -i pulse -acodec aac -vf setpts=N/FR/TB ...$args $"($env.RECORDINGS_PATH)(date now | format date %s)-recording.mp4" +} -- cgit v1.2.3