Creating A Command To Change Fontsize in Alacritty
Read full transcript 9 segments
-
so I'm working on improving my video so I'm working on improving my video recording setup and I plan to do a lot recording setup and I plan to do a lot recording setup and I plan to do a lot more of this kind of screen recording in more of this kind of screen recording in more of this kind of screen recording in the video in the future where I'm the video in the future where I'm the video in the future where I'm recording like my terminal because I recording like my terminal because I recording like my terminal because I mostly work from the terminal and mostly work from the terminal and mostly work from the terminal and um I noticed that the font size is um I noticed that the font size is um I noticed that the font size is actually a little bit too small probably actually a little bit too small probably actually a little bit too small probably for YouTube for YouTube for YouTube and I want a convenient way of sort of and I want a convenient way of sort of and I want a convenient way of sort of changing that and and setting up my changing that and and setting up my changing that and and setting up my environment very quickly to to start environment very quickly to to start environment very quickly to to start recording so I I could be just working recording so I I could be just working recording so I I could be just working or or or doing something else and then I or or or doing something else and then I or or or doing something else and then I decide oh I want to record a video and decide oh I want to record a video and decide oh I want to record a video and then I want to just run a command or two then I want to just run a command or two then I want to just run a command or two to be able to set things up to be able to set things up to be able to set things up very quickly very quickly very quickly to remove friction you know I want to to remove friction you know I want to to remove friction you know I want to remove the friction so it becomes as remove the friction so it becomes as remove the friction so it becomes as easy as possible to produce content easy as possible to produce content easy as possible to produce content so the font size is controlled by the so the font size is controlled by the so the font size is controlled by the alacrity configuration file I use alacrity configuration file I use alacrity configuration file I use alacrity as a terminal emulator and that alacrity as a terminal emulator and that alacrity as a terminal emulator and that is is is located in my DOT files repo so I have located in my DOT files repo so I have located in my DOT files repo so I have this command called dots and it goes to this command called dots and it goes to this command called dots and it goes to my DOT files and here we have the my DOT files and here we have the my DOT files and here we have the alacrity.yaml alacrity.yaml alacrity.yaml and yeah this just has all of my and yeah this just has all of my and yeah this just has all of my configuration and it's actually configuration and it's actually configuration and it's actually available in my GitHub repo my DOT files available in my GitHub repo my DOT files available in my GitHub repo my DOT files repo if you are interested in looking at repo if you are interested in looking at repo if you are interested in looking at my configuration but here it says the
-
my configuration but here it says the my configuration but here it says the point size so point size so point size so let's see if I change this to 60 and I let's see if I change this to 60 and I let's see if I change this to 60 and I write the file then you see it increase write the file then you see it increase write the file then you see it increase the size the size the size so if I write if I do something that so if I write if I do something that so if I write if I do something that modifies this file I can very easily set modifies this file I can very easily set modifies this file I can very easily set up my environments to up my environments to up my environments to um um um to yeah to start recording or to to set to yeah to start recording or to to set to yeah to start recording or to to set everything up so I can record a video everything up so I can record a video everything up so I can record a video so I don't know is 60 a nice size or 70 so I don't know is 60 a nice size or 70 so I don't know is 60 a nice size or 70 let's let's try a few things out 70 I let's let's try a few things out 70 I let's let's try a few things out 70 I think this looks I'm looking at my other think this looks I'm looking at my other think this looks I'm looking at my other screen here I think this might be a good screen here I think this might be a good screen here I think this might be a good size so size so size so normally I have 30 this is how it looks normally I have 30 this is how it looks normally I have 30 this is how it looks when I just read the news for example I when I just read the news for example I when I just read the news for example I this is what I would look like it's this is what I would look like it's this is what I would look like it's actually pretty big I used to have it a actually pretty big I used to have it a actually pretty big I used to have it a lot smaller but I've gotten used to lot smaller but I've gotten used to lot smaller but I've gotten used to using a bit of bigger font and I like it using a bit of bigger font and I like it using a bit of bigger font and I like it um um um so 70 seems to be a good number for the so 70 seems to be a good number for the so 70 seems to be a good number for the recording recording recording so so so um I've learned this philosophy of of um I've learned this philosophy of of um I've learned this philosophy of of creating very small helper scripts for creating very small helper scripts for creating very small helper scripts for yourself this um rwx Rob who is one of yourself this um rwx Rob who is one of yourself this um rwx Rob who is one of my greatest Inspirations in terms of my greatest Inspirations in terms of my greatest Inspirations in terms of command line work he really emphasizes command line work he really emphasizes command line work he really emphasizes this in his beginner boosts and and this in his beginner boosts and and this in his beginner boosts and and other videos and it has completely other videos and it has completely other videos and it has completely transformed the way how I how I work my transformed the way how I how I work my transformed the way how I how I work my workflow and how I interact with the
-
workflow and how I interact with the workflow and how I interact with the with Unix based systems with Unix based systems with Unix based systems sort of always adhering to the Unix sort of always adhering to the Unix sort of always adhering to the Unix philosophy of writing small programs philosophy of writing small programs philosophy of writing small programs that do one thing well that do one thing well that do one thing well and this idea of of creating custom and this idea of of creating custom and this idea of of creating custom Little Helper scripts for yourself Little Helper scripts for yourself Little Helper scripts for yourself so I have so I have so I have I have a I have a I have a collection of scripts here for example collection of scripts here for example collection of scripts here for example week and it will just print out the week week and it will just print out the week week and it will just print out the week the current week number or I have the current week number or I have the current week number or I have another one that's gen date for example another one that's gen date for example another one that's gen date for example and it just it's very simple it just and it just it's very simple it just and it just it's very simple it just it generates the date in a specific it generates the date in a specific it generates the date in a specific format that I like format that I like format that I like um and it's written in bash and I um and it's written in bash and I um and it's written in bash and I actually can use it to also generate actually can use it to also generate actually can use it to also generate markdown headings for example if I do markdown headings for example if I do markdown headings for example if I do gen dates H1 then it generates a head gen dates H1 then it generates a head gen dates H1 then it generates a head heading that I can use in markdown files heading that I can use in markdown files heading that I can use in markdown files which is a very convenient so I have all which is a very convenient so I have all which is a very convenient so I have all these kinds of small little helper these kinds of small little helper these kinds of small little helper scripts and now I'm going to create one scripts and now I'm going to create one scripts and now I'm going to create one to set up my uh my recording environment to set up my uh my recording environment to set up my uh my recording environment so so so um um um first I start thinking of a name so what I could do is I could make a what I could do is I could make a command that command that command that um um um takes an argument
-
takes an argument takes an argument for example make a command that's called for example make a command that's called for example make a command that's called Rec and then Rec start and Rec stop and Rec and then Rec start and Rec stop and Rec and then Rec start and Rec stop and I could bake in a few things that I could bake in a few things that I could bake in a few things that um I got for now I just want to do the um I got for now I just want to do the um I got for now I just want to do the font size but maybe there are other font size but maybe there are other font size but maybe there are other things that I want to do things that I want to do things that I want to do um um um but but but actually actually actually ah let's just go I'll just keep it ah let's just go I'll just keep it ah let's just go I'll just keep it simple now so I'll just make a a very simple now so I'll just make a a very simple now so I'll just make a a very simple script so I'll just start with simple script so I'll just start with simple script so I'll just start with [Music] [Music] [Music] uh start rack I think that's what I'm uh start rack I think that's what I'm uh start rack I think that's what I'm gonna call it so I'm in my scripts gonna call it so I'm in my scripts gonna call it so I'm in my scripts directory and I'll do uh start rack directory and I'll do uh start rack directory and I'll do uh start rack and and and always start with the bin always start with the bin always start with the bin been Dash so it's going to be a bash been Dash so it's going to be a bash been Dash so it's going to be a bash script of course so what what actually script of course so what what actually script of course so what what actually are we gonna do so the thing is that are we gonna do so the thing is that are we gonna do so the thing is that it's a DOT it's in my DOT files I have it's a DOT it's in my DOT files I have it's a DOT it's in my DOT files I have this alacrity.yaml and what we need to this alacrity.yaml and what we need to this alacrity.yaml and what we need to achieve is that we replace this achieve is that we replace this achieve is that we replace this size with a different number and we can size with a different number and we can size with a different number and we can do that by using said do that by using said do that by using said said is the stream editor it takes a said is the stream editor it takes a said is the stream editor it takes a file and you can edit in place and since file and you can edit in place and since file and you can edit in place and since I'm on Mac OS I actually have to use G I'm on Mac OS I actually have to use G I'm on Mac OS I actually have to use G said so you have this gnu utils I think said so you have this gnu utils I think said so you have this gnu utils I think Brew Brew Brew info glue utils
-
GC utils GC utils noodles no that's for certificates well I'll no that's for certificates well I'll look it up later but the thing is that look it up later but the thing is that look it up later but the thing is that uh or is it blue let's see I I have to look this up let's see I I have to look this up because it's it's important because it's it's important because it's it's important gnu said on Mac OS gnu said no I I have new set but it's in gnu said no I I have new set but it's in the new core utilities new core utilities core utils here it is core utils that's core utils here it is core utils that's core utils here it is core utils that's the word the word the word Brew info core utils Brew info core utils Brew info core utils so you have to install uh so you have to install uh so you have to install uh core utils to get the old the the core utils to get the old the the core utils to get the old the the original gnu said to uh on your Mac original gnu said to uh on your Mac original gnu said to uh on your Mac machine machine machine and because there are different Mac has and because there are different Mac has and because there are different Mac has Mac OS or or Darwin and Linux said Mac OS or or Darwin and Linux said Mac OS or or Darwin and Linux said commands are different the the gnu commands are different the the gnu commands are different the the gnu command is different than from the the command is different than from the the command is different than from the the Mac said so to come back to where I was Mac said so to come back to where I was Mac said so to come back to where I was it's I use the GSAT command whereas on
-
it's I use the GSAT command whereas on it's I use the GSAT command whereas on Linux I would just use said so G said Linux I would just use said so G said Linux I would just use said so G said um and then we have to replace um and then we have to replace um and then we have to replace size 30 size 30 size 30 with size uh 70. with size uh 70. with size uh 70. G G G and then alacri.yaml and of course this and then alacri.yaml and of course this and then alacri.yaml and of course this is not gonna work is not gonna work is not gonna work oh I have to do G said I oh I have to do G said I oh I have to do G said I to do an In-Place edit to do an In-Place edit to do an In-Place edit and it's not going to work because we and it's not going to work because we and it's not going to work because we already set it like the file does not already set it like the file does not already set it like the file does not contain a contain a contain a size 30 yet or any more because we size 30 yet or any more because we size 30 yet or any more because we changed it so what is it now it's 70 so changed it so what is it now it's 70 so changed it so what is it now it's 70 so let's change that to 30. let's change that to 30. let's change that to 30. and let's do our said command now yeah and let's do our said command now yeah and let's do our said command now yeah and now it works so we have this command and now it works so we have this command and now it works so we have this command here that will change the size 30 to here that will change the size 30 to here that will change the size 30 to size 70 in my alacrity.yaml size 70 in my alacrity.yaml size 70 in my alacrity.yaml um um um so we have that and I can so we have that and I can so we have that and I can uh first I have to include the path to uh first I have to include the path to uh first I have to include the path to the to the folder the to the folder the to the folder to the directory that has my electric to the directory that has my electric to the directory that has my electric yaml yaml yaml so so so here and then we copy the here and then we copy the here and then we copy the the command like this the command like this the command like this okay okay okay so oh so oh so oh here we go
-
here we go here we go so G set I size 30 to size 70 G Electric so G set I size 30 to size 70 G Electric so G set I size 30 to size 70 G Electric diamo then we go to the end and then add then we go to the end and then add alacrity.yaml here we go alacrity.yaml here we go alacrity.yaml here we go so we have G set I size so we have G set I size so we have G set I size 30 to 70. 30 to 70. 30 to 70. and now this should work so we save that and now this should work so we save that and now this should work so we save that then we do chmod then we do chmod then we do chmod plus X plus X plus X to start wreck so it's an executable to start wreck so it's an executable to start wreck so it's an executable and and and now let's change the size back to 30. here we go here we go so now if I run the start record so now if I run the start record so now if I run the start record recommend in my terminal recommend in my terminal recommend in my terminal it will set it up and it's ready to it will set it up and it's ready to it will set it up and it's ready to record record record and just to show you why that works is and just to show you why that works is and just to show you why that works is because in my bash bash RC I have because in my bash bash RC I have because in my bash bash RC I have configured the path um um path here path here path here and in this path is included the scripts and in this path is included the scripts and in this path is included the scripts you can see here there's a scripts you can see here there's a scripts you can see here there's a scripts variable and let's see what that means I
-
variable and let's see what that means I variable and let's see what that means I just press GD to go to the definition of just press GD to go to the definition of just press GD to go to the definition of the variable and that is dot files slash the variable and that is dot files slash the variable and that is dot files slash scripts and Dot files is configured here scripts and Dot files is configured here scripts and Dot files is configured here which is the repo where we were just now which is the repo where we were just now which is the repo where we were just now so so so that's just how I very quickly made the that's just how I very quickly made the that's just how I very quickly made the script to to configure it like this so script to to configure it like this so script to to configure it like this so let's also make one uh quickly make a let's also make one uh quickly make a let's also make one uh quickly make a stop rack stop rack stop rack and then I'll just copy start rack to and then I'll just copy start rack to and then I'll just copy start rack to stop rack stop rack stop rack and I'll open stop rack and then we just change and then we just change 70 to 30. and and let's see if it's executable already let's see if it's executable already let's see if it's executable already stop rack stop rack stop rack yeah here we go so now I can very easily yeah here we go so now I can very easily yeah here we go so now I can very easily so say I'm working on something and I so say I'm working on something and I so say I'm working on something and I want to start recording I'll just type want to start recording I'll just type want to start recording I'll just type start wreck start wreck start wreck and it will change the font size so I and it will change the font size so I and it will change the font size so I can quickly start and when I'm finished can quickly start and when I'm finished can quickly start and when I'm finished I just type stop rack and it puts it I just type stop rack and it puts it I just type stop rack and it puts it back in its original state so this is back in its original state so this is back in its original state so this is one example how I sort of use small one example how I sort of use small one example how I sort of use small little helper scripts to to enhance my little helper scripts to to enhance my little helper scripts to to enhance my my life on the command line my life on the command line my life on the command line and it it's just so much easier to do it and it it's just so much easier to do it and it it's just so much easier to do it like this and I can expand these
-
like this and I can expand these like this and I can expand these commands to commands to commands to include other functionality as I go include other functionality as I go include other functionality as I go along so I highly encourage everybody to along so I highly encourage everybody to along so I highly encourage everybody to learn bash definitely and to get this learn bash definitely and to get this learn bash definitely and to get this attitude of automating your life in attitude of automating your life in attitude of automating your life in writing small little help scripts for writing small little help scripts for writing small little help scripts for yourself and just put them in a yourself and just put them in a yourself and just put them in a directory and you you slowly you directory and you you slowly you directory and you you slowly you accumulate different things I have many accumulate different things I have many accumulate different things I have many many many many um I have quite a few already which are um I have quite a few already which are um I have quite a few already which are very useful and these are all located in very useful and these are all located in very useful and these are all located in my public my public my public GitHub repo GitHub repo GitHub repo we can show you we can show you we can show you here GitHub here GitHub here GitHub and Dot files and Dot files and Dot files let's see here it is Michelle phone let's see here it is Michelle phone let's see here it is Michelle phone number dot files and I'll also add that number dot files and I'll also add that number dot files and I'll also add that to the to the to the to the to the to the show notes or the show notes the video show notes or the show notes the video show notes or the show notes the video notes as well so that's it and that's notes as well so that's it and that's notes as well so that's it and that's how I uh how I uh how I uh how I like to enhance my life with small how I like to enhance my life with small how I like to enhance my life with small little helper scripts and now I can little helper scripts and now I can little helper scripts and now I can very easily start a new recording so very easily start a new recording so very easily start a new recording so maybe I'll do that maybe I'll do that maybe I'll do that thank you very much for joining and see thank you very much for joining and see thank you very much for joining and see you in the next one
Summary
The speaker is optimizing their video recording setup by adjusting the font size in their Alacritty terminal emulator via a configuration file stored in their dotfiles repository. This allows for quick environmental changes with simple commands, inspired by the philosophy of creating small helper scripts for efficiency. The key takeaway is to remove friction and make content creation as seamless as possible by leveraging configuration management for rapid setup.