forked from Shinonome/dots-hyprland
record script: nicer app name
This commit is contained in:
@@ -13,10 +13,10 @@ getactivemonitor() {
|
|||||||
mkdir -p "$(xdg-user-dir VIDEOS)"
|
mkdir -p "$(xdg-user-dir VIDEOS)"
|
||||||
cd "$(xdg-user-dir VIDEOS)" || exit
|
cd "$(xdg-user-dir VIDEOS)" || exit
|
||||||
if pgrep wf-recorder > /dev/null; then
|
if pgrep wf-recorder > /dev/null; then
|
||||||
notify-send "Recording Stopped" "Stopped" -a 'record-script.sh' &
|
notify-send "Recording Stopped" "Stopped" -a 'Recorder' &
|
||||||
pkill wf-recorder &
|
pkill wf-recorder &
|
||||||
else
|
else
|
||||||
notify-send "Starting recording" 'recording_'"$(getdate)"'.mp4' -a 'record-script.sh'
|
notify-send "Starting recording" 'recording_'"$(getdate)"'.mp4' -a 'Recorder'
|
||||||
if [[ "$1" == "--sound" ]]; then
|
if [[ "$1" == "--sound" ]]; then
|
||||||
wf-recorder --pixel-format yuv420p -f './recording_'"$(getdate)"'.mp4' -t --geometry "$(slurp)" --audio="$(getaudiooutput)" & disown
|
wf-recorder --pixel-format yuv420p -f './recording_'"$(getdate)"'.mp4' -t --geometry "$(slurp)" --audio="$(getaudiooutput)" & disown
|
||||||
elif [[ "$1" == "--fullscreen-sound" ]]; then
|
elif [[ "$1" == "--fullscreen-sound" ]]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user