ArchLinux com Hyprland - Tutorial Completo ( Parte 4 ) - Polkit, Cliphist, e Correções no Dolphin
TuxStation · 4,184 words · 21 min read · EN

Below is the complete, readable transcript of ArchLinux com Hyprland - Tutorial Completo ( Parte 4 ) - Polkit, Cliphist, e Correções no Dolphin by TuxStation on YouTube. Read the full text, copy any part you need, or generate a transcript for any video with our free tool.
Hey guys. Welcome to the Textation channel! Let's continue our series on Hyperland. In this video, we're going to make some corrections to Dolphin, enable the PKIT service, and configure cliph, which is the clipboard manager . But before we get into the subject of this video itself, I'm going to make two changes that I
forgot to make in the last video. The first one is in my internet browser. So I'm going to open Brave here. And Brave is a browser that by default uses a theme that is neither GTK nor QT, right? It 's a theme of his own, which he calls his classic theme. And it's a visually
clear theme, right? And since in the last video I changed the look of my entire system to a dark theme, I want my browser to use a dark theme as well, right? And doing that is quite simple. You go to those three little lines that he has here at the top right of the screen. You
come to settings. On this screen you will see here in appearance. And here's the theme that, for now, is marked as a classic theme. Here you can select whether it uses GTK or QT. Since I configured both in the previous video to use the dark theme, whichever one I choose will leave my browser with a dark theme. I'm
going to use GTK here because I like the contrast it creates in the address bar, okay? But if you want, you can use QT without any problems. I'll leave it at that using GTK. And in addition to that change, I also need to configure a flag here, okay? It 's very important that you also
configure this flag in your browser, if you use a browser that is based on Chromium, or Chrome, or Google Chrome, or Brave, or any other browser that uses the same base, the same technology. And to configure this flag here in the address bar, you're going to type the following: Chrome dot pont/flags and press enter on this
screen. Right away, it has a search field at the top, right? Here you will search for Ozone and it will list for you this property called Ozone Platform. You need to change the value of this property from default to Wayland. It's very important that you make this change, because it fixes several problems you
might be having in your browser using it, okay? So I'm going to click here to restart. Once that change is made, I'm going to close my browser. And now the second change I need to make is in my VS Code, right? Because in the last video I configured my entire system to use the JetBrains font. I
'm not using it in the terminal or the system interface as much, but I forgot to configure it in VS Code, okay? So I'm going to open VS Code and I'm going to open some random file here. I'm going to use hyperland. So, code.config/hyper/hyperland.conf. It
can be any file, okay? Just so I can get a general idea of what the font looks like here in Photoshop. And setting up the font here is pretty simple, right? You go to that gear icon it has down here, go to the settings option, and down there you'll find a property called "font family". And here you're
basically going to put the font you want to use at the beginning of this list, which will always be read from left to right, right? If he's going to try using that font on the left. If she's not available, he'll try the next one, and if that's also not available, he'll try the
next one, and so on. And to configure a font that you want, you 'll simply put it here at the beginning of this list. So I'm going to put a comma, and before the comma, in quotation marks, I'm going to put the name of the font I want to use. And the font I
want to use is also a Jet Brains font. So here I'll put Jet Brains mono, nerd space, source space. Each source you want to include here has a specific way of being added to this list, okay? It's important that you research beforehand how to configure the font you want to use here. In the case of Jet Brara, this is
how you write it. You put Jet Brandrains mono, all together, and the nerd font separately. If I come back here to my hyperland archive. From the configuration, it will already be using the font I set up. So now, let's get to the subject of this video itself. So, starting here, we need to fix
this Dolphin problem, where when you try to open a file, it simply displays a blank window saying that you don't have any associated program capable of opening that file. And this is a problem that will occur regardless of which file you try to open. Whether it's an image file, a text file, or a video file, it will always
show you this empty window. In fact, if you look here in the properties of your file, by right-clicking and going to properties, the "open with" option will always have this value in front, no associated application. And if you try to change this, it doesn't even show you the menu to select your application, right? Okay? So we're
going to start by fixing this. First, to display this menu, when you click the change button, you will simply install a package called KDE CLI Tools. To install this package, I'm going to open the terminal and type here: sudo Pacman -S (uppercase KDE hyphen CLI hyphen Tools). Confirm the installation. With this package installed, if I look at
my file properties and click that button again, look, now it displays the menu for me to select the program I want. But he still doesn't show the list of programs , right? In other words, it doesn't detect any applications on my computer that are capable of opening this file. And for it to perform this detection, we
have to install another package. So, again, I'm going to close these windows I have open, open the terminal one more time, and now I'm going to install a package called Art Linux XDG menu. So, I'm going to type here sudo Pacman-Suc Linux dash XDG, dash menu. Confirm the installation. Now that this package is installed,
we need to configure an environment variable here in the system. And the name of that variable is xdg_line menu underline prefix. And as the value for this variable, you're going to put " art" with a dash in front of it, okay? This graphic value with a dash in front of it refers to the package
we just installed, okay? And besides defining this variable, you need to run a command here called KBILD Sy Coca 6. Like this, okay? Cabild Coca 6. When you press enter, it should display this message here for you. Taca build running like this here. If this appeared to you when you open Dolphin and
try to open a file, for example, an image, look, it was able to open the file. But he's still using Brave to open the images, right? And I installed an image viewer called Keview. So, I'm going to make that change. I'm going to close Brave, go to my file's properties, and then go to
the "change" option. Look, now it's showing me the list . But I'm going to change the order of this list, right? I'm going to prioritize what I saw here. But look what happens when I click here to apply. He simply loses his bearings again. And if I try to open that image again, well, we're back to
square one, right? In other words, to fix this problem permanently, we need to add that environment variable and that command to our hyperland file. So that every time our system starts, it automatically sets that variable and runs that command for us. So, once again, we're going to edit the hyperland file. I'm going to
type code.config/hyper/hyperland.config here. And here in this file, firstly in the environment variables section , right, below the variables that we configured in the previous video, I'm going to configure that XDG menu prefix variable. So I'll put it down here. Env = Xdg_line menu underline prefix. And here, instead of using an equal sign, we use a
comma to indicate the value, right? So I'm going to put the comma, and as the value of this variable I'm going to put 'arte' here, a little line in front of it. But in addition to configuring this variable, we need to ensure that the cabil command is run as soon as our Hyperland starts. And to do that,
we need to configure it here in the environment variables section; there's a section called auto-start, right? This is the Auto Start section, where you can define any program or terminal command that you want to run when your Hyperland starts up. It has some values here that are configured by default, right? But they've all been discussed. And to
add a program or command for automatic execution, basically you 'll type `exactes` here, put an equals sign, and then the name of the program or command you want to run. So here I have to put that K build coca 6 command. If I save my file, close my Hyperland and open it again,
I'll go back to Dolphin and try to open that file again. And look, it's already working. And if I try to change the program here in the list, going to properties, to change, look, I'll try changing it back to Brave now . So I'm going to move it to the top of the
list and click apply. Look, now he won't disappear anymore, okay? So that problem has already been fixed. So I'm going back here to Keview, I'll click apply again, and you'll see that it doesn't disappear from the list anymore, right? I can even check if the video is working as well. So I'm going to double-click
on the video here. And it worked normally, right? And he's using the MPV here, right? So, if I right-click here , I see in the properties, and there it is, it's using MPV Media Player. So, now that that correction is made, we're going to configure another little thing here in Dolphin, which is this function it has where,
when you right-click , it has this option to open the terminal here, right? And when you clicked on that option, it was supposed to open the terminal inside that folder you're in . However, this is a function that will only work by default if you are using the console as a terminal emulator. And the
console is the default terminal for KDE. And if you don't use the console, you need to do this configuration manually, which is my case here, since I use KIR, right? So I need to configure KIR as my default terminal. To do this, we're going to edit a file called KDE Globals, which is also located inside the
poncfig directory. So, I'm going to open the terminal again and type code.config/kde globals. That's the file name, okay? I'll press enter, and it already has some values configured by default, right? And you're simply going to add a section here at the beginning of this file called "general," meaning general settings. So, between the brackets, you're going to type general, like this
, with a capital G. And down here, in this general section, you're going to type "terminal application," just like I typed it here, okay? With a capital T and an equal sign. And up here you will specify which terminal you are using. In my case, I use KIR. So, I'm going to save this
file. And now, if I open Dolphin, uh, I'll go into some folder here, for example, my images folder. I'm going to right-click and click " open terminal here". And look, it worked now, right? It's already in the images folder. So now we're going to enable the Pit service. And if you remember, I
said in the first video of this series that PKIT is a service that runs in the background, which allows you to authenticate your user, right? In other words, so that every time you want to perform a program or action on the system that requires superuser privileges, you have the ability to authenticate that action, right? It's the
pull kit that will display that little window for you to type your password. And I'll give you a very simple example here . I'm going to try to perform some action here in the system that requires superuser privileges. For example, I'm going to enter the barc directory, which is a directory that belongs to the system,
right? In other words, it doesn't belong to any user. And I'm going to try copying and pasting some file in here, for example, the hostname file. So I'll press Ctrl+C, Ctrl+V. And it will tell me that I don't have write permission in that folder, right? And it won't allow me to make that change. But if you
also remember, in the first video of this series I installed a package called Kaio Admin. And I told you that this KO package from me allows you to make changes to any folder you want within Dolphin. Simply press the Ctrl, Shift, and Out keys within the folder you want to modify. Then he's going to display this window saying
that this is a risky action. I need to know what I'm doing. I will say that I understand and accept the risks. But instead of displaying that little window asking for my password, it simply told me that I don't have permission to modify that folder. In other words, this point here refers to the current directory, right? In other words, he didn't
allow me to authenticate and instead, he simply told me access denied. This happened because the pull kit is still disabled. So we need to enable the pull kit so that it displays that little window for me to type my password. Okay? So, to enable the PK kit, we'll also have to add it
to the hyperland file. Config. So, once again, I'm going to type code.conf/hyper/hyperland.conf here
and I'm going to go to the autostart section, which is the section where we define the programs that we want to start along with the system. And I installed KDE's poquit, right? I told you that you could install Gnome's poquit, Hyperland's poquit, whichever you wanted, but I installed the KDE one. And the
KDE poquit, it's installed inside the USR/LIB directory. So much so that if I type LS inside that directory, then ls in barrausr/lib, I've moved up a little bit in this list. Look, he has the KDE authentication agent 1 here, okay? This is the command we need to run during system startup. So I'm going to press Ctrl+Shift+C on that
command, just to make sure I type its name correctly, right? And here in the auto-start section, I'm going to add a new line with a new exact code; that is, at system startup, I want to execute... what do I want to execute? This command here. So I'm going to paste it with cr,
but it won't work the way it is here , okay? I need to specify its full path, and it's located inside barrausr/lib. So the complete command has to look like this . Execance in barrausr/ib/p kit authentication agent 1. Like this, okay? Otherwise it won't work. Once that's done , I'll save my file,
close Hyperland, and reopen it to run the command I just added. Once that's done, I'm going to try to make the same change I tried to make a moment ago. So, I'm going to open Dolfing, go to my barcode directory and try to copy the file hostname C, control V. It's going to tell me that I don't
have write permission in that folder, right? So I'm going to perform the KO on myself by pressing control shift alt. I will click here to understand and accept the risks. And now, instead of saying that I have access denied to this folder, it displayed this window here for me to authenticate my user. If I
click here on details, it displays the action I want to perform, which in this case is managing files as an administrator. And it will also tell me the ID of the program that wants to execute this function, which in this case is KIO admin. Then I will enter my username password. However, since I
took too long to type my password and it already generated an error up here, I'm going to cancel, close this screen, and open it again. So I'll go back to my directory/TC, press Ctrl+Shift+Alt+A, say that I understand and accept the risks, and enter my password. Then 1 2 3. Click OK. And now, yes, it allows
me to make whatever changes I want. Notice that up here he's even marking it, acting like an administrator. Take care. In other words, because from now on I can make any changes I want within this folder. If I want, I can press Ctrl+A and delete everything if I want, right? But of course I'm not going to
do that, right? You have to be careful about what you do, okay? So I'll try copying and pasting that file again. So, press Ctrl+C, Ctrl+V, give it a different name here, click continue, and it copied normally, right? If I want to, I can delete a file. So I'm going to delete this file that I just copied,
press delete, and it'll work, right? I used Kai admin as an example, but any other program on the system that requires superuser privileges will need you to have Pulkit enabled on your computer, okay? So if I want to exit administrator mode, I can click here to stop and end this video. So now I'm
going to configure Clip Hist, which is our clipboard manager, our clipboard manager. It's a program that will store everything we copy here on our computer, and we can access its history through our menu application, whether it's RFI, OFI, or any other application, okay? And to configure the HIST clip, we have to edit the hyperland.conf file again
. So I'll open it here with code.config/hyper/hyperland.conf. You're all tired of seeing this , right? And I have to add it here in the auto start section as well. And if I go into the Hyperland Wick, then I'll open the browser, I'll type "Hyperland Wick" here, I'll go into the Hyperland Wick, you'll look here in this
side panel for this section called "useful utilities," okay? You're going to expand this section, and here you'll find the clipboard managers. And here it will list ClipHish, Clipman, and several other options that you can use as well, right? There's Clipse, there's Copyq, there are several other options out there. And to configure Clip
Rist, it gives me these two lines to copy and paste into my file. So I'm going to click on this icon that's here in front of him. He's going to copy those two lines for me. I'll come to my hyperland archive. auto-start configuration on these two lines. I'm going to remove that blank line. And that
's basically it. In this line above, as he himself says, it only stores text data, while this line below stores only image data. And besides those two lines, I also have to copy the line that integrates with my menu, right? And down here, just below these two lines, he has some options, right? But if you use Rofi,
you'll copy this line here. If you're using Wi-Fi, this is the line you'll need to copy, okay? In my case, I'm using Rofi, so I'll copy this line from above. And notice that this line is basically a shortcut, right? It's a bind. So I'm going to paste that line into the shortcuts section of my
hyperland file. Conf. So I'm going to scroll down here to the shortcuts section and I'm going to paste it below the shortcut to open the internet browser. So I'm going to press Ctrl+V. I'm just going to change this from the super key to the main mode, okay? It's basically the same thing. Since the
main mod key I'm using here is the super key, this won't make any difference, okay? I'm just going to write "main mod" here, just to make it look nicer, you know? More aligned with the others. So if I save my file, close Hyperland, and open it again, the Histá clip is working. So I'm going to press the shortcut keys here
that open my history, right? So, with Windows IV, and for now it does n't have anything stored yet, right? Because we just initialized it, we haven't copied anything yet, it doesn't have anything in its history. So I'm going to open the hyperland file. One more time, and I'm going to copy some text from this file, okay?
So I'm going to copy this auto-generated text down from here . So I'm going to press Ctrl+C. And from the moment I pressed Ctrl+C on that information, if I open the clip history again, look, it has already stored that information here. And if I copy other things, for example, I'll copy this line from the monitor, I'll also copy
these variables, so I'll press Ctrl+C, I'll also copy the environment variables, so I'll press Ctrl+C on this too, I'll also copy this animation section here , okay? So I'm going to bypass all of this here, I'm going to press Ctrl+C. If I open the clip history again, look , it's storing everything I'm
copying into this list. And I can access any of this information that I copied at any time. So the last thing I copied was this animation, right? But let's say I want to paste the information I copied first, right? This is the top part of my file. For example, this section of variables here, if I want to
paste it, then I'll access the Clip Rich history. I'm going to select the information I want to paste. So this section here is about environment variables. I'll press enter to select that. And at the end of my file I will paste this information. I'm going to press Ctrl+V. And look, it pasted exactly the option
I selected here into my history, okay? If I want to now take the first line that I copied, which is this auto-generated one. So I'm going to press enter, I'm going to go down here, Ctrl+V, okay? In other words, it stores everything I copy in a history, and I can access that information at any time and paste it wherever I
want. But of course, as I said, it doesn't only store text data, okay? It stores images, it also stores file references, everything you copy to your computer, okay? And that 's basically it for this video, but there's still a lot more for us to see in this Hyperland series, right? We also need to
configure our wallpaper, change the mouse cursor, configure the Waybar, and finish customizing the menu, right? We've set up Luffy more or less, but there's still a lot to change about him . We're going to increase the font size, add icons, and everything else, right? Well, we're also going to make changes to the
login screen, which for now we're using the TTY screen, right? To log in to our system here. We're going to install a login manager; there's a lot to do. Here in this video series, okay? So I invite you, if you're not already subscribed to the channel, to subscribe so you don't miss any videos in this series. If you enjoyed
the video, please leave a like and share it if possible, as this will help me a lot. Also, leave a comment whenever possible to increase video engagement. I also want to take this opportunity to thank all of you who have been commenting on all my videos. A lot of people are saying they're really enjoying this
video series. So this really motivates me to continue recording videos here for you guys. We're almost at the 2,000 subscriber mark, and once again I invite those of you who aren't yet subscribed to subscribe and help me reach that milestone, okay? So thank you in advance. I'll stay here for now . Thanks, bye. M.
Transcribe another video
Paste any YouTube, Instagram or TikTok link to get a free transcript.