Skip to content

Usage with Sway

Scott Moreau edited this page Nov 23, 2019 · 1 revision

Using wf-recorder with Sway

In your Sway config file, add those key bindings to start and stop wf-recorder :

bindsym Ctrl+Print exec wf-recorder -f ~/recording_$(date +"%Y-%m-%d_%H:%M:%S.mp4")
bindsym Ctrl+Shift+Print exec wf-recorder -g "$$(slurp)" -f ~/recording_$(date +"%Y-%m-%d_%H:%M:%S.mp4")
bindsym Ctrl+Shift+BackSpace exec killall -s SIGINT wf-recorder
  • Ctrl+Print will start recording the whole screen
  • Ctrl+Shift+Print will let you select an area to record and start recording
  • Ctrl+Shift+BackSpace will stop all recordings

There is also a helper script that can be found here.

Clone this wiki locally