SolDoesTech / HyprV4

469 stars 133 forks source link

Create a script to record screen and audio #12

Open ddiaz2380 opened 1 year ago

ddiaz2380 commented 1 year ago

It would be great to have a script that takes screenshots and audio. I have tried to do it with wf-recorder but I have many codec errors and others...

Virgula0 commented 1 year ago

You can press yourBindCommand + s to take a screenshot you can also add a shortcut in your hyprland.conf to take a full screenshot:

add this to your: ~/.config/hypr/hyprland.conf:

bind = $mainMod SHIFT, S, exec, grim - | swappy -f - 

yourBindCommand + SHIFT + s will do the job.

You can do the same thing with an utility which can record audio. If you have chosen pipewire as audio driver during installation you can think to use something like this: https://docs.pipewire.org/page_man_pw_cat_1.html