GithubHelp home page GithubHelp logo

Comments (10)

PandorasFox avatar PandorasFox commented on June 11, 2024

I'll definitely give this the same treatment as indicator positioning and stuff. Might take me a while since I've got like 3 exams in the next week, though.

from i3lock-color.

PandorasFox avatar PandorasFox commented on June 11, 2024

My motherboard just died, so I'm pretty much upgrading my dev rig to Ryzen now. My progress will be halted until then, so my estimated time on this is probably just end of october for now :&

from i3lock-color.

SuperPrower avatar SuperPrower commented on June 11, 2024

No haste, it's not something that makes program unusable or something. Good luck with your upgrade.

from i3lock-color.

PandorasFox avatar PandorasFox commented on June 11, 2024

This'll be a bit tricky, since I'm trying to find a good way to do it without bringing in any extra libraries - I'd like to stay pretty close to upstream in most regards; the way most other projects do it is sorta hacky.

(though frankly, apparently it's really hard to get the active keyboard layout in C. God knows why.)

If it's exposed through an environment variable at all that'd be ideal, but I suspect that's not the case.

from i3lock-color.

SuperPrower avatar SuperPrower commented on June 11, 2024

What about Xkb library? I have working solution with this library, and I could possibly create pull request with this feature complete and working, if it's ok - i3lock doesn't work with Wayland anyway, so why not to use Xorg library?

from i3lock-color.

PandorasFox avatar PandorasFox commented on June 11, 2024

Actually, the last time I experimented with Wayland, i3lock actually worked when you recompiled and ran it. Not sure about it now with the compositor stuff, but it did work.

I'll keep looking at this - we should already be using the xcb-xkb libs, so that's fine. Most of the other solutions I've seen require x11 libs, which is what I'm trying to avoid, since it'll require more libs to be linked in the Makefile.

from i3lock-color.

SuperPrower avatar SuperPrower commented on June 11, 2024

Ok, I'll try to create pull request sometime soon.

from i3lock-color.

PandorasFox avatar PandorasFox commented on June 11, 2024

heyo!

I had the time to sit down finally. Here's what I have so far.

(I refactored a decent amount of code to make this more maintainable, so it should be a bit easier to do color work in the future).

Currently, the keylayout only shows if the clock / text is showing, and is only checked once (so if your keylayout changes while i3lock is running, stuff will break a bit - not too hard to fix, but I don't think that that's possible?)

I can probably rework it some so that the keylayout always shows, though.

from i3lock-color.

PandorasFox avatar PandorasFox commented on June 11, 2024

This has been merged into master, so in closing this now.

from i3lock-color.

webknjaz avatar webknjaz commented on June 11, 2024

Bug: #115

from i3lock-color.

Related Issues (20)

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.