From 05aeee96a55be16d73de24b07511d14c343b3f06 Mon Sep 17 00:00:00 2001 From: "committer@tuxwarrior" Date: Sat, 28 Feb 2026 21:19:51 -0500 Subject: [PATCH] + fuzzel --- dots/archinstall/common/packages.txt | 2 +- dots/bin/screenshot.sh | 11 ++++++----- dots/hyprland/hyprland.conf | 10 ++++++---- 3 files changed, 13 insertions(+), 10 deletions(-) diff --git a/dots/archinstall/common/packages.txt b/dots/archinstall/common/packages.txt index c583a7a..c6b308e 100644 --- a/dots/archinstall/common/packages.txt +++ b/dots/archinstall/common/packages.txt @@ -29,7 +29,7 @@ qt6-wayland # t6 support swaync # notification deamon waybar # status bar xdg-desktop-portal-hyprland # xdg-desktop-portal backend - +fuzzel # app launcher (used by hyprcap - for monitor grabs) # notes # --- diff --git a/dots/bin/screenshot.sh b/dots/bin/screenshot.sh index b20df00..7758a13 100755 --- a/dots/bin/screenshot.sh +++ b/dots/bin/screenshot.sh @@ -9,11 +9,12 @@ outputDir="/home/poq/syncDir/0_downloads/" timestamp=$(date +%y%m%d-%H%M%S) # get timestamp ranwrd=$(shuf -n 1 /usr/share/dict/cracklib-small) # get a random word ranwrd="${ranwrd//[^[:alpha:]]/}" # remove all non-letters (like the ' in "sharecropper's") -filename=${timestamp}_${ranwrd}.jpg +filename=${timestamp}_${ranwrd}.png -#echo ${ranwrd} -#echo "${filename}" - -if [[ "$methodr" == "region" ]] ; then +if [[ "$method" == "monitor" ]] ; then + hyprcap shot -z -c -n -w -o ${outputDir} -f ${filename} +elif [[ "$method" == "region" ]] ; then hyprcap shot region --freeze --copy --notify --write --output-dir ${outputDir} --filename ${filename} +elif [[ "$method" == "window" ]] ; then + hyprcap shot window:active -z -c -n -w -o ${outputDir} -f ${filename} fi diff --git a/dots/hyprland/hyprland.conf b/dots/hyprland/hyprland.conf index 3ac07d8..0ce1dfa 100644 --- a/dots/hyprland/hyprland.conf +++ b/dots/hyprland/hyprland.conf @@ -271,14 +271,16 @@ bind = $mainMod, G, fullscreen, 0 # fullscreen, fill entire screen # https://github.com/alonso-herreros/hyprcap #$hyprcapFilename = YYYYMMDDhhmmss_k. #$hyprcapOutDir = /home/poq/syncDir/0_downloads/ -bind = $mainMod SHIFT, PRINT, exec, hyprcap shot -z -c -n -w -o $hyprcapOutDir -f $hyprcapFilename # monitor -bind = $mainMod, PRINT, exec, hyprcap shot window:active -z -c -n -w -o $hyprcapOutDir -f $hyprcapFilename # window +#bind = $mainMod SHIFT, PRINT, exec, hyprcap shot -z -c -n -w -o $hyprcapOutDir -f $hyprcapFilename # monitor +#bind = $mainMod, PRINT, exec, hyprcap shot window:active -z -c -n -w -o $hyprcapOutDir -f $hyprcapFilename # window #bind = , PRINT, exec, hyprcap shot region --freeze --copy --notify --write --output-dir $hyprcapOutDir --filename $hyprcapFilename # region #bind = , PRINT, exec, hyprcap shot region --freeze --copy --notify --write --output-dir $hyprcapOutDir --filename $hyprcapFilename # region -bind = , PRINT, exec, screenshot.sh region # region - +bind = , PRINT, exec, screenshot.sh region # region +bind = $mainMod SHIFT, PRINT, exec, screenshot.sh monitor # monitor +bind = $mainMod, PRINT, exec, screenshot.sh window # window #bind = , PRINT, exec, hyprcap shot region --freeze --copy --notify # region + #bind = $MOD SHIFT, R, exec, hyprcap rec region -c -n # Toggle recording a region #bind = $MOD SHIFT ALT, R, exec, hyprcap rec window:active -c -n # Toggle recording current window #bind = $MOD SHIFT CTRL, R, exec, hyprcap rec -c -n # Toggle recording with interactive selection