YTtoTranscriptTranscribe
YouTube Transcript

ArchLinux com Hyprland - Tutorial Completo ( Parte 2 ) - Configurando Teclas de Atalho e Monitores

TuxStation · 4,104 words · 21 min read · EN

ArchLinux com Hyprland - Tutorial Completo ( Parte 2 ) - Configurando Teclas de Atalho e Monitores
Watch on YouTube

Below is the complete, readable transcript of ArchLinux com Hyprland - Tutorial Completo ( Parte 2 ) - Configurando Teclas de Atalho e Monitores by TuxStation on YouTube. Read the full text, copy any part you need, or generate a transcript for any video with our free tool.

00:01

Hey guys. Welcome to the Textation channel! And in this video we're going to continue our series about Hyperland. In the last video, we installed Hyperland. We made some basic adjustments here , right? We configured our keyboard layout, and we also configured our monitor resolution. And in this video, I want to show you how to set up a

00:24

second monitor and also how to define and customize your own keyboard shortcuts. So I'll start by opening the terminal, pressing Windows IQ, and once again we're going to edit that hyperland file. However, from now on I'm going to start using VS Code to edit the files, okay? I recommend you do the same, at least while you

00:44

're watching this video series. So, I'm going to type code here and I'll pass the path to the file, which is ponfig/hyper/hyperland.conf. Remember that this is a hyperland file. Conf is the main Hyperland configuration file. So I'll press enter. He's going to open VS Code for me here. I'm going to close this

01:08

terminal window by pressing Windows C. And here in VS Code, the first thing I'm going to do is disable this message that it displays at the top of the screen. If I don't do this, it will display this message every time we open a file here for configuration. So I'm going to click here on

01:24

manage, then I'll click on trust, I'll click on configure, and here on this screen, in this first box that's marked as until dismissed, I'll change it to never. And I do the same for this second box that's marked here with a value of once. I also change it to never. By doing this, VS Code will no longer display that

01:44

message. I'll also take this opportunity to change the font size. So, in this search field here, I'm going to search for "font" and change the font size property from 14 to 20, okay? You don't need to do this, okay? I only did this because I'm recording the video and I think it's easier

02:01

to see with a larger font in the video, right? Okay, so to set up a second monitor, first we need to have information about it. And how do we get the information about the monitor? I explained this to you in the last video. So, we open the terminal and type ` hypertl monitors all`, which will list

02:22

all your monitors with their respective information, right? Well, in my case, I only have this monitor called virtual trace one, okay? But if I had a second or third monitor, they would be listed right below this information about the first one. And in that case, each of them also displayed all that information about themselves there. And the

02:44

main information you need to gather here is the name of your monitor. So, in this case here, it's called virtual dash one. This second value here is its current resolution, along with the refresh rate. So, currently it's in Full HD 60 Hz, which is the resolution of my monitor, right? And down here it shows the available modes,

03:04

which are the possible modes you can use on your monitor. And as I said in the last video, my monitor is a Full HD monitor, but the virtual machine doesn't detect that and displays values ​​like 4K here, even though my monitor doesn't support it, okay? So, in your case, if you're using a real computer, it will

03:24

only display the values that your monitor supports, okay? So, in my case here, I don't have a second monitor, so I'm just going to simulate it as if I had what's called virtual dash two, for example, right? So, I'm going to close this terminal here and I'm going to set up a second

03:39

dummy monitor. Okay, so I'm going to move to the next line and write "monitor" as is, and I'll also enter its values ​​here . First is the name, then virtual dash two. Like I said, that monitor doesn't exist, okay? It's just fiction. Then the resolution along with the refresh rate. So, this monitor here

04:00

will also be a Full HD 60 Hz. So, I set it to 1920 by 1080 @ a refresh rate of 60. And now I specify the positioning. And the positioning is what will change from one monitor to another. So, to illustrate this, I made a drawing here, look. Let's imagine that this rectangle in the middle of this image is

04:24

my first monitor. So, it's the Full HD monitor, which is in position 0 and zero. Why 0 and zero? The first zero refers to the X-coordinate, which is the horizontal axis, while the second zero refers to the Y-coordinate, which is the vertical axis. So basically, the zero and zero position is this upper left corner of the

04:45

image. So, what does this mean? That means that starting from that zero point, it will draw a rectangle that has the dimensions I specified for it. So, he's going to draw a rectangle that's 1920 by 1080, right? The image will fit perfectly on my monitor. And if I had a second monitor and wanted to add

05:06

it to the right of the first, for example, I would have to start drawing the second monitor exactly where the first one ends. If the first monitor starts at zero and is 1920 pixels wide, then it consequently ends at 1920. In other words, this is where I have to start designing my second monitor. So,

