You are not logged in.

#1 2024-04-10 15:39:44

b42
Member
Registered: 2023-07-20
Posts: 203

How do I properly put an icon to file?

I am using lf file manager and have custom icons for it.

I have a .png image which I want to use for some categories. How do I properly paste that .png icon to my rc config file?

I have xclip installed on my system.

Last edited by b42 (2024-04-10 16:47:09)

Offline

#2 2024-04-10 16:48:10

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,459
Website

Re: How do I properly put an icon to file?

Lf has icons??  It's a terminal file manager.  What icons are you referring to?


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2024-04-10 17:09:06

b42
Member
Registered: 2023-07-20
Posts: 203

Re: How do I properly put an icon to file?

you can have your custom icons for different file extensions

Offline

#4 2024-04-10 17:12:24

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,230

Re: How do I properly put an icon to file?

I'm assuming what you actually mean is fonts that look like icons/emojis and what you're actually looking for is a way to make your custom image a custom font code point to include.

You'd probably have to edit your favorite font and massacre an unused code point. Admittedly not my strong suit either but look into fontforge/this tutorial: https://fontforge.org/docs/techref/autotrace.html

Last edited by V1del (2024-04-10 17:16:36)

Offline

#5 2024-04-11 08:37:57

b42
Member
Registered: 2023-07-20
Posts: 203

Re: How do I properly put an icon to file?

not exactly, I have an icons file where I take my icons from, but I don't know how to paste an additional icon there, for example I want to add this:

https://icons8.com/icon/19293/code

an example of my icons file:

? lollipop
? custard
? honey pot
? baby bottle
? glass of milk
☕ hot beverage
? teapot
? teacup without handle
? sake
? bottle with popping cork
? wine glass
? cocktail glass
? tropical drink
? beer mug
? clinking beer mugs
? clinking glasses
? tumbler glass
? pouring liquid
? cup with straw
? bubble tea
? beverage box
? mate
? ice
? chopsticks
?️ fork and knife with plate
? fork and knife
? spoon
? kitchen knife
? jar
? amphora
? globe showing Europe-Africa
? globe showing Americas
? globe showing Asia-Australia
? globe with meridians
?️ world map
? map of Japan
? compass
?️ snow-capped mountain
⛰️ mountain
? volcano
? mount fuji
?️ camping
?️ beach with umbrella
?️ desert
?️ desert island
?️ national park
?️ stadium
?️ classical building
?️ building construction
? brick
? rock
? wood
? hut
?️ houses
?️ derelict house
? house
? house with garden
? office building
? Japanese post office
? post office
? hospital
? bank
? hotel
? love hotel
? convenience store
? school
? department store
? factory

basically my question is this:

How do I paste that specific icon to my simple text file?

Last edited by b42 (2024-04-11 08:45:43)

Offline

#6 2024-04-11 12:44:40

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,459
Website

Re: How do I properly put an icon to file?

You don't.  Period.

I see that LF does have something it calls "icons", but it does not use images like pngs.  It only uses character glyphs / emojis.  You put the glyph you want displayed in your icons file.  You need to find / create a font with a glyph similar to that png image as V1del described.

Last edited by Trilby (2024-04-11 12:47:27)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#7 2024-04-11 12:47:00

b42
Member
Registered: 2023-07-20
Posts: 203

Re: How do I properly put an icon to file?

So what I need is a font which contains the glyph that I want?

Offline

#8 2024-04-11 12:47:57

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,459
Website

Re: How do I properly put an icon to file?

Yes.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#9 2024-04-11 12:48:39

b42
Member
Registered: 2023-07-20
Posts: 203

Re: How do I properly put an icon to file?

where do I start looking for it?

Offline

#10 2024-04-11 12:56:46

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,459
Website

Re: How do I properly put an icon to file?

The internet.

Or if you want a good strategy - actually read post #4.

Realistically, though, I'd recommend looking through the emojis available in the font you are currently using and just pick one you like.

Last edited by Trilby (2024-04-11 13:04:11)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

Board footer

Powered by FluxBB