From 26448d59d68ad0f3eba8176c618fc6891896ef53 Mon Sep 17 00:00:00 2001 From: tomoron Date: Wed, 16 Apr 2025 16:28:49 +0200 Subject: [PATCH] copy screenshot to clipboard automatically --- homeConfigs/modules/wayland/hyprland.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeConfigs/modules/wayland/hyprland.nix b/homeConfigs/modules/wayland/hyprland.nix index fbbc109..ae7c2f0 100644 --- a/homeConfigs/modules/wayland/hyprland.nix +++ b/homeConfigs/modules/wayland/hyprland.nix @@ -13,7 +13,7 @@ wayland.windowManager.hyprland.settings = { "$mainMod" = "SUPER"; bind = [ - " , Print, exec, grim -t jpeg -g \"$(slurp)\" ~/screenshots/$(date +%Y-%m-%d_%H-%m-%s).jpg" + " , Print, exec, grim -t png -g \"$(slurp)\" /dev/stdout | tee ~/screenshots/$(date +%Y-%m-%d_%H-%m-%s).png | wl-copy -t image/png" "$mainMod, Return, exec, alacritty" "CTRL_ALT, Q, killactive," "SUPER_ALT, Q, exit,"