Add -r flag to slurp

This prevents the user from selecting a custom region, and forces
them to select a full output.
This commit is contained in:
Simon Ser 2021-05-03 09:32:16 +02:00
parent bb13697c01
commit 7f6b4090e0
3 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
[screencast]
output_name=
max_fps=30
chooser_cmd="slurp -f %o -o"
chooser_cmd="slurp -f %o -or"
chooser_type=simple

View File

@ -456,7 +456,7 @@ error_chooser_in:
static struct xdpw_wlr_output *wlr_output_chooser_default(struct wl_list *output_list) {
logprint(DEBUG, "wlroots: output chooser called");
struct xdpw_output_chooser default_chooser[] = {
{XDPW_CHOOSER_SIMPLE, "slurp -f %o -o"},
{XDPW_CHOOSER_SIMPLE, "slurp -f %o -or"},
{XDPW_CHOOSER_DMENU, "wofi -d -n"},
{XDPW_CHOOSER_DMENU, "bemenu"},
};

View File

@ -28,7 +28,7 @@ max_fps=30
exec_before=disable_notifications.sh
exec_after=enable_notifications.sh
chooser_type=simple
chooser_cmd="slurp -f %o -o"
chooser_cmd="slurp -f %o -or"
```
# SCREENCAST OPTIONS