dnkl changed the topic of #foot to: Foot - fast, lightweight and minimalistic Wayland terminal emulator || 1.8.2 || https://codeberg.org/dnkl/foot || channel logs: https://libera.irclog.whitequark.org/foot
ino has joined #foot
<ino> Hi! :) in my foot terminal emulator the colors are very bright than usual (like the colors i used in alacritty in the past, i just copied them in foot). how can i fix this? and is it a normal behavior? thanks! :)
<ericonr> ino: can you share a screenshot for that?
<ericonr> colors between alacritty and foot are exactly the same for me
<ino> hi ericonr! thanks for your reply. i didnt quite figure out yet how screenshoting on wayland works, so i have to dig a bit deeper into it! '=D
<ericonr> what compositor are you using?
<ericonr> WM has a useful grimshot wrapper around grim/slurp
<ericonr> you can use that
<ino> i am using river :)
<ericonr> s/WM/sway/
<ericonr> you can still use grimshot from sway
<ericonr> but you can also just dump the entire screen with grim
<ericonr> grim out.png
<ino> thanks! i will definately try these tools now! also, i am using river. i promise its a really really cool compositor!
<ericonr> I suppose it must be, for ifreund to be working on it so much ;)
<ino> haha
<ino> hi ericonr! here is it. i dont know if the difference is quite visible. https://imgur.com/ojt0Ttb
<ino> (in the picture)
<ino> right side is foot.
<ericonr> yeah def visible
<ericonr> but also no idea what it's about
<ericonr> are you sure your configs are exactly the same?
<ericonr> did you remember to configure brightN colors in foot too?
<ericonr> otherwise if they are unset in both terminals, the algorithm to choose the bright variant could be different for each one
<ino> ohh. thanks though for your time :) ohh! i really didnt do that. i am doing it now and will tell you what happens after!
<ino> also your `grim` suggestion is marvellous. it has worked like charm! i will be sticking to it, so easy to use.
<ericonr> :)
<ino> :)))
<ino> hi ericonr. sorry for pinging you again. would you like to share your `foot.ini` file? :) i think i am missing something in my config.
<ericonr> no probem
<ericonr> problem
<ino> thank you so much for your kindness!! :))
<ino> you have such minimal config! my config is 100 lines long. haha
<ericonr> part of my reason to switch from alacritty was the config size :p
<ericonr> I could make foot do what I wanted with very few manual options, and that was a very welcome change
<ino> do you also use foobar (that is now called yambar, created by dnkl )
<ino> if i type someones name here he gets pinged
<ericonr> Yes, he does get pinged
<ericonr> And no, I'm currently still using waybar
<ino> waybar only supports plseaudio, thats why i had to move to yambar!
travankor has joined #foot
ino has quit [Quit: Client closed]
<ericonr> Now I'm curious what ino uses for sound :p
caughtquick has quit [*.net *.split]
ollysmith has quit [*.net *.split]
ollysmith has joined #foot
caughtquick has joined #foot
V has quit [*.net *.split]
lh has quit [*.net *.split]
rumpelsepp has quit [*.net *.split]
jcgruenhage has quit [*.net *.split]
ynakao has quit [*.net *.split]
cherti has quit [*.net *.split]
jcgruenhage has joined #foot
ynakao has joined #foot
cherti has joined #foot
rumpelsepp has joined #foot
lh has joined #foot
V has joined #foot
jcgruenhage has quit [Ping timeout: 256 seconds]
caughtquick has quit [Ping timeout: 272 seconds]
lh has quit [Ping timeout: 256 seconds]
mvdan has quit [Ping timeout: 240 seconds]
testuser[m] has quit [Ping timeout: 272 seconds]
rumpelsepp has quit [Ping timeout: 256 seconds]
elshize has quit [*.net *.split]
avane has quit [*.net *.split]
ecs has quit [*.net *.split]
dnkl has quit [*.net *.split]
alice has quit [Remote host closed the connection]
dnkl has joined #foot
avane has joined #foot
elshize has joined #foot
ecs has joined #foot
alice has joined #foot
sterni has quit [*.net *.split]
sterni has joined #foot
sterni has joined #foot
sterni has quit [Changing host]
Amanieu has quit [*.net *.split]
hexa- has quit [*.net *.split]
hexa- has joined #foot
Amanieu has joined #foot
dutchie has joined #foot
caughtquick has joined #foot
ino has joined #foot
mvdan has joined #foot
testuser[m] has joined #foot
ino has left #foot [#foot]
jcgruenhage has joined #foot
rumpelsepp has joined #foot
novakane has joined #foot
lh has joined #foot
sterni has quit [Quit: WeeChat 2.9]
sterni has joined #foot
yyp has quit [Remote host closed the connection]
yyp has joined #foot
sterni has quit [Quit: WeeChat 2.9]
sterni has joined #foot
novakane has quit [Quit: WeeChat 3.2]
kmarius has joined #foot
novakane has joined #foot
fnurkla has joined #foot
novakane has quit [Quit: WeeChat 3.2]
<lanodan> Only pulseaudio? *uses waybar fine with pure alsa*
<lanodan> Ah nah, sndio my bad
<lanodan> Then I guess they either use JACK or pure ALSA, maybe pipewire but I think it allows to use pulseaudio API
<ericonr> yeah I use waybar with pipewire via the pulse widget
<ericonr> I wrote the sndio module, but switched to pipewire due to bluetooth
radu242407 has quit [Quit: The Lounge - https://thelounge.chat]
radu242407 has joined #foot
emersion has joined #foot
ddevault has quit [Quit: Why do I even put this quit message in if I never quit]
ddevault has joined #foot
arolle has joined #foot
birger has joined #foot
fnurkla has quit [Quit: WeeChat 3.2]
amk has quit [Ping timeout: 268 seconds]
amk has joined #foot
amk has quit [Ping timeout: 268 seconds]
amk has joined #foot
birger has quit [Remote host closed the connection]
novakane has joined #foot
birger has joined #foot
<lechner> Hi, my home directory is an NFS mount. Could that be a reason why foot takes 16 seconds to start locally?
<alice> if you pass --config to something outside home like dev null does it magically speed up
<lechner> alice: that's interesting! it makes no difference
<alice> i seem to have forgotten what else foot might use from home
<dnkl> lechner: how fast is "foot true"?
<lechner> dnkl: that was possibly a second longer, at 17 seconds
<dnkl> lechner: then I'd suggest strace:ing foot and see where it stalls
<dnkl> lechner: another possibility; how many fonts does "fc-list" show?
<lechner> dnkl: 7491
<dnkl> Then that's likely your problem...
<alice> i have half of that and it's instant
<alice> seems a bit extreme to jump to 17s suddenly
<dnkl> Hmm, ok, then an strace please :D
<lechner> alice: are you on a local disk?
<Arnavion> The fc cache is in ~/.cache, so if ~ is an NFS mount...
<alice> yeah not nfs, but just by number alone
<dnkl> Arnavion: good point...
<lechner> the nfs is local, but also encrypted with gocryptfs
<Arnavion> I have 7k fonts too, and I know that if I wipe out ~/.cache it takes ~5s for fc to just rebuild the cache. And this is on a local NVME SSD
<Arnavion> But that's only for the first start, of course. Subsequent starts foot starts instantly
<lechner> why does foot need to read all those fonts?
<dnkl> Still... lechner: if you run "strace foot" does it stall completely?
<Arnavion> fontconfig makes a cache
<dnkl> It doesn't load the fonts. But it needs the charset map for each font, to be able to do correct glyph fallback lookups
<dnkl> Like Arnavion says, fontconfig caches this, so should be fast. But if the cache is on NFS, it's possible it will slow things down
<lechner> dnkl: it does not stall, but it stats each font (and apparently opens it)
<dnkl> Hmm, could it be that fontconfig isn't creating the cache, for some reason?
<Arnavion> Does strace -fe file -- foot print any lines for ~/.cache ?
<Arnavion> eg openat(AT_FDCWD, "/home/arnavion/.cache/fontconfig/6107fe98-7ebc-45e2-9d5d-d0e121c6b996-x86_64.cache-7", O_RDONLY|O_CLOEXEC) = 3
<lechner> dnkl: i do not think that's the issue. i seem to have functioning cache
<lechner> Arnavion: yes, lot's of them
<Arnavion> And they all return fds instead of -1 ?
<sterni> dnkl: I have > 9000 fonts in fc-list and never found foot to be slow to start up :p
<dnkl> lechner: can you post the full strace somewhere?
<lechner> sure, it's coming. I also lots of access to ~/.local/share/fonts/
<Arnavion> I only have ~10 of those
<Arnavion> but that's presumably because it doesn't exist so they all fail with ENOENT
<lechner> i did not know i had those
<dnkl> Fwiw, when i strace foot, it doesn't actually load a single font, except my primary font. Everything else are just accesses to the cache, and the font *directories*
<lechner> does it stat?
<lechner> dnkl: strace at https://innovametro.com/log.xz
st3r4g has joined #foot
<dnkl> lechner: I'll take a look at it soon. In the meantime, try running "sudo fc-cache -fs", and then try launching foot again
st3r4g has quit [Read error: Connection reset by peer]
st3r4g has joined #foot
st3r4g has quit [Client Quit]
<lechner> dnkl: that command returned relatively quickly, and did not change foot's startup time noticably
<dnkl> lechner: is the output from a "strace -fe file ..." run? If so, could you redo it with just "strace foot"?
<lechner> dnkl: sure
<dnkl> lechner: and also try running "fc-cache -f" as your regular user
<lechner> dnkl: also, what are glyph fallbacks, please, and why does foot need be able to look them up for all fonts instead of just the one being used?
<dnkl> lechner: when your font doesn't have a glyph, foot needs to find a font that does. FontConfig provides a list of fallback fonts to use (try "fc-match -s <font-name>"). Before actually loading one of those fallback fonts, foot check its charmap to see if the font has the glyph or not. This charmap is something that fontconfig provides, and should be one of the things that is cached.
st3r4g has joined #foot
<dnkl> I'm guessing your cache is outdated, and that fontconfig is forced to actually load all fonts to be able to get the charmap data
<dnkl> lechner: could also be that your fonts, and thus the cache, is in your user directory, on NFS. Might be slow to load that many fonts, even when properly cached.
<Arnavion> Yes, they have fonts in ~/.local/share/fonts and in ~/.fonts
<Arnavion> They're also not the same sets, so it's not even that one is a symlink to the other
<Arnavion> Why do you have so many fonts in your homedir?
<lechner> Arnavion: you should see my garage!
<lechner> but i should look into those non-links. i think i copied those fonts into ~/.fonts years ago
<lechner> dnkl: the strace log is up. same link
novakane has quit [Quit: WeeChat 3.2]
elshize has quit [Ping timeout: 245 seconds]
elshize has joined #foot
lilblacky has joined #foot
hexa- has quit [Quit: WeeChat 3.1]
hexa- has joined #foot