05:27

on the second monitor, in the positioning, I would put 1920 pixels on the X-axis and zero on the Y-axis, right? Because I want it to start being drawn up here at the top as well. If I were to place the 1080p here on Y, my second monitor would be drawn here in this

05:44

lower part. So, it would be diagonal in relation to the first one, right? That's not what I want. I want the monitor to be positioned exactly to the side. That's why I only change the value in x. And it 's basically the same thing on the left side , right? However, when we use

05:58

values ​​that go to the left on the X-axis, we have to use negative values, right? Because values ​​below zero are negative. And the same thing happens on the Y-axis, okay? So if you want to position the monitor higher or lower, you have to adjust the Y-axis. Downwards are positive values and upwards are negative values, okay?

06:17

So, in this example, let's simulate as if my monitor were to be to the right of the first one. So, how would I do that calculation? First, I take the initial position of the first monitor, which is zero. And what are its dimensions? It is 1920 pixels wide. So it is from this point, where the

06:37

first one ends, that I would have to begin the second. So I would put 1920 on the X-axis and zero on the Y-axis, and then I would also specify the zoom scale rate, which will also be the value one, right? I'm not going to save this file because, as I said, this monitor doesn't exist, right? He is

06:55

merely a fictional character. But if you have a second or third monitor, this is how you add them, okay? But if you had a third monitor, you could just specify it below, along with its dimensions, name, and positioning, right? But always taking into account the dimensions and positioning of the other two, okay?

07:15

I'm going to delete these two here, save my file, and now we'll move on to the keyboard shortcuts section . So I'll scroll down here until I reach the keybindings section. This section here, this keyboard shortcut section is the largest section in our archive, right? It occupies this entire area here. Each of

07:37

those lines that starts with bind is a keyboard shortcut, right? A set of keyboard shortcuts that you press to do something. And how do keyboard shortcuts work here in Hiperland? Hyperland uses a key that it calls the primary modifier key. And by default, this primary modifier key is set to be the Super key, which

08:00

is the Windows key, the key with the Windows symbol, located next to the Control key. So this main mod variable is the same as saying that I have to press the super key, which is the Windows key. So each of these shortcuts here that has "bem mod," " main mod," "bem mod," this here is

08:18

basically the Super key, which is the Windows key, okay? You can even change that modifier key, but it does n't accept all keys, okay? He only accepts a few. For example, the Windows key, it also accepts the Alt key, right? The left alt key, so I would put "altis" here to change this key, but in my case I'll

08:38

leave the default value, which is the super key, which corresponds to the Windows key. And here are the shortcuts, some of which I've already explained to you, right? So, for example, pressing the Windows key plus the Q key will launch the terminal. And what is this terminal variable? It's Kiri, right? It's defined up here

08:55

. So this variable here, its value is defined up here. And if I change this value up here, for example, to console, I wouldn't need to change it down there, right? Because what determines which program it will have to open is precisely the value of the variable. So, in this case, I'm going to use the

09:14

default terminal, which is Kiri. Of course, nothing prevents it. If I wanted to, I could remove this variable from here and just put Kiri directly in, right? If I save the file and press the Windows key Q, it will open the terminal in the same way, right? right? Because I directly entered the program name, it

09:33

leaves it with variables here, right? So, for example, the terminal is just for organizational purposes, okay? Okay? So, for example, here it also has, look, it's the shortcut key to open the file manager, right, which in this case is Dolphin. I could also change this file manager to Dolphin, but instead of doing that, I prefer to leave it as a

09:52

variable, just for organizational purposes. So, this way you can define all the programs you'll use only in this session here, okay? And here are some other shortcuts you can play around with , right? So, for example, Windows IQ, you know it runs the terminal, Windows C kills the active window, right, which is the window you have the

10:14

mouse cursor over, the window with the lit border. Windows M closes Hyperland and returns to the TTY screen. To run the main module, press the Windows key + E, and it will launch the file manager, which in this case is Dolphin. Press Windows + V to activate floating window mode. So, if I

10:32

press Windows and V here, it activates the mode where I can control and resize this window however I want, right? She will act independently of the styling. And if I press the Windows key again, it goes back into place with the tiling. Windows R, it executes the menu. And who's on the menu? It's the

10:49

RFI, which is also configured up there . main mod IP, it activates a different mode than the window, right? I don't use this option myself, but you can play around with it too. So, if I press here, for example, Windows IP, and the window, when you resize it, it resizes in a more

11:07

