From 20c3ab87b45ecce2bd91dacaba4c30e2f7388906 Mon Sep 17 00:00:00 2001
From: Nydragon <contact@ccnlc.eu>
Date: Thu, 11 Jul 2024 01:19:20 +0200
Subject: [PATCH] feat: add a swappy screenshot shortcut

---
 home/hyprland/default.nix | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/home/hyprland/default.nix b/home/hyprland/default.nix
index 7a0c2e3..6c8b453 100644
--- a/home/hyprland/default.nix
+++ b/home/hyprland/default.nix
@@ -151,8 +151,7 @@ lib.mkIf osConfig.programs.hyprland.enable {
           "$mod, F, fullscreen, 0"
           "$mod, N, exec, ${pkgs.swaynotificationcenter}/bin/swaync-client -t"
           "$mod, U, exec, ${pkgs.hyprpicker}/bin/hyprpicker -r -z & ${pkgs.hyprshot}/bin/hyprshot -o ~/Pictures/screenshots -m region"
-          "$mod CTRL, U, exec, ${pkgs.hyprpicker}/bin/hyprpicker -r -z & ${pkgs.hyprshot}/bin/hyprshot -o ~/Pictures/screenshots -m window"
-          "$mod SHIFT, U, exec, ${pkgs.hyprshot}/bin/hyprshot -o ~/Pictures/screenshots -m active -m output"
+          "$mod SHIFT, U, exec, ${pkgs.hyprpicker}/bin/hyprpicker -r -z & ${pkgs.hyprshot}/bin/hyprshot --raw -m region | ${pkgs.swappy}/bin/swappy -f -"
 
           #: Brightness and Media {{{
           ",XF86MonBrightnessUp, exec, ${pkgs.brightnessctl}/bin/brightnessctl s +10%"