use grim and slurp to take screenshots

This commit is contained in:
João Dias
2024-07-26 22:30:19 -03:00
parent 8b768743df
commit 03465530fb
2 changed files with 12 additions and 6 deletions
+8 -5
View File
@@ -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"
$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
+3
View File
@@ -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:.*