GithubHelp home page GithubHelp logo

Comments (11)

cornerman avatar cornerman commented on July 18, 2024 1

Great that it works again :)

from i3-easyfocus.

cornerman avatar cornerman commented on July 18, 2024

Hmm, I am also on arch, but it is still working for me.

Can you manually compile with debug flag and see whether the output gives any additional information?
You can do this: make clean debug.

from i3-easyfocus.

tuncenator avatar tuncenator commented on July 18, 2024

Thanks for the quick reply! That's what I got:

tunc@BEER ~/.i3/i3-easyfocus$ make clean debug                                                                                      master   12/02 [14:05] 
Cleaning
CC src/win.c
CC src/i3-easyfocus.c
CC src/ipc.c
CC src/xcb.c
CC src/map.c
Link i3-easyfocus
tunc@BEER ~/.i3/i3-easyfocus$ lsd                                                                                                   master   12/02 [14:06] 
total 92K
▕ drwxr-xr-x ▏tunc:users│<  sec │   4K│src
▕ -rw-r--r-- ▏tunc:users│35 sec │  35K│LICENSE
▕ -rw-r--r-- ▏tunc:users│35 sec │ 564B│Makefile
▕ -rw-r--r-- ▏tunc:users│35 sec │ 1.2K│README.md
▕ -rwxr-xr-x ▏tunc:users│<  sec │  31K│i3-easyfocus
▕ -rw-r--r-- ▏tunc:users│35 sec │  11K│screenshot.png
tunc@BEER ~/.i3/i3-easyfocus$ ./i3-easyfocus                                                                                        master   12/02 [14:06] 
[src/xcb.c:23] request failed: cannot open font. error code: 15
error initializing xcb

A font issue?

from i3-easyfocus.

cornerman avatar cornerman commented on July 18, 2024

Indeed sounds like a font issue. According to the manpage of xcb_open_font, it can only return a name error, which means the font was not found on the system.

The font is defined in config.h. Can you check with xlsfonts (install xorg-xlsfonts) whether this font is available on your system?

xlsfonts -fn "-Misc-Fixed-Bold-R-Normal--18-120-100-100-C-90-ISO10646-1"

If it is not available, please try a different font. xlsfonts returns a list of supported fonts if no argument is provided. Please let me know, whether this helps.

from i3-easyfocus.

tuncenator avatar tuncenator commented on July 18, 2024

Helpful indeed. Thank you very much. I don't know what happened to the other font, though still this is resolved.

Panicked a bit there as I really have gotten used to using easyfocus 😄

from i3-easyfocus.

AdamSLevy avatar AdamSLevy commented on July 18, 2024

How can I install the proper font on Arch? What font package would this be in?

from i3-easyfocus.

cornerman avatar cornerman commented on July 18, 2024

How can I install the proper font on Arch? What font package would this be in?

That is a good question. It seemed like a good default at that time because it was available on all machines I tested. Maybe we need a different one?

Otherwise, you can still configure a different font in config.h. Or we could add an option to choose the font at runtime

from i3-easyfocus.

AdamSLevy avatar AdamSLevy commented on July 18, 2024

I'm not familiar with programming applications for xorg but it seems to me that there should be a way to dynamically determine an available system font. If it were me I wouldn't consider this issue closed until you have a solution that works out of the box more robustly.

However recompiling with a different font in config.h is not a big deal for me. Thank you

from i3-easyfocus.

cornerman avatar cornerman commented on July 18, 2024

@AdamSLevy There you go :)

from i3-easyfocus.

AdamSLevy avatar AdamSLevy commented on July 18, 2024

Brilliant! Thank you so much!

from i3-easyfocus.

cornerman avatar cornerman commented on July 18, 2024

You can now set the font via argument, for example:

i3-easyfocus -f "-misc-fixed-medium-r-normal--20-*"

from i3-easyfocus.

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.