🗑️ remove(hypr): recording script and cli recorder; now using obs for everything recording related

This commit is contained in:
Sergio Laín 2024-04-02 09:19:16 +02:00
parent 1bb0b31250
commit 22c128a723
No known key found for this signature in database
GPG key ID: 14C9B8080681777B
4 changed files with 1 additions and 41 deletions

View file

@ -27,7 +27,6 @@
- hyprlock - hyprlock
- hypridle - hypridle
- wev - wev
- wf-recorder
- wl-clipboard - wl-clipboard
- xdg-desktop-portal-hyprland - xdg-desktop-portal-hyprland
- kitty - kitty

View file

@ -28,7 +28,6 @@ bind = SUPER, INSERT, exec, ~/.config/hypr/scripts/color_picker
bind = SUPERSHIFT, W, exec, ~/.config/hypr/scripts/wallpaper select bind = SUPERSHIFT, W, exec, ~/.config/hypr/scripts/wallpaper select
bind = SUPERCTRL, W, exec, ~/.config/hypr/scripts/wallpaper random bind = SUPERCTRL, W, exec, ~/.config/hypr/scripts/wallpaper random
bind = SUPER, 61, exec, ~/.config/hypr/scripts/rofi/keybindings # / bind = SUPER, 61, exec, ~/.config/hypr/scripts/rofi/keybindings # /
bind = SUPERSHIFT, R, exec, ~/.config/hypr/scripts/rofi/recording
bind = SUPERSHIFT, G, exec, ~/.config/hypr/scripts/rofi/game_launcher bind = SUPERSHIFT, G, exec, ~/.config/hypr/scripts/rofi/game_launcher
bind = SUPER, Y, exec, cliphist list | rofi -dmenu | cliphist decode | wl-copy bind = SUPER, Y, exec, cliphist list | rofi -dmenu | cliphist decode | wl-copy

View file

@ -1,37 +0,0 @@
#!/usr/bin/bash
wf-recorder_check() {
if pgrep -x "wf-recorder" >/dev/null; then
pkill -INT -x wf-recorder
pkill -RTMIN+8 waybar
notify-send "Saved recording at " "$(cat /tmp/recording.txt)"
wl-copy <"$(cat /tmp/recording.txt)"
celluloid "$(cat /tmp/recording.txt)" &
exit 0
fi
}
wf-recorder_check
SCREEN=$(echo "$(hyprctl monitors | awk '/^Monitor/ {print $2} END { print "selection" }')" | rofi -dmenu)
AUDIO=$(echo "$(pactl list sources | grep Name | grep -v easyeffects | awk -F ": " '{print $2}' | awk '{$1=$1};1')" | rofi -dmenu)
VID="$HOME/Videos/Escritorio/$(date +%Y-%m-%d-%s).mp4"
if [ "$SCREEN" = "selection" ]; then
echo "$VID" >/tmp/recording.txt
sleep 1
wf-recorder -c hevc_vaapi --audio="$AUDIO" -d /dev/dri/renderD128 -g "$(slurp)" -f "$VID" &>/dev/null &
while pgrep -x slurp >/dev/null; do
sleep 1
done
notify-send "Recording started" "Selection\nAudio: $AUDIO"
pkill -RTMIN+8 waybar
elif [ "$SCREEN" != "" ]; then
echo "$VID" >/tmp/recording.txt
sleep 1
wf-recorder -c hevc_vaapi --audio="$AUDIO" -d /dev/dri/renderD128 -o "$SCREEN" -f "$VID" &>/dev/null &
notify-send "Recording started" "Screen: $SCREEN\nAudio: $AUDIO"
pkill -RTMIN+8 waybar
fi

3
.github/README.md vendored
View file

@ -118,7 +118,6 @@ Here is all the information about my setup:
| **Idle Timeout** | [hypridle](https://github.com/hyprwm/hypridle) [:gear:](../.config/hypr/hypridle.conf) | | **Idle Timeout** | [hypridle](https://github.com/hyprwm/hypridle) [:gear:](../.config/hypr/hypridle.conf) |
| **Color Picker** | [hyprpicker](https://github.com/hyprwm/hyprpicker) | | **Color Picker** | [hyprpicker](https://github.com/hyprwm/hyprpicker) |
| **Screenshot Tool** | [hyprshot](https://github.com/Gustash/Hyprshot) (Using [grim](https://sr.ht/~emersion/grim/) and [slurp](https://github.com/emersion/slurp)) | | **Screenshot Tool** | [hyprshot](https://github.com/Gustash/Hyprshot) (Using [grim](https://sr.ht/~emersion/grim/) and [slurp](https://github.com/emersion/slurp)) |
| **Recording Tool** | [wf-recorder](https://github.com/ammen99/wf-recorder) |
| **Screenshot Editor** | [satty](https://github.com/gabm/Satty) | | **Screenshot Editor** | [satty](https://github.com/gabm/Satty) |
| **Logout Menu** | [wleave](https://github.com/AMNatty/wleave) [:gear:](../.config/wleave/) | | **Logout Menu** | [wleave](https://github.com/AMNatty/wleave) [:gear:](../.config/wleave/) |
@ -211,7 +210,7 @@ Here is all the information about my setup:
```bash ```bash
yay -Sy hyprland hyprlock hypridle xdg-desktop-portal-hyprland hyprpicker \ yay -Sy hyprland hyprlock hypridle xdg-desktop-portal-hyprland hyprpicker \
swww waybar-cava wleave-git rofi-lboon-wayland swaync swayosd-git wl-clipboard wf-recorder \ swww waybar-cava wleave-git rofi-lboon-wayland swaync swayosd-git wl-clipboard \
pyprland qt5ct pavucontrol cliphist playerctl udiskie devify fzf jq eza fd \ pyprland qt5ct pavucontrol cliphist playerctl udiskie devify fzf jq eza fd \
catppuccin-gtk-theme-macchiato catppuccin-cursors-macchiato cava slurp grim catppuccin-gtk-theme-macchiato catppuccin-cursors-macchiato cava slurp grim
``` ```