From 03465530fbecd65a8a7d0bf53b716cf40b954dea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Dias?= Date: Fri, 26 Jul 2024 22:30:19 -0300 Subject: [PATCH] :sparkles: use grim and slurp to take screenshots --- hyprland/bindings.conf | 15 +++++++++------ hyprland/rules.conf | 3 +++ 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/hyprland/bindings.conf b/hyprland/bindings.conf index 3557beb..ae3cbba 100644 --- a/hyprland/bindings.conf +++ b/hyprland/bindings.conf @@ -4,11 +4,14 @@ # https://wiki.hyprland.org/Configuring/Keywords and https://wiki.hyprland.org/Configuring/Binds for information on how to configure input -$mainMod = SUPER $terminal = kitty $fileManager = nautilus -$menu = wofi -$screenshotDir = "$HOME/Imagens/Capturas" +$menu = wofi +$mainMod = SUPER +$screenshotFile = "$HOME/Screenshots/screenshot_$(date '%y%m%d_%H-%M-%S').png" +$screenshotFull = grim -c $screenshotDir - | wl-copy +$screenshotSelect = grim -g "$(slurp)" $screenshotDir - | wl-copy + input { kb_layout = br @@ -58,9 +61,9 @@ bind = , code:171, exec, playerctl next # Next media bind = , code:232, exec, brightnessctl s 5%- # Lower monitor brightness bind = , code:233, exec, brightnessctl s +5% # Increase monitor brightness -# Hyprshot -bind = , Print, exec, hyprshot -m region --output-folder $screenshotDir -bind = $mainMod, Print, exec, hyprshot -m output --output-folder $screenshotDir +# Screenshot +bind = , Print, exec, $screenshotSelect +bind = $mainMod, Print, exec, $screenshotFull # Open wofi clipboard bind = $mainMod, V, exec, cliphist list | $menu -S dmenu | cliphist decode | wl-copy diff --git a/hyprland/rules.conf b/hyprland/rules.conf index 517c8d6..f3222e6 100644 --- a/hyprland/rules.conf +++ b/hyprland/rules.conf @@ -11,4 +11,7 @@ windowrulev2 = float, title:^(Clapper)$ windowrulev2 = float, title:^(Resources)$ windowrulev2 = float, class:^xdg-desktop-portal* +# Animations +layerrule = animation fade,selection + windowrulev2 = suppressevent maximize, class:.*