Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with Icons in Konsole #118

Open
kaefert opened this issue Feb 7, 2019 · 23 comments

Comments

Projects
None yet
@kaefert
Copy link

commented Feb 7, 2019

Expected behavior

The icons should show out of the box on installation and completely. Or the font packages should at least be marked as optional dependency.

Actual behavior

I've installed lsd on my Manjaro KDE laptop. At first I only got empty boxes instead of icons. After reading a bit I found I could get some icons by installing ttf-font-awesome and all of them by installing ttf-nerd-fonts-symbols.

Though those icons look cropped in Konsole, and don't show at all in tty (which shows variously sized filled boxes instead).

screenshot_20190207_152955

I've also talked about this issue in the manjaro forum:
https://forum.manjaro.org/t/replacement-for-ls-lsd-ls-deluxe-icons-problems/74887

And I've aso reported the issue with Konsole here:
https://bugs.kde.org/show_bug.cgi?id=404128

@kaefert kaefert added the bug label Feb 7, 2019

@Peltoche

This comment has been minimized.

Copy link
Owner

commented Feb 8, 2019

Hi @kaefert ,

Thanks for the report. The way your icons are splitted is weird indeed. Which terminal do you use? Can you try on an other one in order to check if it's an issue with your terminal?

@kaefert

This comment has been minimized.

Copy link
Author

commented Feb 9, 2019

Hello @Peltoche !
Yes, it seems to be an issue only in "Konsole" (using version 18.12.1 = default KDE terminal).
I tried "Terminator" (version 1.91.6) which doesn't have this problem.

In either of those two terminals when I select the icons with the text selection tool I see there are two spaces between the icons and the following file name. The first of those two is "covered" by the second part of the icon in "Terminator" but is completely blank in "Konsole".

If I copy some terminal output of either of those containing icons into "Kate" (default KDE text editor) the Icon's will "break" the monospace layout and make lines with icons have a longer visual length then lines with the same number of characters without icons.

If I copy into "gedit" I see not spaces but special character boxes "00 20" after the icons (and there also they break the monospace grid)

In the tty (non graphical environment) I have another issue with icons:
img_20190209_071703 jpg_mod

@Peltoche

This comment has been minimized.

Copy link
Owner

commented Feb 9, 2019

Thanks for all the feedbacks!

For the issue with Konsole I don't know if we can do anything. It seems to be a bug in Konsole. For the tty I guess the issue is related to the font used by default. Some configuration with the setfont command should do the trick.

It would be a good idea to document these bugs, I make an issue.

@Peltoche Peltoche referenced this issue Feb 9, 2019

Open

Improve the documentation #120

1 of 4 tasks complete
@kaefert

This comment has been minimized.

Copy link
Author

commented Feb 9, 2019

thank you for the friendly support!
Could you be a bit more specific about how to employ the setfont command? I have no experience with that stuff..

@Peltoche

This comment has been minimized.

Copy link
Owner

commented Feb 9, 2019

Sorry but I don't have any experience at all in font configuration... I tried some stuff but I didn't succeed.

I just found some useful links:

I will probably try later but for now I don't have the time for it, sorry. I you found any solution please keep us informed.

@xircon

This comment has been minimized.

Copy link

commented Feb 12, 2019

This is a bug in konsole - it also applies to oh-my-zsh/powerlevel9k

bhilburn/powerlevel9k#971

@annata83

This comment has been minimized.

Copy link

commented Mar 4, 2019

Same Problem in URxvt-unicode. This are my fonts:
URxvt.font:xft:TerminessTTFNerdFONTMono:size=12

@emorevival

This comment has been minimized.

Copy link

commented Mar 4, 2019

I've got the same problem in st as well. Running on Archlabs i3, came out of the box like this

pic-window-190304-2239-48

I'm using the mono font

@Peltoche Peltoche changed the title Problem with Icons in Manjaro KDE (Konsole) Problem with Icons in Konsole Mar 5, 2019

@finex

This comment has been minimized.

Copy link

commented Mar 9, 2019

Hi, I've found this, I don't know if it is useful: https://bugs.kde.org/show_bug.cgi?id=390650

Edit: some other are reporting this problem: bhilburn/powerlevel9k#727 (with links to more bug report)

@matthiasbeyer

This comment has been minimized.

Copy link
Contributor

commented Mar 11, 2019

I also have problems in xterm:

2019-03-11-212300_153x47_scrot

Not sure whether this is the same bug or something else.

@emorevival

This comment has been minimized.

Copy link

commented Mar 11, 2019

