diff options
author | Xiao Pan <gky44px1999@gmail.com> | 2023-05-19 23:43:45 -0700 |
---|---|---|
committer | Xiao Pan <gky44px1999@gmail.com> | 2023-05-19 23:43:45 -0700 |
commit | e8b2fcfb7913fdb0a55ed37fc870cacb1e0693b7 (patch) | |
tree | a5662e338061f823387fee4f836d5063155eeab4 /home | |
parent | 352ef4d1bb177c3bbeae1fd16c2ff4ce17f404fc (diff) |
change time.uuid to time-uuid in scripts
Diffstat (limited to 'home')
-rwxr-xr-x | home/xyz/.config/nsxiv/exec/key-handler | 2 | ||||
-rwxr-xr-x | home/xyz/.local/bin/reco | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/home/xyz/.config/nsxiv/exec/key-handler b/home/xyz/.config/nsxiv/exec/key-handler index 5bc777db..c648894b 100755 --- a/home/xyz/.config/nsxiv/exec/key-handler +++ b/home/xyz/.config/nsxiv/exec/key-handler @@ -55,7 +55,7 @@ case "$1" in "F") flip horizontal ;; "g") tr '\n' '\0' | xargs -0 setsid -f gimp ;; "k") tr '\n' '\0' | xargs -0 setsid -f krita ;; - "p") tr '\n' '\0' | xargs -0 sh -c 'convert "$@" $(time.uuid).pdf' shell ;; + "p") tr '\n' '\0' | xargs -0 sh -c 'convert "$@" $(time-uuid).pdf' shell ;; # alternative using `xclip -in -selection clipboard` "y") tr '\n' '\0' | xargs -0 realpath | tr '\n' '\0' | xargs -0 printf '%q ' | xsel -ib ;; "comma") rotate 270 ;; diff --git a/home/xyz/.local/bin/reco b/home/xyz/.local/bin/reco index 068e6ad8..7ee726d2 100755 --- a/home/xyz/.local/bin/reco +++ b/home/xyz/.local/bin/reco @@ -14,11 +14,11 @@ if [ -e "$infofile" ]; then read -r pid tmpfile < "$infofile" kill "$pid" notify-send 'finish recording, start converting' - ffmpeg -i "$tmpfile" "$recodir/$(time.uuid).mkv" + ffmpeg -i "$tmpfile" "$recodir/$(time-uuid).mkv" notify-send 'finish converting' rm "$tmpfile" "$infofile" else - tmpfile="$tmpdir/$(time.uuid).mkv" + tmpfile="$tmpdir/$(time-uuid).mkv" notify-send 'prepare recording' # arch wiki way, no audio, less cpu use during capturing (fast?), large file size, need convert afterward xrectsel '%w %h %x %y' | xargs sh -c 'ffmpeg -y -loglevel quiet -f x11grab -framerate 25 -s "$2x$3" -i "$DISPLAY+$4,$5" -c:v ffvhuff "$1" & echo $!' shell "$tmpfile" | xargs -I {} printf '%s\t%s' '{}' "$tmpfile" > "$infofile" |