From c93eb33f016d3bb3adc791a01cfd9d08761d02d2 Mon Sep 17 00:00:00 2001 From: Lucien Cartier-Tilet Date: Mon, 24 Feb 2020 21:40:04 +0100 Subject: [PATCH] Added mp4 to webm utitily --- org/config/bin.org | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/org/config/bin.org b/org/config/bin.org index 05e3111..0103b68 100644 --- a/org/config/bin.org +++ b/org/config/bin.org @@ -22,6 +22,7 @@ - [[#dmenu][Dmenu]] - [[#emoji-picker][Emoji picker]] - [[#lsl][Lsl]] +- [[#mp42webm][mp42webm]] - [[#polybar-launch][Polybar-launch]] - [[#rofi-mount][Rofi-mount]] - [[#get-the-mountable-elements][Get the mountable elements]] @@ -59,12 +60,18 @@ Please do not forget to run the following before tangling files from this file to make sure the tangled files will be executables. - #+begin_src emacs-lisp :results silent + #+begin_src emacs-lisp :results silent (defun phundrak/make-tangled-files-executable () (set-file-modes (buffer-file-name) #o755)) (add-hook 'org-babel-post-tangle-hook 'phundrak/make-tangled-files-executable) #+end_src + #+begin_src emacs-lisp :results silent + (defun phundrak/make-tangled-files-not-executable () + (set-file-modes (buffer-file-name) #o644)) + (add-hook 'org-babel-post-tangle-hook 'phundrak/make-tangled-files-not-executable) + #+end_src + * 4chandl :PROPERTIES: :CUSTOM_ID: h-39e14885-9da7-4cba-b24e-c3b181ef5f6b @@ -354,6 +361,16 @@ ls -ahlX --group-directories-first $argv | bat #+END_SRC +* mp42webm + :PROPERTIES: + :HEADER-ARGS: :tangle ~/.local/bin/mp42webm + :CUSTOM_ID: h-29b8a01c-7499-4a35-be25-f5a593bf40ea + :END: + #+BEGIN_SRC fish + #!/usr/bin/fish + ffmpeg -i $argv[1] -c:v libvpx -crf 10 -b:v 1M -c:a libvorbis $argv[1].webm + #+END_SRC + * Polybar-launch :PROPERTIES: :CUSTOM_ID: h-68587918-879b-42db-b304-901d01233f95