Coder Social home page Coder Social logo

panduska / paperview Goto Github PK

View Code? Open in Web Editor NEW

This project forked from glouw/paperview

0.0 0.0 0.0 256 KB

A high performance X11 animated wallpaper setter

Home Page: https://glouw.com/2020/08/02/Paperview.html

License: The Unlicense

Makefile 10.19% C 89.81%

paperview's Introduction

PAPERVIEW

A high performance animated desktop background setter for X11 that won't set your CPU on fire, drain your laptop battery, or lower ya vidya game FPS.

Video of the above screenshot: https://www.youtube.com/watch?v=6ZTiA885bWM

Build

arch

pacman -S sdl2
make

nix

nix-shell -p gnumake SDL2 --command make

guix

guix install paperview

Use

Command line:

./paperview FOLDER SPEED

A lower SPEED number will result in a faster frame rate. Only bitmap files are supported. Creating your own bitmap folders from gifs requires imagemagick. For example, creating a castle folder from castle.gif which you downloaded:

mkdir castle
mv castle.gif castle
cd castle
convert -coalesce castle.gif out.bmp
rm castle.gif

Performance

Running on a Thinkpad X230 from 2012 at 1920x1080 and 60fps:

intel_gpu_time ./paperview castle 5

user: 1.904135s, sys: 0.357277s, elapsed: 100.458648s, CPU: 2.3%, GPU: 11.7%

Known Issues

Picom

Picom (and possibly simliar compositors) seem to overwrite the base root X11 window. A pure X11 workaround can be found here:

https://gist.github.com/AlecsFerra/ef1cc008990319f3b676eb2d8aa89903

XFCE

According to andreldm, for Xfce users, xfdesktop and compositing have to be disabled before running paperview:

xfdesktop -Q && xfconf-query --channel xfwm4 --property /general/use_compositing --type bool --set false

Windows

If you are using windows, X11 is not easily supported. Here is a pure Windows alternative using SDL2:

https://github.com/TrAyZeN/sdl-wallpaper

paperview's People

Contributors

glouw avatar wigust avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.