Fedora Flameshot
We use swappy
We don’t use flameshot because it doesn’t support wayland well.
# install flameshot
flatpak install flathub org.flameshot.Flameshot
sudo dnf install -y grim slurp xdg-desktop-portal-wlr
flatpak run org.flameshot.Flameshot
# https://flameshot.org/docs/guide/wayland-help/#gnome-shortcut-does-not-trigger-flameshot
# install script
sudo dnf install -y script
# in settings remove default prt sc and
# set this as the customize shortcut of the key prtsc
script --command "flameshot gui" /dev/null
start flameshot, open configuration, in General check Use grim to capture screenshots
config flameshot for niri
add these to ~/.config/niri/config.kdl
Print {
spawn "script" "--command" "XDG_CURRENT_DESKTOP=sway flameshot gui" "/dev/null";
}
"XDG_CURRENT_DESKTOP=sway flameshot gui"
is important for script to receive correct number of arguments- If flameshot window already opened, press print will feel nothing changed
- If press print in a fullscreen window, the flameshot window might created beside current window
Last updated on