uniform way, right? But I don't like doing this, I don't see much use in it. But you might also want to leave the window in that mode. So, if I press the Windows IP button again, it reverts to the traditional mode, right? Eh, and main mode J, it toggles the mode in which the screen is split.

11:22

So, for example, if I press Windows J here, it splits horizontally. Windows J again, it splits vertically. Actually, horizontally it's the same vertically, right? So, you switch between the mode in which you want to split your windows, and you can change that to your liking, right? Sure, there are a few other options down here, but

11:44

you generally don't mess with these, right? You just need to configure these additional settings up here. Not that you can't change this , you can, okay? You can change any of these options here, but you're unlikely to want to change them, right? Because his own settings here are very good. So, I'm going to close

11:59

this window here by pressing Windows C and I'm going to configure it the way I like to use it on my computer. But what I'm going to do here is something I enjoy, and you can customize it however you want, okay? The important thing is that you understand how to do it. So, every time this

12:17

variable 'main mod' is written here, it's basically referring to the Super key, which is the Windows key. So, always press the key before the comma, which is the Windows key, but the key after the comma will do something, okay? So, for example, to open the terminal, I like to change... I prefer to use the

12:33

Windows key and enter to open the terminal. The enter key, it has a different name, right? It's the return key. So you put `return` here if you want to use the enter key. So if I save the file and press Windows and enter, it will open Kiri for me. To close a window, I also like

12:51

to switch. In this case, I prefer to use three keys. Yes, three keys. You can also define shortcuts with more than two keys. And how do you do that? You specify all the first keys before the comma, and only the last key you leave after the comma, okay? So, for example, to close a window, in my case, I like

13:10

to use the Windows, Shift, and Q keys. So, if I want to do that, I put the Windows key and the Shift key before the comma, and after the comma, I put the last key, which is Q. Then, if I save the file, I'll position the mouse here above the terminal and press Windows, Shift,

13:31

and Q. And it closes the terminal, okay? Okay? So, if you want to use a shortcut with more than two keys, this is how you do it. You specify the first keys before the comma and the last key after the comma. To conclude Hyperland, I'll leave Windows MMO. To run Dolphin, which is my

13:49

file manager, I usually use my Windows ID, partly because of its name, right? Windows ID opens Dolphin. To enable floating window mode, I like to use Windows IW here. To activate the menu, I use Windows and E. I don't use that pseudocode, so I leave this value as default. I could even remove this from here, but I'll leave it. And to

14:14

switch between split window modes, I use the Windows key plus the left Alt key. And I specify the left alt key in this way. So I put alt underscore L here. Saving the file, if I open the terminal again, press Windows and another key, it switches the split mode, right? Again, to close, as I changed it, just press

14:36

Windows Shift and Q, okay? But of course, like I said, you can customize this to your liking, okay? It's important that you understand how to configure it. If you only want to press two keys , you place one before the comma and one after. If there are more than two keys, you put all the

14:53

first ones before the comma and only the last one after the comma, okay? I'd also like to add a keyboard shortcut here to activate full screen mode, right? Full screen and also maximize a window. And how do you add a new keyboard shortcut? Just let her know below. So I'm going to move to the next line here

15:12

and enter the new shortcut key. So I'm setting bind here to a modifier key, that is, the Windows key. And which other key? The spacebar. Then put a space here. What is he going to do? Activate full-screen mode. So I'll put the full screen command here. If I do this, save the file,

15:32

and press the Windows key plus space, it activates full-screen mode. So, notice that the window touched the edge of the monitor, right? But in my case here, what do I do? Press Windows key + spacebar to maximize the window, and then press Windows key + shift + spacebar to activate full-screen mode, okay? So what am

15:52

I going to do? I'm going to copy this line and do the following: press the Windows key plus shift and space, then it will activate full-screen mode, right? So, Windows Shift + Space, it activates full screen mode, toggles it on and off, right? And to maximize a window, just add a comma and then the number one in front of "full screen," okay? By

16:16

doing that, I'll open another window here, for example. If I press Windows and space now, it will maximize the window, meaning it will hide the other windows, but the active window will not touch the edge. So, for example, look what's going to happen. Windows Space is maximized, but the window doesn't touch the edge of my monitor. Now,

16:38

when I press Windows Shift Space to activate full screen, then it actually touches the edge of the monitor and it's literally full screen mode , right? And I could also add here that it's a shortcut key to open the internet browser, right? I do n't have any to do that. I installed Brave, remember I

16:58

installed Brave in the last video? So you can configure it for any internet browser you have installed, okay? Firefox, Brave, Chrome, any browser out there. So I'll add a sucker key for it as well. So I'm going to write "bind" here, just like the Windows key. So, main mod F. What am I supposed to do? To execute. Then

