mirror of
https://github.com/basecamp/omarchy.git
synced 2025-07-27 12:19:24 +00:00
Add full screen recording as an option
This commit is contained in:
@ -3,6 +3,13 @@
|
|||||||
if pgrep -x wl-screenrec >/dev/null; then
|
if pgrep -x wl-screenrec >/dev/null; then
|
||||||
pkill -x wl-screenrec
|
pkill -x wl-screenrec
|
||||||
notify-send "Screen recording saved to ~/Videos" -t 2000
|
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
|
else
|
||||||
region=$(slurp) || exit 1
|
region=$(slurp) || exit 1
|
||||||
notify-send "Screen recording starting..." -t 1000
|
notify-send "Screen recording starting..." -t 1000
|
||||||
|
@ -30,6 +30,7 @@ bind = CTRL, PRINT, exec, omarchy-screenshot output
|
|||||||
|
|
||||||
# Screenshots
|
# Screenshots
|
||||||
bind = ALT, PRINT, exec, omarchy-screenrecord
|
bind = ALT, PRINT, exec, omarchy-screenrecord
|
||||||
|
bind = CTRL ALT, PRINT, exec, omarchy-screenrecord output
|
||||||
|
|
||||||
# Color picker
|
# Color picker
|
||||||
bind = SUPER, PRINT, exec, hyprpicker -a
|
bind = SUPER, PRINT, exec, hyprpicker -a
|
||||||
|
Reference in New Issue
Block a user