项目作者: it-is-wednesday

项目描述 :
A screen recorder for Wayland-based desktops, based on wf-recorder
高级语言: Python
项目地址: git://github.com/it-is-wednesday/cute-wayland-recorder.git
创建时间: 2020-10-24T09:08:26Z
项目社区:https://github.com/it-is-wednesday/cute-wayland-recorder

开源协议:

下载


Cute Sway Recorder

Screen recorder for wlroots-based compositors like Sway and Hyperland. For other compositors, it falls back to using wlr-randr to get outputs.

More specifically, this project is merely a graphical Qt wrapper for wf-recorder, leveraging slurp for selecting screen regions.


Installation

Do note that you will need to have wf-recorder and slurp accessible via $PATH =)

Using pip

  1. pip install cute-sway-recorder

You might prefer using pipx:

  1. pipx install cute-sway-recorder

Arch Linux

For Arch Linux users, you can install the cute-sway-recorder-git package from the AUR using an AUR helper like paru:

  1. paru -S cute-sway-recorder-git

Nix

  1. In your flake.nix, add the following input:
  1. inputs = {
  2. cute-sway-recorder.url = "github:it-is-wednesday/cute-sway-recorder";
  3. };
  1. Add the package to your Home Manager configuration:
  1. { inputs, pkgs, ... }:
  2. {
  3. home.packages = [ inputs.cute-sway-recorder.packages.${pkgs.system}.default ];
  4. }

Configuration

Default configuration is stored in the file $HOME/.config/cute-sway-recorder/config.ini
in ini format.

Here is an example configuration which saves recordings as gifs:

  1. [wf-recorder-defaults]
  2. # Default file save location (location must exist)
  3. # Type: string, default: "~/Videos/cute-{id}.mp4"
  4. file_dest = ~/Gifs/gif.gif
  5. # Whether to include audio in recording
  6. # Type: bool, default: off
  7. include_audio = off
  8. # Delay before recording starts
  9. # Type: integer, default: 0
  10. delay = 0
  11. # Additional flags to pass to wf-recorder
  12. # Type: string, default: ""
  13. flags = -c gif -r 10

Contributing

PRs are welcome!

  1. After forking this repository, make sure to install the project dependencies locally:
  1. poetry install

This will create a virtual environment and install all the required dependencies.

  1. Make sure cute-sway-recorder runs locally:
  1. poetry run python -m cute_sway_recorder.main

Alternatives

  • green-recorder is a recent fork of the project abandoned in 2019. It doesn’t use wf-recorder under
    the hood. It currently has more features than this project; you might want to try it first, and come back here if it gives you a hard time.