From b64c0dff69d6433dbd1e4aa8b872aca49ab97f26 Mon Sep 17 00:00:00 2001 From: retrilzzy Date: Wed, 14 May 2025 21:47:39 +0500 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=20=D0=B1=D0=B8=D0=BD=D0=B4=20=D0=B7=D0=B0=D0=BF=D0=B8?= =?UTF-8?q?=D1=81=D0=B8=20=D1=8D=D0=BA=D1=80=D0=B0=D0=BD=D0=B0=20=D1=87?= =?UTF-8?q?=D0=B5=D1=80=D0=B5=D0=B7=20wf-recorder?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Configs/.config/hypr/keybindings.conf | 4 ++++ Configs/.config/hypr/scripts/wf-record.sh | 10 ++++++++++ README.md | 11 ++++++----- Scripts/install_packages.sh | 4 ++++ 4 files changed, 24 insertions(+), 5 deletions(-) create mode 100755 Configs/.config/hypr/scripts/wf-record.sh diff --git a/Configs/.config/hypr/keybindings.conf b/Configs/.config/hypr/keybindings.conf index 04b0a52..240ef50 100644 --- a/Configs/.config/hypr/keybindings.conf +++ b/Configs/.config/hypr/keybindings.conf @@ -70,6 +70,10 @@ bind = SHIFT, Print, exec, hyprshot -m region -t 2000 -o ~/Pictures/Screen -f $( bind = $mainMod SHIFT, PRINT, exec, $HOME/.config/hypr/scripts/screenshot_to_chibisafe.sh +# Screen Recording +bind = $mainMod SHIFT, R, exec, ~/.config/hypr/scripts/wf-record.sh + + # Move focus with mainMod + arrow keys bind = $mainMod, left, movefocus, l bind = $mainMod, right, movefocus, r diff --git a/Configs/.config/hypr/scripts/wf-record.sh b/Configs/.config/hypr/scripts/wf-record.sh new file mode 100755 index 0000000..42ef657 --- /dev/null +++ b/Configs/.config/hypr/scripts/wf-record.sh @@ -0,0 +1,10 @@ +#!/bin/env bash + +pgrep -x "wf-recorder" && pkill -INT -x wf-recorder && notify-send "wf-recorder" "Recording stopped" -t 950 && exit 0 + +notify-send "wf-recorder" "Starting recording..." -t 950 + +sleep 1.3 + +dateTime=$(date +%Y-%m-%d_%H-%M) +wf-recorder -g "$(slurp)" --framerate 48 --bframes max_b_frames -f ~/Videos/Recordings/$dateTime.mp4 diff --git a/README.md b/README.md index 7f08ad5..303139b 100644 --- a/README.md +++ b/README.md @@ -81,7 +81,7 @@ sudo pacman -S --needed git base-devel \ ``` sudo pacman -S network-manager-applet \ bluez bluez-tools blueman \ - brightnessctl xdg-utils grim \ + brightnessctl xdg-utils wf-recorder grim \ && yay -S hyprshot ``` @@ -149,10 +149,11 @@ sudo pacman -S network-manager-applet \ #### Остальное -| Клавиши | Действие | -| :---------------------------------------------- | :------------------------------------- | -| Super + Escape | Скрыть/показать Waybar | -| Super +Alt + P | Случайный фон из директории Wallpapers | +| Клавиши | Действие | +| :------------------------------------------------- | :----------------------------------------- | +| Super + Escape | Скрыть/показать Waybar | +| Super +Alt + P | Случайный фон из директории Wallpapers | +| Super + Shift + R | Начать запись области экрана (wf-recorder) | ### Иконки diff --git a/Scripts/install_packages.sh b/Scripts/install_packages.sh index 1d3d2ec..cdcf7e6 100755 --- a/Scripts/install_packages.sh +++ b/Scripts/install_packages.sh @@ -59,6 +59,10 @@ install "Grim, Hyprshot (cкриншоты)" \ "sudo pacman -S --noconfirm grim && yay -S --noconfirm hyprshot" +install "wf-recorder (запись экрана)" \ + "sudo pacman -S --noconfirm wf-recorder" + + install "Wlogout (меню выключения)" \ "yay -S --noconfirm wlogout"