Hyprland made screenshot bindings work with pc; Fish made scp work again; recording now works with multiple screens.
This commit is contained in:
parent
ef2a38ef7b
commit
5a82682813
14 changed files with 169 additions and 68 deletions
|
|
@ -1,6 +1,23 @@
|
|||
#!/bin/env bash
|
||||
|
||||
pgrep -x "wf-recorder" && pkill -INT -x wf-recorder && notify-send -h string:wf-recorder:record -t 1000 "Finished Recording" && exit 0
|
||||
for i in "pgrep" "pkill" "jq" "hyprctl" "wf-recorder" "notify-send" "hyprland-share-picker"; do
|
||||
if builtin type -P "$i" &> /dev/null; then continue; fi
|
||||
|
||||
notify-send -h string:wf-recorder:record -t 1000 "Missing dependencies, can't record.";
|
||||
echo "Missing dependencies."
|
||||
exit 1
|
||||
done
|
||||
|
||||
pgrep -x "wf-recorder" && \
|
||||
pkill -INT -x wf-recorder && \
|
||||
notify-send -h string:wf-recorder:record -t 1000 "Finished Recording" && \
|
||||
exit 0
|
||||
|
||||
display=$(hyprland-share-picker | sed -r 's/.+:([^@]+)(@.+)?/\1/')
|
||||
if [ -z "$display" ]; then
|
||||
notify-send "Please select a display"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
for i in $(seq 1 3); do
|
||||
notify-send -h string:wf-recorder:record -t 1000 "Recording in:" "<span color='#90a4f4' font='26px'><i><b>$((4 - $i))</b></i></span>"
|
||||
|
|
@ -11,4 +28,4 @@ dateTime=$(date +%m-%d-%Y-%H:%M:%S)
|
|||
dir="$HOME/Videos/ScreenRecordings"
|
||||
|
||||
mkdir -p "$dir"
|
||||
wf-recorder -f "$dir/$dateTime.mp4"
|
||||
wf-recorder -o "$display" -f "$dir/$dateTime.mp4"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue