Code Monkey home page Code Monkey logo

i3lock-fancier's Introduction

i3lock-fancier - yet another i3lock fork

This fork combines features of i3lock-color and this i3lock fork to create my ultimate lockscreen experience.

Features:

  • Separated configuration variables and more cleaner code in future
  • Loading configurations from .ini config files with this library
  • Keyboard indicator and Caps Lock layout:

Feature showcase

Just copy test_config.ini to $HOME/.config/i3lock-fancier/config.ini and configure it as you like using provided commentaries.

i3lock-fancier is almost completely compatible with i3lock-color, and you can port your fany config and have cool screenshots like this:

Cool Screenshot

Keep in mind:

  • I don't know how to work with OpenBSD, so I removed all BSD-related code
  • Also, removed blur. Don't really need it, maybe will add it later, after major code refactor.

Dependencies are mostly inherited from i3lock-color:

  • Arch: install cairo, libev, libx11, pam, xcb-util-image, xcb-util-keysyms, libxkbcommon-x11
  • Debian-based: do sudo apt install pkg-config libxcb1 libpam-dev libcairo2-dev libxcb-composite0 libxcb-composite0-dev libxcb-xinerama0-dev libev-dev libx11-dev libx11-xcb-dev libxkbcommon0 libxkbcommon-x11-0 libxcb-dpms0-dev libxcb-image0-dev libxcb-util0-dev libxcb-xkb-dev libxkbfile-dev libxkbcommon-x11-dev libxkbcommon-dev

i3lock-fancier's People

Contributors

rchaput avatar superprower 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

Watchers

 avatar  avatar  avatar

i3lock-fancier's Issues

Keyboard Layout Indicator text Extents change it's values when typing

kb_layout_extents.width = 13.000000
kb_layout_extents.height = 8.000000
kb_layout_extents.x_bearing = 0.000000
kb_layout_extents.y_bearing = -8.000000
[...]
kb_layout_extents.width = 35.200000
kb_layout_extents.height = 21.600000
kb_layout_extents.x_bearing = 2.400000
kb_layout_extents.y_bearing = -20.800000
[...]

While string itself doesn't change, when you start typing password, and have password ring visible, extents, created from the text, are changed to second set of values, while erasing password and allowing ring to disappear resets it to the first set.
I really have no idea why this is happening. I might want to read more about cairo and text extents, and also try checking other values.

image path doesn't work

Hi,

image_path = /home/fritz/Bilder/Wallpaper.jpg
in the config.ini doesn't seem to work, or am I doing something wrong here?

How did you achieve your screenshot

I was wondering if you can get what is shown in your screenshot by using the config file or if I should modify the code to get the lock icon to show up

pam_tally(i3lock:auth) error

Greetings,

I3lock-fancier still calls the depreciated pam_tally which results in a log of errors in the log upon a failed login attempt.

Jul 11 16:44:15 i3lock[6740]: pam_tally(i3lock:auth): Error opening /var/log/faillog for update
Jul 11 16:44:15 i3lock[6740]: pam_tally(i3lock:auth): Error opening /var/log/faillog for read
Jul 11 16:44:15 i3lock[6740]: pam_tally(i3lock:setcred): Error opening /var/log/faillog for update
Jul 11 16:44:15 i3lock[6740]: pam_tally(i3lock:setcred): Error opening /var/log/faillog for update

Would it be possible to migrate away from Pam_Tally? It has been depreciated for a while and was throwing some errors in the older I3 locks, I3 fancier has yet to incorporate these fixes though.

Any failed auth wants to be written to /var/log/faillog but fails as pam_tally lacks the permissions to do so. The source contains a number or potential fixes.

Source

Add the variant of keyboard

I use both bépo (a french dvorak layout) and the azerty layout.
But they are both displayed as FR…
It would be usefull to add a the variant for example us(dvorak), or us(qwerty), etc.

error with refresh_rate

Hi there,
On my computer the clock is not refreshing, except when I type something. I digged a little and found that the variable refresh_rate had an incorrect value. This seems to be due to the fact you are declaring it as extern float, and then initialize it as a double. Plus, you use %lf to write it (which is used for doubles).

Replacing double refresh_rate = 1.0; by float refresh_rate = 1.0 (settings.c line 50) and ini_sget(config, "clock", "refresh_rate", "%lf", &refresh_rate); by ini_sget(config, "clock", "refresh_rate", "%f", &refresh_rate); (settings.c line 293) solved the problem.

(I assume here that a float is enough for this variable. If not, you can replace extern float refresh_rate; with extern double refresh_rate;, settings.h line 43, instead).

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.