my problem was fixed after cloning the nerd-fonts repo and running install.sh. It's huge, it takes ages, but it solved the problem. May be solvable by patching whatever font lsd uses for its icons but I needed the entire thing for something else anyway.

pic-window-190311-2129-49

@eikeschott

This comment has been minimized.

Copy link

commented Mar 13, 2019

Have the same issues on Linux Mint 19.1 Cinnamon using Terminator.
lsd
lsd

lsd -la
lsd_la

@DCdeBrabander

This comment has been minimized.

Copy link

commented Mar 18, 2019

Got same icon issue as @eikeschott (and @matthiasbeyer ?)
image

I installed the .deb (running Pop OS! which runs Ubuntu 18.10 underneath)
and I use lsd like this:
image

Open for suggestions :-)

@dummefil

This comment has been minimized.

Copy link

commented Mar 21, 2019

@DCdeBrabander, @eikeschott please read Prerequisites and don't make unrelative to issue posts. Thanks.

@Cory-Watson

This comment has been minimized.

Copy link

commented Mar 23, 2019

Yakuake also seems to be truncating the lsd icons like Konsole does...

yakuake_lsd_icon_error

@BobbyBabes

This comment has been minimized.

Copy link

commented Apr 16, 2019

I just installed from the Arch Community repo, and the icons show up as boxes. This is in Yakuake, which is based on KDE Konsole.

lsd-not-displaying-icons_20190416_135446

In Konsole, clipped icons are displayed like with the others :

lsd-displaying-clipped-icons_20190416_140020

@Cory-Watson

This comment has been minimized.

Copy link

commented Apr 16, 2019

@BobbyBabes do you have any of the Awesome fonts installed? I've had better luck with otf-font-awesome (ttf-font-awesome had trouble with whitespace aka %0020, mainly in i3)

@BobbyBabes

This comment has been minimized.

Copy link

commented Apr 16, 2019

@BobbyBabes

This comment has been minimized.

Copy link

commented Apr 16, 2019

A little improvement. Yakuake now also displays clipped icons. Also, tried with 2 other Awesome fonts installed from the Arch repo. But exactly the same results, Yakuake and Konsole both display clipped fonts. Thanks for trying to help out.

Now in Yakuake :

lsd-displaying-clipped-icons-in-yakuake_20190416_190229

@Cory-Watson

This comment has been minimized.

Copy link

commented Apr 16, 2019

@BobbyBabes, turns out I had aur/awesome-terminal-fonts 1.1.0-2 installed as well.
Konsole and Yakuake both seem to clip off the ends of the lsd icons.

I'm a big KDE fan, but as for terminals I use terminator more than anything else. It seems to handle the lsd icons fairly well...
lsd_testing

@BobbyBabes

This comment has been minimized.

Copy link

commented Apr 16, 2019

You're right that's a great file manager, and so was Thunar. I remember those from when I was a CrunchBang and ArchBang user.
I'm going to uninstall the Awesome fonts. Tell you why. Compare the first 2 screenshots that I posted, to the third one. Notice the slightly off triangles at the end of each folder name in the third one ? I have a hunch that that somehow happened because of the Awesome fonts installation (one of the three that I have installed). After that, I'm also uninstalling lsd because I just found out that it doesn't support the --time-style= option of ls. I usually specify long-iso or even full-iso because I need a year in the date.

EDIT:
The problem with the slightly off triangles is indeed caused by installing Awesome Terminal Fonts. It has not caused by lsd.

The problem is that the ttf-hack, awesome-terminal-fonts, and powerline-fonts (the triangles) are displayed as italic, after installing the Awesome Terminal Fonts. After uninstalling the Awesome Terminal Fonts, the font would still display as italic in Konsole and Yakuake. The weird thing is that in Konsole and Yakuake the Hack font is still configured as regular, although it displays as italic. A change from regular to bold, and back to regular fixed this. I could reproduce all this 3 times in a row.

@matthiasbeyer Show the world that you are from the Dark Ages with your thumb down.

@dumbPy

This comment has been minimized.

Copy link

commented Apr 24, 2019

Screenshot from 2019-04-24 16-02-41
This is what it looks on my machine. upper one is suckless-terminal and lower is gnome-terminal
Can't figure out how to fix it. I patched UbuntuMono (after cloning nerd-fonts and using it's install.sh script). That basically messed up my other fonts but the icons are still cropped. Also tried installing awesome-terminal-fonts , didn't help.

font-awesome and powerline nerd-font are not in options in the nerd fonts install script. 😞

@eclipseo

This comment has been minimized.

Copy link
Contributor

commented Apr 25, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.