From 4427c0bb284ee479f9b4e5209c6078ab7e482364 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sat, 19 Jul 2025 16:58:22 -0500 Subject: [PATCH] Add full screen recording as an option --- bin/omarchy-screenrecord | 7 +++++++ default/hypr/bindings/utilities.conf | 1 + 2 files changed, 8 insertions(+) diff --git a/bin/omarchy-screenrecord b/bin/omarchy-screenrecord index 8d2cab7..e29af19 100755 --- a/bin/omarchy-screenrecord +++ b/bin/omarchy-screenrecord @@ -3,6 +3,13 @@ if pgrep -x wl-screenrec >/dev/null; then pkill -x wl-screenrec notify-send "Screen recording saved to ~/Videos" -t 2000 +elif [[ $1 == "output" ]]; then + notify-send "Screen recording starting..." -t 1000 + sleep 1 + wl-screenrec \ + -o "" \ + -f "$HOME/Videos/screenrecording-$(date +'%Y-%m-%d_%H-%M-%S').mp4" \ + --ffmpeg-encoder-options="-c:v libx264 -crf 23 -preset medium -movflags +faststart" else region=$(slurp) || exit 1 notify-send "Screen recording starting..." -t 1000 diff --git a/default/hypr/bindings/utilities.conf b/default/hypr/bindings/utilities.conf index 103fdbe..7f28201 100644 --- a/default/hypr/bindings/utilities.conf +++ b/default/hypr/bindings/utilities.conf @@ -30,6 +30,7 @@ bind = CTRL, PRINT, exec, omarchy-screenshot output # Screenshots bind = ALT, PRINT, exec, omarchy-screenrecord +bind = CTRL ALT, PRINT, exec, omarchy-screenrecord output # Color picker bind = SUPER, PRINT, exec, hyprpicker -a