Skip to content

Commit

Permalink
Add flameshot as a screenshot tool option (#787)
Browse files Browse the repository at this point in the history
* Add flameshot as a screenshot tool option

* Add workaround for flameshot clipboard warp

* higher emphasis on flameshot being broken
  • Loading branch information
tonyd33 authored Sep 30, 2024
1 parent e066cb8 commit 06a6f3e
Showing 1 changed file with 29 additions and 2 deletions.
31 changes: 29 additions & 2 deletions pages/FAQ/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ external monitor through the iGPU.

### How do I screenshot?

Install `grim` and `slurp`.
**Option 1:** Install `grim` and `slurp`.

Use a keybind (or execute) `grim -g "$(slurp)"`, and select a region. A screenshot
will pop into your `~/Pictures/` (You can configure grim and slurp, see their
Expand All @@ -76,7 +76,34 @@ Here's an example binding:
utility, try our own screenshotting utility:
[Grimblast](https://github.com/hyprwm/contrib).

You can also use hyprshot, more info [here](https://github.com/Gustash/Hyprshot).
**Option 2:** You can also use hyprshot, more info [here](https://github.com/Gustash/Hyprshot).


**Option 3:** Install `flameshot`.

Flameshot has many built-in features like allowing you to draw with a paintbrush,
add lines, add shapes, etc.

Flameshot was built originally for X and **it has many issues on Wayland** and users
with HiDPI and multi-monitor setups have had mixed experiences with Flameshot.
The options above are smoother and more native to Wayland. If you still want to
use Flameshot, here are some configuration recommendations by users who've found
workarounds.

```
# noanim isn't necessary but animations with these rules might look bad. use at your own discretion.
windowrulev2 = noanim, class:^(flameshot)$
windowrulev2 = float, class:^(flameshot)$
windowrulev2 = move 0 0, class:^(flameshot)$
windowrulev2 = pin, class:^(flameshot)$
# set this to your leftmost monitor id, otherwise you have to move your cursor to the leftmost monitor
# before executing flameshot
windowrulev2 = monitor 1, class:^(flameshot)$
# ctrl-c to copy from the flameshot gui gives warped images sometimes, but
# setting the env fixes it
bind = ..., exec, XDG_CURRENT_DESKTOP=sway flameshot gui
```

For recording videos, [wf-recorder](https://github.com/ammen99/wf-recorder),
[wl-screenrec](https://github.com/russelltg/wl-screenrec) or
Expand Down

0 comments on commit 06a6f3e

Please sign in to comment.