17:19

put the exec command here. Whenever you're going to run a terminal command or a program, you have to include this parameter here as well, okay? So, after the shortcut, you put ` execula` and after the comma, you put what you want to execute. So, for example, Brave, which is an internet browser. Here, I could do it in

17:38

two ways. Either I can leave it literally like this, directly specifying the name of the program I want to open, or I can add Brave, create a variable, right, to define which internet browser I'm using. And that's what I like to do, purely for organizational purposes, okay ? So, here below the menu, I'm going to

17:57

create a new variable, and I can name it whatever I want , right? So, for example, I could put "browser" here, but I'll give it a different name, I'll call it " Internet Browser," so "Internet_line Browser," which is the same as Brave. And down there in the shortcut settings, instead of using the name Brave directly,

18:20

I use the name of the variable I created above, which is Internet Browser, okay? This is just for organizational purposes, because by doing it this way, if later on I decide to change browsers, I can just come to this section where I define my programs and change it from Brave to, say, Firefox, for example, right? So

18:40

I'll leave the value as Braven. As I said, it's purely for organizational purposes. You can enter the name directly below if you want, okay? So, we can test that out. I'll save the file by pressing Ctrl+ S and then I'll try opening the browser. But first, in order for me to display the browser, I have to exit

19:00

full-screen mode, right? So, I'm going to press Windows, Shift, and Enter for full screen, and then open Brave by pressing Windows and F, but it didn't open. I think I already know what the problem is. In the last video, we didn't install a very important package, which is a password manager, okay? And you can use the one from

19:18

Gnome, you can use the one from KDE, whichever you want, right? In this specific case, I prefer to use the one from Gnome, which is the Gnomic Ring package. Hello. That's right. It displayed this window here because we don't have a password manager installed, okay? Okay? So I'm going to close this window by pressing Windows Shift + Q, which

19:36

is the key I just configured here, and I'm going to install the Gnomic Ring package first, okay? So, let me zoom in here on the terminal so you can see, and I'm going to install this package. So sudo Pacman- Saiusculo Gnome King. This is optional, okay? If you want the KDE version, you install the KDE version, or any

19:54

other version you prefer to use. So, in this specific case, I prefer to use the one from Gnome. So, I'm going to install this package, I'm going to enter my password, and now, for it to work, I'll have to restart my computer, okay? So I'm going to restart here, press Windows IM to return to the TTY, and I'm

20:13

going to type "shoot down men R now" here.

20:26

Okay, folks, I restarted my computer here. Now I'm going to press the shortcut keys that I set up there. So, Windows F. And now it shows me here to add a password, right? Create a password here for Brave. So, I'll create a really simple password as well. 1 2 3. I'm going to

20:39

confirm this password. Oops. Confirm this password on the line below. 1 2 3. Continue. And now Brave is working, okay? It was actually a good thing that this problem arose, because this is a very important package. We shouldn't have forgotten to install it in the last video, but as I said, if you want to

20:55

install the KDE version, you can install it there, it's up to you, okay? So, that's basically it, right? So, I'm going back here to close the window using Windows Shift + Q. So now, guys, for the keyboard shortcuts, I'm going to use the ones I defined here, okay? So that's why I'm not going to keep saying which

21:11

keys I'm pressing anymore, okay? As I said, you configure your keyboard shortcuts however you like. The important thing is that you understand how the structure works, okay? So I'll go back to that file over there. So code.configh hyperhyperland. So, going back to the file, the important thing is that you understand that when

21:31

you want to configure a shortcut with only two keys, you put the first key before the comma and the second key after the comma. When you want to add two, three, or more keys, you set the first keys before the comma. So, in this case here, for example, Windows and Shift come before

21:46

the comma, and the last key goes after the comma, okay? So guys, that's basically all I had to say to you. This video ended up being a little shorter, but that's because of this problem I'm having with the noise, okay? Because here, as I said in the last video, where I live the noise is unbearable.

22:05

Cars and motorcycles are constantly passing by, neighbors are listening to loud music, and there's that construction next to my house that I told you about in the last video, which is also quite disruptive. So, I rarely have a quiet moment to record videos for you guys, okay? So I ask you to be patient, and as soon as I can,

22:20

I will release the following parts. I'm going to try to record the videos a little shorter because of this problem. So I ask you to be patient. The videos might take a little while to come out, but don't worry, I will release them, okay? So thank you in advance for your understanding, right? So I'll

22:37

stay here for now. Thanks, bye. M.

Transcribe another video

Paste any YouTube, Instagram or TikTok link to get a free transcript.

Free · No sign-up · Unlimited