This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*% cc -O0 -g % -o # | |
* com [-n] [file ...] | |
* looks for the sequence /*% in each file, and sends the rest of the | |
* line off to the shell, after replacing any instances of a `%' character | |
* with the filename, and any instances of `#' with the filename with its | |
* suffix removed. Used to allow information about how to compile a program | |
* to be stored with the program. The -n flag causes com not to | |
* act, but to print out the action it would have taken. | |
* | |
* This version of com would also create compile_flags.txt for clangd if |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
You want to use a live wallpaper in x11? | |
Great!!...but It come as a cost. | |
I did experiment with .gif backend and non hardware accelerate backend, It sucks. | |
CPU usage was so high (40% up just for idle), unacceptable for my laptop. | |
Running with those backend for such a really long time will slowly turn your laptop into the hot potato. | |
But don't be upset, we can reduce those cost. | |
Using the video player with hardware video decoding support can reduce the cost. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdint.h> | |
/** | |
* Encode a code point using UTF-8 | |
* | |
* @author Ondřej Hruška <[email protected]> | |
* @license MIT | |
* | |
* @param out - output buffer (min 5 characters), will be 0-terminated | |
* @param utf - code point 0-0x10FFFF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ffmpeg -f fbdev -i /dev/fb0 -r 24 -c:v libx264 -b:v 500k output.avi |