Closed 532910 closed 1 year ago
This project uses the font
setting for the text font, FontAwesome is used for symbols automatically.
Does example command work for you?
What version of FontAwesome are you using? This project requires FontAwesome 6 Free, but all I see in Debian Sid is fonts-font-awesome (5.0.10+really4.7.0~dfsg-4.1), and the page for that package says
Please note that this package provides Font Awesome 4 (not Font Awesome 5 or Font Awesome 6 which are different fonts with different licensing).
I have copied a power symbol from the main.c and put in swaylock config, and it shows it successfully using Font Awesome from debian, thus I believe the issue is not in the debian font.
OK. I have downloaded v4 and put fontawesome-webfont.ttf
and FontAwesome.otf
to ~/.local/share/fonts
, fc-list see them:
% fc-list | grep -i aweso
/usr/share/fonts/opentype/font-awesome/FontAwesome.otf: FontAwesome:style=Regular
/home/sergio/.local/share/fonts/fontawesome-webfont.ttf: FontAwesome:style=Regular
/usr/share/fonts/truetype/font-awesome/fontawesome-webfont.ttf: FontAwesome:style=Regular
/home/sergio/.local/share/fonts/FontAwesome.otf: FontAwesome:style=Regular
but waylogout still shows rectangles
Moreover, debian package version is 5.0.10+really4.7.0~dfsg-4.1
, that means it's 4.7
really.
I had the font name for Font Awesome hardcoded to "Font Awesome 6 Free" but I've now added an option (fa-font
) to specify the name for your Font Awesome font.
So try updating your git repo for waylogout
to the latest commit (291c70b), rebuilding, and then running with option --fa-font="FontAwesome"
which should match the name of your Font Awesome package on Debian.
Awesome! Thank you!
I see just rectangles instead symbols.
font=FontAwesome
sway 1.7-6 debian sidswaylock with
show power off symbol successfully