glouw / paperview Goto Github PK
View Code? Open in Web Editor NEWA high performance X11 animated wallpaper setter
Home Page: https://glouw.com/2020/08/02/Paperview.html
License: MIT License
A high performance X11 animated wallpaper setter
Home Page: https://glouw.com/2020/08/02/Paperview.html
License: MIT License
Build command: gcc -std=c99 -O2 -Wall -Wextra -Wpedantic main.c -I/usr/X11R6/include -L/usr/X11R6/lib -lSDL2 -lX11 -o paperview
Run command: ./paperview cyber 5
Output:
2020-08-05 16:56:07.067 paperview[39543:6127143] -[__NSTaggedDate title]: unrecognized selector sent to instance 0x1d1
2020-08-05 16:56:07.067 paperview[39543:6127143] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSTaggedDate title]: unrecognized selector sent to instance 0x1d1'
*** First throw call stack:
(
0 CoreFoundation 0x00007fff36cfcb57 __exceptionPreprocess + 250
1 libobjc.A.dylib 0x00007fff6f9aa5bf objc_exception_throw + 48
2 CoreFoundation 0x00007fff36d7bbe7 -[NSObject(NSObject) __retain_OA] + 0
3 CoreFoundation 0x00007fff36c613bb ___forwarding___ + 1427
4 CoreFoundation 0x00007fff36c60d98 _CF_forwarding_prep_0 + 120
5 libSDL2-2.0.0.dylib 0x0000000101047b5c Cocoa_CreateWindowFrom + 44
6 libSDL2-2.0.0.dylib 0x000000010101f160 SDL_CreateWindowFrom_REAL + 186
7 paperview 0x0000000100f998f3 main + 115
8 libdyld.dylib 0x00007fff70b52cc9 start + 1
9 ??? 0x0000000000000003 0x0 + 3
)
libc++abi.dylib: terminating with uncaught exception of type NSException
executing ./paperview train 5
just seems to refresh my monitor and doesn't change the wallpaper. Clip here
. Its a Thinkpad T450 with an integrated intel GPU if that helps.
Hi team,
You can shared a binary for macOS
When I try to run the ./paperview command I get a "[1] 280403 segmentation fault (core dumped) ./paperview scenes/train/ 5" error...
Curious if this could be done as converting even just a 30fps video loop to bmps is a bit much given the amount of data you end up with
Video Loop: 30 sec., 30fps
mp4: 3,7MB
bpms: 5,58 GB
While many are probably fine with pixel style low fps loops, I personally can't stand it ':D
what is error ?
hi, i've used paperview for 3 month on dwm + void linux, now i've reinstalled it and paperview isn't working. no errors, just not working.
Hi glouw, looking through the discussion on the non-SDL2 gist you link in the readme. I may be wrong but I'm pretty sure that if you did go down the route of using the XRender extension instead of SDL2 that this compositor issue might go away. Perhaps you could make a non-sdl2 multi monitor version of paperview using XRender instead of SDL2 and see if this works?
I buddy! I compiled your software and tried to make it work, but it just doesnt display anything. how i could debug why isnt doing anything. it just, runs..but nothing at all..
I made a bunch of bmp from your example, place it inside a folder eample then try ./paperview example/ 3 &
just to try something..
what i am missing here?
Would it be possible to use SDL_WINDOWEVENT_HIDDEN
and SDL_WINDOWEVENT_EXPOSED
/SDL_WINDOWEVENT_SHOWN
to pause rendering when the background isn't in view, and so save same cycles/battery?
I think it might work during the poll loop watching for the quit event, at a glance.
Is there anyway to set different wallpapers for different monitors? I have a setup with two monitors that don't share the same resolution and the program doesn't seen to know how to deal with it.
Are there any known compositors that work with Paperview? I'm working on a rice that utilizes this, and I want to use a compositor to really emphasize this program, because it's stinkin' awesome!
I've tried Picom and Compton, and as I expected, both failed.
Thanks in advance!
Hello.
Just compiled it and ran it on a fresh Ubuntu 20.10 install. The program is running and I could confirm that it is running the rendering functions, but the wallpaper doesn't change from the system set one.
Is it not supported? Maybe Gnome gets in the way?
i am running i3-wm and using paperview for live wallpaper . on internet i find mp4 files for live wallpaper and converted it via online converter the bmp folder is about 300mb . and added paperview in my i3 confic exec_always paperview .......
. when i restart the WM the ram usage goes upto 60 percent i have 24 gigs of ram and it is working fine . i also tried to run your random live wallpaper script and it is running fine on ram but increases the cpu usage upto 36percent i am using i5 12400 processor. i tried ffmpeg to convert the mp4 file to bmp but same problem . is there something wrong doing on my side
first of all, the project is really nice, works even in a vm without problems...
but...
it does not work while compton is running.
since it hasn't commented anything in the code, i haven't figured out how it works... (well, i'm probably not very good in c...)
but i guess that it does not draw on the rootwindow...
if it would draw directly to the rootwindow it should work (I had a script which did exactly that and it worked -> but cpu on fire)
(i'm probably not very good in english to..., sry 4 that... xD)
my test-setup:
vm with 8gb ram and 16 threads (r9 3900x)
debian 10.5.0
linux 4.19.0-10
i3wm 4.16.1
compton 0.1~beta2+20150922
(wallpaper set with feh -> survives paperview)
make 4.2.1
xorg 1:7.7+19
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.