djfao
1
I use EndeavourOS with BSPWM and would like to create two shortkeys.
The first key should be able to start and stop a screencast like:
ffmpeg -y -f x11grab -s 1680x1050 -i :0.0 -f alsa -i default video.mp4
I would prefer ctrl + prt sc as a combination.
The second key should spawn and close my webcam live in a terminal like:
mpv av://v4l2:/dev/video0
I would prefer ctrl + insert as a combination.
Any suggestion how to implement in sxhkd?
ctrl+Print
ffmpeg -y -f x11grab -s 1680x1050 -i :0.0 -f alsa -i default video.mp4
ctrl+Insert
mpv av://v4l2:/dev/video0
Do not have bspwm installed, but you can use xev
to find the name of the keys.
1 Like
djfao
3
Nice, ist works well. Small correction to the commands. There is a space before and after the +
ctrl + Print
ffmpeg -y -f x11grab -s 1680x1050 -i :0.0 -f alsa -i default video.mp4
ctrl + Insert
mpv av://v4l2:/dev/video0
When I press a second time ctrl + Print, the recording stops. Nice
system
Closed
4
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.