And while we are playing this game: fc-list -f "%{file} " Of course, I wanted to use both awk and sed in this video to expose potential new users to those tools.
@lorenzocabrini3 жыл бұрын
@@LoweryAustin Yes, but the benefit of pipes is that application developers don't need to duplicate functionality that is already provided by other tools. It keeps the tools smaller and the developer can focus their attention on what the tools needs to do. I almost always prefer to use pipes.
@bahathir_3 жыл бұрын
Great. Understood. I also started with very basic shell scripting. Just use the tools as basic as possible. It is a good way to understad the basic functions of each tools.. Time to time I look deeper into each tool's features. Acctualy we can use perl, python, .. to get similar results.. :) My advice is learn and not afraid to make mistakes.. If not sure, just build a VM to play GNU Linux . Keep the good good work to spread the knowledge.. Thank you.
@chigozie1233 жыл бұрын
Even simpler $fc-list : file DT seems to be having too much fun with command line EDIT: This is not a shell trick. The ":" is part of the command that fc-list understands. This is just saying _show us just the file name_ EDIT2: To remove the colon near the end, use $fc-list --format='%{file} '
@bahathir_3 жыл бұрын
@@LoweryAustin The purpos of dt's script is to extracts filepath from the fc-list, and to display each font how it's looks like. Yes, "man" is your man. :)
@kylebriffa73 жыл бұрын
People use "The quick brown fox jumps over the lazy dog" because it contains all the letters of the English alphabet
@edupazz3 жыл бұрын
No, the actual version is "the lazy brown dog jumped a fox once" hahaha
@DavidLindes3 жыл бұрын
@@edupazz you got an s in there? Or a q? Or..... yeah, no. Kylebriffa7 had it right. Though there are others. The above is just one example of something called a Pangram. There are others. When I took an ASL class, and was learning finger spelling, we actually had the assignment of coming up with one, to demonstrate our learning of the full alphabet. More info on the Wikipedia page for Pangram.
@edupazz3 жыл бұрын
@@DavidLindes have you watched the video?
@DavidLindes3 жыл бұрын
@@edupazz yes, and on a rewatch, I noticed that you were quoting directly rather than making up some other bogus version. I didn’t bother to change the comment, though, because the core of it, to my mind, namely the informational aspects of why these things are relevant and what they’re called, remained valid. Sorry for missing your humor, though.
@edupazz3 жыл бұрын
@@DavidLindes okay, peace ✌️
@TangoIndiaMike1443 жыл бұрын
Give this man a medal for not dismissing the "basic questions". Been a long time linux user and pretty new to your channel DT, but I just want to say thank you for producing such high quality linux content.
@thingsiplay3 жыл бұрын
DT gets impressed by the neat little GUI app. DT: You actually don't need all these nonsense stuff.
@MyReviews_karkan3 жыл бұрын
All I've ever done is search the font I wanted on the web, download a ttf/otf file and double click it, a window pops up that has an image of how it looks like and a "install" and "cancel" on the title bar, hit "install" if I liked it or "cancel" if I didn't. After that I'd go and change to it from the settings. Never knew about "font managers" nor the terminal. Honestly. Lol Edit: just realized that I've been watching your videos for a while without subbing. Haha You've got a new sub, sir.
@anandrajaram213 жыл бұрын
Are you kidding me dt? I had just installed arch linux from scratch, and wanted to change my font to a better one, but I couldn't, so I decided to live with my bad font. And holy goddamn moly, I see you upload a linux font management video. Did you just read my mind?
@damiencalloway3 жыл бұрын
The quick brown fox jumps over the lazy (yellow) dog. I learned this with the word yellow, but you can actually leave that out and still get a sentence where each letter appears at least once
@AndersJackson3 жыл бұрын
No Å, Ä and Ö änywhär whåt I see ovör there. :-)
@anshul4933 жыл бұрын
the quick brown fox jumps over the lazy dog
@gunnerjoe53 Жыл бұрын
Hello, Thinking maybe a different color scheme for terminal when you’re on camera, really hard to read that powder blue. Not bad when zoomed.
@1958indyfan2 жыл бұрын
I am new to linux and I am wondering if you could recommend a youtube channel where I could view tutorials where they explain WHY something is done instead of rushing through command lines?
@ScottSteely3 жыл бұрын
Speaking of fonts, I got your DWM packages from the AUR and I can't change dmenu's font size even tho I've changed the config.def.h and recompiled. Any help brother?
@DistroTube3 жыл бұрын
Make sure you delete the config.h file (so you only have the config.def.h file) before recompiling.
@ScottSteely3 жыл бұрын
@@DistroTube thanks, that did the trick!
@alexberenson50803 жыл бұрын
Hey DT, I just wanna know what application do you use as your terminal welcome screen which givens you different colorful objects everytime you open termial? like sometimes its pacman sometimes its just bars of colors and all.
@jomaweb8813 жыл бұрын
I need it too
@alexberenson50803 жыл бұрын
@@jomaweb881 actually they are his shell color scripts. here is his gitlab link gitlab.com/dwt1/shell-color-scripts
@PatrikTrefil3 жыл бұрын
Your script does not work properly (at least on my system). If there are any fonts that have spaces in the file name, it won't work (e.g. Ubuntu Mono Nerd font). I have modified the solution to this: fc-list | grep -oP "^.*?(?=:)" (start from the beginning of the line, go up to the first column and don't include the column)
@DavidLindes3 жыл бұрын
Another, arguably better solution, is to replace the awk and sed combo with: cut -d: -f1 This gives “field 1” of what’s assumed to basically be a spreadsheet with the delimiter of a colon. Awk’s $1 is doing the same sort of thing, but with a whitespace delimiter. Using awk’s IFS variable and setting that to : would also work (and also not need sed).
@buttonsplaymusic48962 жыл бұрын
Which fonts can you NOT delete from usr/share/fonts ? I have a lot, and they bloat my fonts lists (in programs like LibreOffice, image editers, etc. I want to remove those I don't want, but I don't want all text on my OS to turn into square boxes. Can you like delete all of them except one or a few, so that you can keep seeing the text on the GUI?
@siddharthchhetry42183 жыл бұрын
Hey dt please make a video on how to configure bar in wm
@nekoill3 жыл бұрын
You must be reading my mind!
@zaccstacc45683 жыл бұрын
anyone know how to get emojis to show on arch? They all show up as squares in my browser and terminal (urxvt)
@AndersJackson3 жыл бұрын
You need to install a Unicode font that have those in them.
@lorenzocabrini3 жыл бұрын
Fonts, my favorite topic. NOT! I finally managed to get readable Japanese fonts in Emacs only to upgrade Emacs and be back to unreadable fonts again. I'll fix it the day it bothers me enough. I gave up on org-drill and went back to Anki, so currently it's not a pressing issue for me. I preferred font handling on the Commodore 64. It never gave me problems.
@abarocio803 жыл бұрын
display $(locate "$(fc-list | awk -F':' '{print $1}' | sed -e 's/^\/.*\///' | dmenu -l 20 -p "Font Viewer")" | head -n 1) This will do the trick with shorter names.
@tinygriffy3 жыл бұрын
... i like gucharmap ;)
@bahathir_3 жыл бұрын
$ xfontsel
@Gomotianu3 жыл бұрын
I was right, wasn't i? DT is getting more and more noob friendly.
@DistroTube3 жыл бұрын
Or maybe YOU are becoming more "leet"? :D
@Gomotianu3 жыл бұрын
@@DistroTube "I don't even knoe what that means but i totally agree!" This has been my fantastic experience running linux so far and it fits here perfectly :D
@jamegumb72983 жыл бұрын
@farEvil Dee You mean 1337.
@sophosvanalles62653 жыл бұрын
You should compile a bunch of these basic out of the box scripts for new users as "intro packs". New users have now idea how to use Linux without reliance on 3rd party apps (I'm pretty new myself) and would really benefit from a pack of nice clean scripts.
@chigozie1233 жыл бұрын
This video is missing the most important aspect of font management and that is actually being able to use those fonts i.e. font configuration. Using fc-list/fc-cache to manage your font files is cool, but if your system still looks like sh*t after that, you've not really helped yourself. The freedesktop fontconfig library has more to offer than just looking at fonts. DT please make another video which references this one, but this time show people how to actually change certain aspects about their system's fonts i.e. doing actual font configuration, and creating an actual /etc/fonts/fonts.conf or $XDG_CONFIG_HOME/fontconfig/fonts.conf file. This is the one I based mine off of for reference: gitlab.com/smac89/dotfiles/-/raw/991e6b6dbfa19d7524b4ad4b663f2d2ad5744a01/.config/fontconfig/fonts.conf if anyone is interested, checkout: www.freedesktop.org/software/fontconfig/fontconfig-user.html They have an example fontconfig file near the bottom of the page.
@lawrencedoliveiro91043 жыл бұрын
You can have your own personal custom font config file without having to modify /etc/fonts/fonts.conf.
@chigozie1233 жыл бұрын
@@lawrencedoliveiro9104 indeed that's why I mentioned xdg_config_home
@bobgrimes86183 жыл бұрын
I have always installed ms core fonts ever since I got into Linux in 2008.
@DannyMexen93 жыл бұрын
Yes, this is good thing to do especially if you work at an office where the primary office suite is Office
@gimcrack5553 жыл бұрын
@@DannyMexen9 That's the main reason for me. Having the ms-core-fonts, helps keeping things looking the same while sharing office documents and vice-versa
@lawrencedoliveiro91043 жыл бұрын
I don’t think Microsoft uses those fonts any more.
@McDuffington3 жыл бұрын
So what is the difference between using this script, versus using a different 3rd party tool? Looks to me like those "3rd party" get the job done quicker, easier and prettier. Not that I disagree; I also don't like it when people use additional software for something that's already built-in.
@DannyMexen93 жыл бұрын
On a clean install, I install power line patched fonts and ms core fonts.
@HenriqueNewsted3 жыл бұрын
DT your colorscheme is lacking some contrast on the blue colors, it is very hard to read the commands showing in blue when you are on terminal. Don't take this a critic, please, i am just saying cause probably some other people are struggling to read them, too.
@trupusss3 жыл бұрын
Hi DT, thanks for the video! I found that your script can't pipe fonts that have spaces in their names. AWK just cuts the column on the first space encountered. I have no experience with sed or awk. If someone has a quick fix, that would be nice. EDIT: quick fix: awk -F: '{print $1}' instead of awk and sed
@killaken20003 жыл бұрын
I have always use $HOME/.fonts and find that to be the easiest way for me
@lawrencedoliveiro91043 жыл бұрын
Let me offer some of my own utilities: Creating a full font chart of any font, showing the Unicode coverage and any unmapped glyphs: github.com/ldo/python_freetype_examples/blob/master/font_chart . For really large fonts, trying outputting the chart as multipage PDF or PostScript files rather than PNG. Generating samples of any number of fonts using the traditional “lorem ipsum” text: github.com/ldo/qahirah_examples/blob/master/bulk_font_sample . You can also pass it .zip files (e.g. downloaded from the usual font sites), and it will generate samples of any included font files. Try going through hundreds or thousands of fonts with a GUI, and you will soon appreciate the value of command-line utilities... Collecting information on OpenType font features into an SQLite database, that you can query to see which fonts you have that support which features: github.com/ldo/python_fontconfig_examples/blob/master/collect_opentype_fonts . Oh, and for a bonus, here www.deviantart.com/default-cube/art/Region-Flags-861126407 is a display of all the national/regional flag symbols in the Noto Color Emoji font.
@fandigilidubis51843 жыл бұрын
Actually, for this kind of task (previewing fonts), this GUI program is like 420 times better. No need to force yourself to do everything from the terminal. And if you don't want to bloat your system, there is a utility called web browser...
@AndersJackson3 жыл бұрын
No need to force yourself to learn lots of small GUI:s when you can do it from command line. But if using small GUI:s works for you, good for you. (Yes, I also uses GUI:s like Emacs).
@fandigilidubis51843 жыл бұрын
@@AndersJackson You don't need to "learn" those small GUI programs. They're usually very intuitive. Terminal is good for small and uncomplicated tasks. But if you prefer to do such things as previewing fonts from cli, then I'm not gonna stop you
@AndersJackson3 жыл бұрын
@@fandigilidubis5184 *swishhhh*
@xynyde02 жыл бұрын
@@AndersJackson it takes not more than 2 minutes to install font-manager, open it and install/delete/set fonts. Who will spend time writing scripts and using terminal just to view fonts?
@AndersJackson2 жыл бұрын
@@xynyde0 you have not managed some computers I guess. If you ever managed 5 or more machines, you will understand that using GUI to install things is way inferior to do automatic installations. That is cripts, programs without GUI. And yes, two minutes is way to long doing such a simple task.
@chigozie1233 жыл бұрын
Just download font manager. Everything you've shown in this video can be done with font manager. I'm not sure why it wasn't working for you. I'm also on arcolinux and I have fontmanager installed. Also the .xz extension is just the package format from github releases. The PKGBUILD script will produce the correct format required by pacman
@micaelviana3 жыл бұрын
Your solution is more friendly, I don't understand why every Linux tutorial needs to be done in Terminal
@xynyde02 жыл бұрын
@Terminalforlife (LL) what's so complicated about the font-manager?
@copper4eva3 жыл бұрын
DT can you do a video on pimping out conky? I think it's actually a fantastic system monitor with a lot of potential, but there just isn't a lot of videos on it. Nor do you see it often on unixporn.
@rawjam85423 жыл бұрын
Thanks DT, Interesting stuff as always! I've been a Nubie for the past 10 yrs, Haven't needed to do anything with fonts, Maybe i just want an OS that works! However there's a lot of folk that seems to know better, Is there some sort of intellectual competition going on , With some jobs worth! Anyhow I like your content, I'm learning from it!
@jimwinchester339 Жыл бұрын
What's 'dmenu'? I can see how it works, and so I can probably write a shellscript workalike, but I've got a brand-new Debian 12 install here. What distro are you running? Or what religion did I fail to join? If you're going to do a video filled with lines like "just basic stuff here..." - - that's one of them.
@n4p3r03 жыл бұрын
Oh, this is useful for me, thanks!
@Academic_nomad3 жыл бұрын
Do one Video on Linux eco-systems, some-day. I would love to have an open-source eco-system,
@tibish3 жыл бұрын
I would not recommend fontmatrix ... it is a large program and is still buggy on the latest stable version. Not to mention it takes 6+ minutes to install on a i9 9900K with 64 GB RAM and a high-end nVME. Better stick with the command line tools at your disposal. All-n all, great video @DT
@yjk_ch3 жыл бұрын
I personally use .fonts directory on my home. It seems to work well, and I am the only user of my computer. So not having font system-wide doesn’t really matter. I think I also ran fc-cache -v without sudo. This will probably update cache only for the current user, but it’s OK to me.
@chigozie1233 жыл бұрын
Yup when he said to use sudo I was a bit puzzled because I've never had to do that. Always just ran fc-cache and everything worked out fine
@lawrencedoliveiro91043 жыл бұрын
~/.fonts is deprecated. I think the recommended per-user location is ~/.local/share/fonts. Help reduce dotfile clutter!
@yjk_ch3 жыл бұрын
@@lawrencedoliveiro9104 Thanks! I didn’t know that.
@killaken20003 жыл бұрын
@@lawrencedoliveiro9104 I prefer dot clutter for things that _I_ want. I'm opposed when it's added by some program without my permission
@lawrencedoliveiro91043 жыл бұрын
@@killaken2000 fontfonfig is moving away from that, though.
@thenextpoetician63283 жыл бұрын
Hey DT, how about a look at Wmderland and Frankenwm? Next to no one is looking at these. A couple of us using Arco have taken a look or two. Wnderland is pretty cool and I have no clue what's the issue with Franky. lol Also, you chose hard to read colors for your terminal. :)
@ridhowijaya79593 жыл бұрын
Hey DT, is posible to have multiple .vimrc file ? because is feel suck when have hundred configuration line mixed in one file example i have vim script name "ridhorc" and i want that file link to .vimrc
@bjornotto983 жыл бұрын
I dont have the display command availiable and pacman cant find it, whats the name of that package? Its hard to google because so many searches include the word display..
@thundreturtle3 жыл бұрын
You did explain everything but one needs a lot of preknowladge to follow the video. It is by no means noob friendly :D
@hotshot24720103 жыл бұрын
great video! i do have one question though.. not about fonts but about your terminal. how to you set it to show the completed command before you finish it? that's pretty cool and that would be helpful for the work i do. thanks
@DistroTube3 жыл бұрын
I'm using the fish shell. It remembers everything you've ever done in it and it becomes almost psychic in its ability to predict what I want. :D
@hotshot24720103 жыл бұрын
@@DistroTube nice! Thanks for the quick reply. I'm using the zsh shell right now but seeing that makes me want to switch to fish
@chigozie1233 жыл бұрын
Try zsh-autosuggestions. No need to switch shells (yet) for this feature.
@aniketfuryrocks3 жыл бұрын
Hey DT can you discuss the Nvidia and Linux Kernal 5.9 issue.
@DirkDittmar3 жыл бұрын
Great lesson of what you can do out of the box without fancy GUI apps! Just look what is in your box and learn the magic of the terminal!
@maxarendorff65213 жыл бұрын
Interesting. `display` unfortunately doesn't work with '.otb' type fonts though.
@metastag3 жыл бұрын
Am I the only one who opens libreoffice just to preview the fonts 👀
@codestalk91833 жыл бұрын
linux life is the sum of grep, sed, awk, cut, ls...
@RA-rf4nz3 жыл бұрын
Speaking of fonts ... is that matrix rain screen behind you done with a script or a video on a loop? I've been looking for a script or algorithm to make my own. Have not found one yet though. Thanks!
@Orangejuice90003 жыл бұрын
Get the 'cmatrix' package
@lawrencedoliveiro91043 жыл бұрын
14:47 Alternatively, it would be handy to be able to ellipsize the long names on the left rather than the right.
@StanislavVlasic3 жыл бұрын
In fc-list command, why use sed when you can do all with just awk? fc-list |awk -F ":" '{print $1}' works just fine
@AndersJackson3 жыл бұрын
There are plenty of ways to do this, which I guess you already seen. The purpose was to demonstrate how pipe works.
@caerphoto3 жыл бұрын
What if I wanted a visual preview of all the fonts, in list form, so I could quickly scan through them to find the one that looks how I want?
@NinjAaaron873 жыл бұрын
Looking for this exact thing, did you ever find an app?
@Lyunpaw3 жыл бұрын
Hey new to linux users, let me show you how to write scripts just to see your fonts; cause that'll bring'em to the table.
@lawrencedoliveiro91043 жыл бұрын
Try going through hundreds or thousands of fonts with a GUI, and you soon learn to appreciate the value of command-line utilities ...
@lawrencedoliveiro91043 жыл бұрын
4:48 Don’t put your own fonts in /usr/share/fonts. Put them in /usr/local/share/fonts.
@lawrencedoliveiro91043 жыл бұрын
@Learn Linux Because /usr/share is for stuff installed by your distro package manager.
@PaulNaama3 жыл бұрын
I always copy windows fonts to /usr/share/fonts then run fc-cache -fv because I need Arabic fonts too. And Ubuntu Arabic fonts are crap in Firefox.
@lawrencedoliveiro91043 жыл бұрын
Better to put them in /usr/local/share/fonts.
@lawrencedoliveiro91043 жыл бұрын
You know what they say: a word to the wise is sufficient.
@NoBody-pf2nv3 жыл бұрын
1:18 The editor had too much coffee.
@hhtt373 жыл бұрын
Maybe "/usr/local/share/fonts" is a better place for system wide manual installed fonts There is a lot of fonts available in standard distro: apt search font; apt search ttf dnf search --all font ttf But, How to search in Arch? pacman -Ss 'fonts|ttf'; yay -Ss ???
@Maldito0113163 жыл бұрын
What about bitmap fonts? Or fonts for the tty? How do those even work?
@rayanez3 жыл бұрын
I've been using Linux on and off for years (10+), and now Manjaro is my daily driver; I've done shell scripting on AIX, some perl scripting, I've installed different distros allong the way, and I'm confortable using the terminal, but I'm a developer not a sysadmin, and I have to confess that I've used Linux as a tool and I haven't tinker a lot with it, so there are a lot of things that DT does that I've never done that make me feel like a complete noob to Linux
@herrbanane3 жыл бұрын
Awesome content. I'm currently struggling to get the correct UI font size in Firefox. It's just to small. I tried modifieng the xorg.conf monitor dimensions, but that didn't help. I would really like firefox to use the system font size. Is there any other way to achieve that? Thanks in advance! :)
@alt24582 жыл бұрын
For the script you could have used the font names for the list, given that you had it available. Still a graphical program would make more sense as in this script you made you can't preview in real time and you have to go one by one. That's not user friendly on cases where you are looking for an specific font.
@user-sw1wq8lh2w2 жыл бұрын
I think if you're going to use flags, it's helpful to know what they are. -f --force Force re-generation of apparently up-to-date cache files, overriding the timestamp check‐ ing. -v --verbose Display status information while busy.
@w_shakes_3 жыл бұрын
This not related to this video at all...but I can't find the answer elsewhere, I'm using dwm and I want to increase my cursor size lxappearance doesn't have the setting. Anyone know?
@w_shakes_3 жыл бұрын
Thx I haven't see a xcursor line in my xresources file or I may be blind. The xresources file is in the home dir that one right. I'm using an arch based distro all the dconf stuff I saw on the Internet in relation to Ubuntu won't work for me I don't have the same options in dconf editor
@w_shakes_3 жыл бұрын
OK I'll try that
@w_shakes_3 жыл бұрын
Thx very much it worked I had to reboot for it to take effect, but it worked
@xade83813 жыл бұрын
A video on btrfs
@aehjr13 жыл бұрын
Nicely done, thanks. You just reminded me one more thing to do on my new PC...install additional fonts.
@kylestubblefield34043 жыл бұрын
The quick brown fox jumps over the lazy dog.
@MrSammotube3 жыл бұрын
The quick brown fox jumps over the lazy dog
@wolfwolf33043 жыл бұрын
First
@AtomToast3 жыл бұрын
Can you also do a video about fontconfig? I absolutely hate it and always break it
@GetGood53 жыл бұрын
thx
@lawrencedoliveiro91043 жыл бұрын
7:38 This is where the fc-match command can come in useful, e.g. fc-match space file family looks for the font which best matches a name like “space”, and lists its full filename and its actual family name.
@atharvakokate63883 жыл бұрын
can you do a video on configuring i3blocks like the way you have?
@youp1tralala3 жыл бұрын
Fonts are bloat. The only one you need is Terminus.
@furiousfellow15833 жыл бұрын
legit i'll be using this to install comic sans
@BenitoF20093 жыл бұрын
Hey DT! Is there a way to print a list of samples of all fonts on the system in one pdf file and every fonts name is displayed in the corresponding font. For MS Word there was a macro that can do exactly that. Is the a alternativ way to do that on linux in terminal or libreoffice?
@lawrencedoliveiro91043 жыл бұрын
The font name is one of the least useful things to use to give a sample of the font.
@BenitoF20093 жыл бұрын
@@lawrencedoliveiro9104 That ist true. But for me enough for a quick overview. Certainly a version with additional sample text would be good, if not better.
@davidepierrat90723 жыл бұрын
Have not even watched the video yet, but thank you so much I needed this soo much
@sumnerd693 жыл бұрын
"OMG!Ubuntu!" is the most soyboy thing I've heard in a long time
@CoolGuyAtlas3 жыл бұрын
Yeah it's really gay. But I guess that's the crowd who'd be excited over 'only a little spyware' Ubuntu.
@bafi293 жыл бұрын
That site is older than you think.
@johnnycochicken3 жыл бұрын
It's a bit of a silly name but I've loved that site for many years
@lawrencedoliveiro91043 жыл бұрын
Is “gay” a bad thing?
@walterhwhite13923 жыл бұрын
@@lawrencedoliveiro9104 no, just gay.
@moai8343 жыл бұрын
You could have just set separator in awk instead of using sed tho.
@urugulu16563 жыл бұрын
even easier: display `fc-list | cut -d: -f1`
@DistroTube3 жыл бұрын
True but I purposely wanted to show both awk and sed.
@micaelviana3 жыл бұрын
If you are a newbie reading this, just install a GUI program
@tibebeselasiemehari75033 жыл бұрын
What distro (and wm) is this? Garuda?
@supremedeity90033 жыл бұрын
He uses ArcoLinux with Xmonad
@tibebeselasiemehari75033 жыл бұрын
@@supremedeity9003 thanks
@AlucardNoir3 жыл бұрын
10:54 Don't apologize, just use a GUI fond manager.