 So I've been playing a lot with my Qt Browser config in recent days, and I'm going to share with you some settings that I discovered that made my life a little easier using Qt Browser. And I'm also going to share with you how you can add custom CSS style sheets to Qt Browser. Because not everybody wants to view webpages with their default colors, which is typically a white background and black text. A lot of people want a dark mode, but even more than that, a lot of people want custom style sheet coloring. They want, maybe they want a solarized color scheme for their Qt Browser webpages, or a grubbox style sheet. I'm going to show you how you can get those. Well first, let me just launch Qt Browser. And this is what Qt Browser typically looks like out of the box. Usually DuckDuckGo is the start page, and you can see it's a blinding white light. Well, I showed you guys this on video the other day. One of the neat things you can do is simply add this one line to your config.py, your Qt Browser's config.py, and that is config.set colors.webpage.darkmode.enabled and set that to true. And let me write that, and if I launch Qt Browser now, we have dark mode enabled. So that is an easy one liner. But you know what? A lot of people want more themes available than just either light mode or dark mode, right? Things out there. What if I wanted to solarize theme? Maybe solarized light or solarized dark. Maybe I want grubbox. Maybe I want Dracula. Well you can do that as well. First thing I'm going to do is I'm going to comment out setting dark mode being enabled. Because by having it enabled, it's going to be enabled upon startup. And I want the ability to switch between different CSS style sheets when I want to. I'm going to leave this line in my config because, you know, other people use my config and I want this mainly just for documentation. But what I'm going to do is I'm actually going to go to the web. And over on GitHub, I found this GitHub repository called Solarized-Everything-CSS. It's solarizing everything. What are they solarizing? They're solarizing the web. It's basically a solarized CSS style sheet that you can use with pretty much any browser. But it's, of course, specifically designed for minimal browsers, things like cute browser, things like surf. And it's very easy to get this. And one of the things that's really neat about this Solarized-Everything-CSS repository here, if you click on the themes folder, it's not just solarized. They also have grubbox, darkulized, Dracula, and a theme called apprentice. So there's four themes, actually five themes, because solarized comes in a light and a dark variant. So you really get five themes with this. All you need to do is just download this repository, clone it. Do I get cloned? So let me get back here on the desktop. I'm going to open up my graphical file manager, PCMAN-FM. And all I did was just cloned that directory and it's Solarized-Everything-CSS. And once you have that on your system, all you need to do in your cute browsers config.py. Let me zoom in a little more here and make sure you guys can see this. At the very bottom, I added these key bindings. You see config.bind, AP. And what that does, it runs this command, config cycle, content.user, underscore style sheets, and then the location to the apprentice style sheet on my system, which is in my home directory at the Solarized-Everything-CSS directory, yada, yada, yada. What this does is now, when I hit comma AP, because comma is going to be the, I guess, the leader key, if you want to call it that here, comma AP is going to switch to the apprentice theme. So if we see this in action, let me launch cute browser. Let me switch to full screen mode here. And what I'm going to do is I'm going to do comma AP. And that is the apprentice theme. Now let me go to a different web page. Let's go to the ArchWiki. I can find it here. ArchWiki. Do you guys know what the ArchWiki looks like? You visited it a million times. Anyway, here is the apprentice theme. Now some of the other themes that were available, let me go back and look. Comma DR was the Dracula theme. So comma DR, that is Dracula. And it really doesn't resemble Dracula too much. But then again, we're not dealing with a whole lot of different colors on the web. It's not going to be just a complete crazy color fist like it is in the terminal when you run these things. I think comma GR was Grovbox. And yeah, that kind of is Grovboxy. And I think comma SD was Solarized Dark. Now that does look like Solarized. That's pretty good for Solarized. Comma SL was Solarized Light. Damn, that actually looks good. That is, you know, kind of a light theme, but it's not blinding white. You know, I kind of like that. I could get used to Solarized Light there. Now let me get back to my config here. One of the neat things you can do with KubeBrowser is you can execute your own custom scripts from KubeBrowser. You can execute those through the command mode in KubeBrowser, or you can bind it to keybindings and execute these custom scripts that you write, shell scripts, Python scripts, whatever it happens to be. And I have an example of that in these two keybindings here. But before I show you the keybindings, what I'm going to do is I'm going to comment these lines out because I want to show you how KubeBrowser works typically out of the box before I show you the changes I've made with those keybindings. So typically in KubeBrowser, you have the open command, which is colon open. And that's going to open something in this tab that we're currently in. Now if I did colon open, space dash t, that's going to open whatever I want to open in a new tab. But there are shorthands for this. There is o, which expands to colon open. And then there is capital O, which expands to colon open dash t. And that's pretty cool. I like that kind of functionality. But what if instead of searching through the default built-in search features within KubeBrowser, what if you wanted to use your own custom scripts for searching through your bookmarks and history and everything, maybe using something like dMenu. And that's what I've done here is I rebinded o and capital O to run this user script, which is just a simple shell script that opens dMenu and searches through my KubeBrowser history and bookmarks and everything. And I did o, just executes the script and launches whatever I hit enter on in the current tab. And then this capital O is going to do the same thing in a new tab. Let me show you that in action. Let me make sure I save that. Let's relaunch KubeBrowser. And now when I hit o on the keyboard, I get dMenu, right? And now I just, you know, pick something here and dMenu, such as distro watch here. And it opens right here, you know, in this tab. Now if I hit capital O and then pick something, maybe the ArchBang website, it opens ArchBang.org so that opened it in a new tab because I still have distro watch over here in this tab. Now is that useful functionality? Well, I don't know if I would use that or not. I just showed you guys this as an example, by the way, the user script here, where you want to place your custom user scripts for KubeBrowser. They need to go in your home directory and dot local, share, KubeBrowser, user scripts. Now this directory will not be here by default, but just create user scripts and then user scripts and that directory is where you want to place your custom shell scripts or Python scripts or whatever it is, whatever language you want to write them in. Place them in this directory and then KubeBrowser will know that they're there. Now the one cool thing about using dMenu as a search launcher rather than the built in KubeBrowser search is dMenu is blazing fast. It's noticeably faster just because of how fast dMenu is, you know, it's very few lines of code and it's written in C. It's just blazing fast. KubeBrowser is not slow, but it is noticeably slower, but I don't think it's slow enough that I would personally do this because there is a downside to using the dMenu thing before I save that. I'll show you the downside of using the dMenu key binding I just did. If I hit O, I get dMenu. Now let me escape. Now let me hit O again. Nothing's registering. Why is that? Because when I launched dMenu that first time, it took focus away from this window. Even though I'm in a tiling window manager and I'm full screen, I mean, technically the window doesn't have focus until I grab the mouse, I guess, and click on it. Now that I clicked on the window, if I hit O, I'll get the dMenu back up. So I don't like that. I don't like that. You know, sometimes I hit O and nothing happens, so me personally, I'm probably just going to comment these lines out and not use them, but I'm going to leave them here in my config for those of you that want to see an example of how to create these key bindings using a custom user script. Now there is one thing that has bugged me here in the last couple of days about Kube Browser and I wanted to find a solution to this problem, so let me show you this problem here and let me go ahead and write this and relaunch Kube Browser. And remember, O and capital O, we're going back to the built-in Kube Browser search. If I do capital O because I want to open in a new tab, I'm not going to give it any arguments. Let's just open a new tab. By default, it opens that new tab as our default start page, which is duck duck go. Well, what if I wanted duck duck go to be my start page, my default search engine page, but I wanted to open a new tab as something else? How do I do that? Well, how I did that is let me do a search here for default. Default is going to be in this config a lot of places. Let me do a search for home. That's better. There it is. So let me uncomment this line here. You see, c.url.default underscore page equals and then I give it a path to a custom start page that I created. So this sets a default page, which means anytime I just do the open command or the open tab to command and I don't give it any kind of arguments, it's going to fall back to this custom home page that I created. So let me write that. Let's relaunch Coup Browser and now when I do a capital O for open a new tab and I'm not going to give it any arguments, no web pages or anything. Now that new tab is going to be my custom start page. Now I've been getting questions about the custom start page you guys have seen in my Coup Browser and in older videos of surf, which is this exact same page. You can actually use any web page in any web browser. So you guys are asking, hey, how can I get a cool start page like that? Well, you can literally go grab one of thousands of them off the internet. There are plenty of people that share their own custom start pages. If you want to go grab mine, you can find it in my .files repository on my GitLab. Look in the .surf slash html folder and I can actually show you this on my system. Let me open up PC man FM. This my home directory, if I go into a folder here that I called .surf. So it's a hidden directory .surf because this was originally for the surf browser. But again, I'm using this page in Coup Browser as well. Then I created html and then in html I have home page .html which is that custom page you see here. So if you want to be able to open up new tabs and actually set that page to be something other than that DuckDuckGo page, you do that here. For those of you looking for more control over style sheets, maybe you want to have a bunch of different style sheets available to you, just create key bindings to launch these custom style sheets. And if you want to go grab some really neat custom style sheets, make sure you check out the Solarize-Everything-CSS repository over on GitHub. Before I go, I need to thank a few special people. I need to thank Michael, Gabe, Corbinion, Mitchell, Devonfran, Arch5530, Akami, Chuck, Claudio, Donnie, Dylan, George, Gregory, Caleb, Devils, Lewis, Paul, Scott, and Willie. They are the producers of this episode. They're my highest-tiered patrons over on Patreon. Without these guys, this episode would not have been possible. This show is also brought to you by each and every one of these ladies and gentlemen. All of these names you see on the screen right now, these are all my supporters over on Patreon. I want to sincerely thank each and every one of those ladies and gentlemen because this channel is supported by you guys, the community. If you'd like to support my work, consider doing so. Look for DistroTube over on Patreon. Peace.