diff --git a/.local/libexec/dwm/dmenurecord b/.local/libexec/dwm/dmenurecord index abfe56929..6480afd4f 100755 --- a/.local/libexec/dwm/dmenurecord +++ b/.local/libexec/dwm/dmenurecord @@ -59,7 +59,7 @@ webcamhidef() { -f v4l2 \ -i /dev/video0 \ -video_size 1920x1080 \ - "$HOME/webcam-$(date '+%y%m%d-%H%M-%S').mkv" & + "$XDG_VIDEOS_DIR/Captures/webcam-$(date '+%y%m%d-%H%M-%S').mkv" & echo $! >/tmp/recordingpid updateicon "󰄀" } @@ -69,7 +69,7 @@ webcam() { -f v4l2 \ -i /dev/video0 \ -video_size 640x480 \ - "$HOME/webcam-$(date '+%y%m%d-%H%M-%S').mkv" & + "$XDG_VIDEOS_DIR/Captures/webcam-$(date '+%y%m%d-%H%M-%S').mkv" & echo $! >/tmp/recordingpid updateicon "󰖠" } @@ -78,7 +78,7 @@ audio() { ffmpeg \ -f alsa -i default \ -c:a flac \ - "$HOME/audio-$(date '+%y%m%d-%H%M-%S').flac" & + "$XDG_VIDEOS_DIR/Captures/audio-$(date '+%y%m%d-%H%M-%S').flac" & echo $! >/tmp/recordingpid updateicon "󰍬" } @@ -101,19 +101,15 @@ asktoend() { } videoselected() { - slop -f "%x %y %w %h" >/tmp/slop - read -r X Y W H /tmp/recordingpid - updateicon "ﲣ" + updateicon "󰍹" } case "$1" in