From 1452d726fb9b3bc757871c7250ea99a3d05f1713 Mon Sep 17 00:00:00 2001 From: kokopi-dev Date: Tue, 28 Oct 2025 17:49:44 +0900 Subject: [PATCH] add:screen video capture --- hyprland/hypr/hyprland.conf | 3 +++ hyprland/hyprland_setup_manual | 2 ++ hyprland/rofi/help-manager/system-keybinds.txt | 1 + 3 files changed, 6 insertions(+) diff --git a/hyprland/hypr/hyprland.conf b/hyprland/hypr/hyprland.conf index 0823d63..8f00db6 100644 --- a/hyprland/hypr/hyprland.conf +++ b/hyprland/hypr/hyprland.conf @@ -279,6 +279,9 @@ $mainMod = SUPER # Sets "Windows" key as main modifier # Annotated screenshots (with Satty) bind = $mainMod ALT, P, exec, grim -g "$(slurp)" - | satty --filename - --output-filename ~/pictures/$(date +"%Y-%m-%d_%H-%M-%S").png --early-exit --copy-command wl-copy +# Screencapture region +bind = $mainMod ALT, V, exec, bash -c 'if pgrep -x wl-screenrec > /dev/null; then pkill -INT wl-screenrec && notify-send "🎥 Recording Stopped" "Saved to ~/videos"; else GEOMETRY=$(slurp); if [ -n "$GEOMETRY" ]; then notify-send "🎥 Recording Started" "Press Super+Alt+v to stop" && wl-screenrec -g "$GEOMETRY" -f ~/videos/recording-$(date +"%Y-%m-%d_%H-%M-%S").mp4 & fi; fi' + bind = $mainMod, Return, exec, $terminal # bind = $mainMod, M, exit, bind = $mainMod, E, exec, $fileManager diff --git a/hyprland/hyprland_setup_manual b/hyprland/hyprland_setup_manual index 7628e91..8755c1b 100644 --- a/hyprland/hyprland_setup_manual +++ b/hyprland/hyprland_setup_manual @@ -26,6 +26,8 @@ main config: ~/.config/hypr/hyprland.conf * sudo pacman -S mpv (lightweight video player/image viewer) * sudo pacman -S slurp grim satty - printscreen/screenshot capabilities +* yay -S wl-screenrec + - screen/video capture capabilities --- ## Non config settings diff --git a/hyprland/rofi/help-manager/system-keybinds.txt b/hyprland/rofi/help-manager/system-keybinds.txt index fbbfc4e..1815760 100644 --- a/hyprland/rofi/help-manager/system-keybinds.txt +++ b/hyprland/rofi/help-manager/system-keybinds.txt @@ -1,4 +1,5 @@ Super + ALT + p → Copy/Save Screenshot +Super + ALT + v → Screen Region Video Capture Super + Return → Terminal Super + e → File Manager Super + Shft + q → Quit Window