update screen recording commands

This commit is contained in:
shibao 2022-08-25 15:08:54 -04:00
parent 02edcf2d48
commit d9941f5f9b
3 changed files with 9 additions and 3 deletions

View File

@ -219,7 +219,7 @@ bindsym XF86Search exec $menu
bindsym Ctrl+Shift+p exec ~/scripts/screenshot
# record screen
bindsym Ctrl+Alt+p exec ~/scripts/record-screen
# bindsym Ctrl+Alt+p exec ~/scripts/record-screen
### gaps
gaps inner 25

View File

@ -1,6 +1,6 @@
#!/bin/sh
# Take a screenshot
# record video
dir=~/Downloads/temp
(cd $dir && wf-recorder -g "$(slurp)")
(cd $dir && wf-recorder -g "$(slurp)" --audio --file=$(date +%Y-%m-%d_%H-%m-%s).mp4)
xdg-open $dir

View File

@ -0,0 +1,6 @@
#!/bin/sh
# record video
dir=~/Downloads/temp
(cd $dir && wf-recorder -g "$(slurp)" --file="$(date +%Y-%m-%d_%H-%m-%s).mp4")
xdg-open $dir