From 06a6f3ed28dceede5ae5fced1e516c92e952c170 Mon Sep 17 00:00:00 2001 From: Tony Date: Mon, 30 Sep 2024 08:08:27 -0700 Subject: [PATCH] Add flameshot as a screenshot tool option (#787) * Add flameshot as a screenshot tool option * Add workaround for flameshot clipboard warp * higher emphasis on flameshot being broken --- pages/FAQ/_index.md | 31 +++++++++++++++++++++++++++++-- 1 file changed, 29 insertions(+), 2 deletions(-) diff --git a/pages/FAQ/_index.md b/pages/FAQ/_index.md index ec40eca..d4cb6ad 100644 --- a/pages/FAQ/_index.md +++ b/pages/FAQ/_index.md @@ -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 @@ -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