From 0695229e9d68cf48a5c7e3791d938551abf4d6ec Mon Sep 17 00:00:00 2001 From: Ryan Yin Date: Tue, 30 Jan 2024 21:33:13 +0800 Subject: [PATCH] feat: use flameshot for region screenshot --- home/linux/desktop/hyprland/conf/hyprland.conf | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/home/linux/desktop/hyprland/conf/hyprland.conf b/home/linux/desktop/hyprland/conf/hyprland.conf index dd4e40a5..ddf570be 100644 --- a/home/linux/desktop/hyprland/conf/hyprland.conf +++ b/home/linux/desktop/hyprland/conf/hyprland.conf @@ -138,7 +138,9 @@ bind=,XF86AudioStop,exec,mpc stop # -- Screenshots -- bind=,Print,exec,hyprshot -m output -o ~/Pictures/Screenshots -- imv bind=SUPER,Print,exec,hyprshot -m window -o ~/Pictures/Screenshots -- imv -bind=CTRL,Print,exec,hyprshot -m region -o ~/Pictures/Screenshots -- imv +# flameshot do not recognize hyprland as a wayland compositor, so we set it to sway here +bind=CTRL,Print,exec,XDG_CURRENT_DESKTOP=sway flameshot gui --raw -p ~/Pictures/Screenshots | wl-copy +# bind=CTRL,Print,exec,hyprshot -m region -o ~/Pictures/Screenshots -- imv # Focus bind=SUPER,left,movefocus,l