Giter Club home page Giter Club logo

i3lock-fancy-rapid's People

Contributors

jian-lin avatar lwizchz avatar mortie avatar yvbbrjdr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

i3lock-fancy-rapid's Issues

The newest commit `80467db` does not work in Ubuntu 19.04?

I cloned and compiled the newest commit 80467db of master of i3lock-fancy-rapid. There are some warnings. And the execution of ./i3lock-fancy-rapid 5 3 does not work but gets stuck (must use Ctrl+C to terminate).

$ cd i3lock-fancy-rapid
$ git log --oneline
80467db (HEAD -> master, origin/master, origin/dev, origin/HEAD) Merge pull request #6 from piluke/dev
...
...
$ make      
gcc -c -O3 -fopenmp -DLODEPNG_NO_COMPILE_DECODER -DLODEPNG_NO_COMPILE_DISK -DLODEPNG_NO_COMPILE_ANCILLARY_CHUNKS -DLODEPNG_NO_COMPILE_ERROR_TEXT -Wall -Wextra i3lock-fancy-rapid.c -o i3lock-fancy-rapid.o
i3lock-fancy-rapid.c: In function ‘main’:
i3lock-fancy-rapid.c:188:5: warning: ignoring return value of ‘pipe’, declared with attribute warn_unused_result [-Wunused-result]
     pipe(fds);
     ^~~~~~~~~
i3lock-fancy-rapid.c:190:9: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
         write(fds[1], postblur, height * width * 3);
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc -c -O3 -fopenmp -DLODEPNG_NO_COMPILE_DECODER -DLODEPNG_NO_COMPILE_DISK -DLODEPNG_NO_COMPILE_ANCILLARY_CHUNKS -DLODEPNG_NO_COMPILE_ERROR_TEXT -Wall -Wextra -x c lodepng/lodepng.cpp -o lodepng.o
gcc i3lock-fancy-rapid.o lodepng.o -lX11 -fopenmp -o i3lock-fancy-rapid

$ ./i3lock-fancy-rapid 5 3
i3lock: unrecognized option '--raw'
i3lock: Syntax: i3lock [-v] [-n] [-b] [-d] [-c color] [-u] [-p win|default] [-i image.png] [-t] [-e] [-I timeout] [-f]
^C

System: Ubuntu 19.04/disco on Lenovo Thinkpad T440p.

$ uname -a
Linux ubuntu 5.0.0-25-generic #26-Ubuntu SMP Thu Aug 1 12:04:58 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 19.04
Release:	19.04
Codename:	disco

Memory leak with Ubuntu 20.04 LTS

There is no problem with i3lock-fancy-rapid in Ubuntu 18 LTS but in 20.04 LTS, got this error after unlocking the screen.

$ i3lock-fancy-rapid 5 3
...
~/build/i3lock-fancy-rapid master
=================================================================
==42054==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 4864 byte(s) in 19 object(s) allocated from:
    #0 0x7f4fd4be2bc8 in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.5+0x10dbc8)
    #1 0x7f4fd3e572f4  (/usr/lib/x86_64-linux-gnu/libfontconfig.so.1+0x212f4)

Indirect leak of 1184 byte(s) in 37 object(s) allocated from:
    #0 0x7f4fd4be2dc6 in calloc (/usr/lib/x86_64-linux-gnu/libasan.so.5+0x10ddc6)
    #1 0x7f4fd3e5793c  (/usr/lib/x86_64-linux-gnu/libfontconfig.so.1+0x2193c)

Indirect leak of 341 byte(s) in 34 object(s) allocated from:
    #0 0x7f4fd4b6b3dd in strdup (/usr/lib/x86_64-linux-gnu/libasan.so.5+0x963dd)
    #1 0x7f4fd3e56b64 in FcValueSave (/usr/lib/x86_64-linux-gnu/libfontconfig.so.1+0x20b64)

SUMMARY: AddressSanitizer: 6389 byte(s) leaked in 90 allocation(s).

I built i3lock-fancy-rapid from source pulled from Github master.

Edited: Before i3lock-fancy-rapid worked with i3 normally but it's no longer working after upgrading to Ubuntu 20.04. Executed i3lock-fancy-rapid from command line like above, I got the error.

Help package it on Gentoo Linux

Hi, there. Nice wok!

I help package it on GURU, which is an official repository of Gentoo Linux. The package is called x11-misc/i3lock-fancy-rapid.

The steps to install it are as follows:

# install a repository management tool
sudo emerge --ask --verbose app-eselect/eselect-repository
# refresh the repository list
sudo eselect repository list
# enable guru
sudo eselect repository enable guru
# sync guru
sudo emerge --sync guru
# install betterlockscreen_rapid
sudo emerge --ask --verbose x11-misc/i3lock-fancy-rapid

This will benefit Gentoo users. It would be very appreciated if you add this information to the readme file.

Feel free to close this issue.

No composite images

There is no feature for adding images to compose with the screenshot. Also lacks other features from original i3lock-fancy.

Pixelation

Is it possible to do pixelation rather then blurring?

I3lock-fancy-rapid does not validate arguments

Summary

Hey yvbbrjdr,
I3lock-fancy-rapid does not validate arguments. If you set an negative radius or time strange things happen.

Steps to reproduce

./i3lock-fancy-rapid -x -y where x,y >0

Solution

Check if radius or time are >=0.

Regards,

deltaxflux

Cannot build on my machine

Here's the output:
gcc -lX11 -fopenmp i3lock-fancy-rapid.o lodepng.o -o i3lock-fancy-rapid
i3lock-fancy-rapid.o: In function 'main':
i3lock-fancy-rapid.c:(.text.startup+0x5f): undefined reference to 'XOpenDisplay'
i3lock-fancy-rapid.c:(.text.startup+0x71): undefined reference to 'XDefaultRootWindow'
i3lock-fancy-rapid.c:(.text.startup+0x8d): undefined reference to 'XGetWindowAttributes'
i3lock-fancy-rapid.c:(.text.startup+0xdd): undefined reference to 'XGetImage'
i3lock-fancy-rapid.c:(.text.startup+0x194): undefined reference to 'XDestroyWindow'
i3lock-fancy-rapid.c:(.text.startup+0x19c): undefined reference to 'XCloseDisplay'
collect2: error: ld returned 1 exit status
Makefile:7: recipe for target 'i3lock-fancy-rapid' failed
make: *** [i3lock-fancy-rapid] Error 1

I'm on Ubuntu 17.10. libx11-dev is installed.

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.