You are not logged in.

#1 2022-03-27 16:01:24

karabaja4
Member
From: Croatia
Registered: 2008-09-14
Posts: 951

lf - Unicode icon set

The de facto approach to enabling icons in lf is using nerdfont or by patching your favorite monospace font with fonts patcher.

I don't like either approach, former doesn't have the fonts I want, while latter messes with the font files (in my particular case, it messes with the line height) and appending huge sets of icon fonts to a monospace font feels hacky.

However, there is a solution: Unicode!

These days Unicode includes huge number of emojis and images, and I picked a collection of them to represent most common file types.

Example:
161369458-db3e828b-f4dd-433f-96af-5efcc897604e.png

Source: https://github.com/karabaja4/arch/blob/ … f/icons.sh

Obviously, to make this work, you need a terminal emulator that properly supports Unicode. To use, copy or source the above script to your shell rc.

Last edited by karabaja4 (2022-04-02 06:13:09)

Offline

#2 2022-03-27 16:09:35

tucuxi
Member
From: Switzerland
Registered: 2020-03-08
Posts: 245

Re: lf - Unicode icon set

Very nice, I may use that. Out of curiosity: why a glass of red wine for .exe?

Online

#3 2022-03-27 16:11:34

karabaja4
Member
From: Croatia
Registered: 2008-09-14
Posts: 951

Re: lf - Unicode icon set

tucuxi wrote:

Very nice, I may use that. Out of curiosity: why a glass of red wine for .exe?

Because I use wine to run the .exe smile

Offline

Board footer

Powered by FluxBB