From 4e530fb055a14fbea2e0107fcc542dd802a22771 Mon Sep 17 00:00:00 2001 From: Justine Smithies Date: Sat, 10 Feb 2024 13:34:09 +0000 Subject: Updated screenshot binds and added screenshot focused window --- .config/hypr/hyprland.conf | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to '.config/hypr/hyprland.conf') diff --git a/.config/hypr/hyprland.conf b/.config/hypr/hyprland.conf index c4bbad3..da029e1 100644 --- a/.config/hypr/hyprland.conf +++ b/.config/hypr/hyprland.conf @@ -242,13 +242,16 @@ bind = , xf86monbrightnessdown, exec, ~/.local/bin/statusbar/brightnesscontrol d bind = , xf86monbrightnessup, exec, ~/.local/bin/statusbar/brightnesscontrol up # Take a screenshot of the focused output and save it into screenshots -bind = , PRINT, exec, grim -o $(hyprctl monitors | grep -B 12 'focused: yes' | grep 'Monitor' | awk '{ print $2 }') -t jpeg ~/Pictures/Screenshots/$(date +%Y-%m-%d_%H-%m-%s).jpg +bind = , PRINT, exec, ~/.local/bin/screenshot.sh # Take a screenshot of the selected region -bind = $mainMod, PRINT, exec, grim -t jpeg -g "$(slurp)" ~/Pictures/Screenshots/$(date +%Y-%m-%d_%H-%m-%s).jpg +bind = $mainMod, PRINT, exec, ~/.local/bin/screenshot.sh selected-region # Take a screenshot and save it to the clipboard -bind = $mainMod SHIFT, PRINT, exec, grim -g "$(slurp -d)" - | wl-copy +bind = $mainMod SHIFT, PRINT, exec, ~/.local/bin/screenshot.sh save-to-region + +# Take a screenshot of the selected windows +bind = $mainMod CONTROL, PRINT, exec, ~/.local/bin/screenshot.sh focused-window # Swaps the active workspaces between two monitors bind = $mainMod, Z, swapactiveworkspaces, HDMI-A-1 eDP-1 -- cgit v1.2.3