Control HYPRLAND with HYPRCTL. Develop your THEME switcher, GAME mode and more.

Поділитися
Вставка
  • Опубліковано 15 лип 2024
  • In this video I will show you how to use HYPRCTL, the command line interface for HYPRLAND. hyprctl is a utility for controlling some parts of the compositor from a CLI or a script. If you install with make install, or any package, it should automatically be installed.
    I will share with you several use cases how you can use hyprctl in your script:
    00:00 Overview
    01:08 hyprctl in Hyprland Wiki
    01:45 Using hyprctl keywords
    07:47 Batch hyprctl commands
    08:37 Create your own Theme Switcher
    13:54 Game Mode with hyprctl
    15:21 hyprctl Dispatchers
    17:51 More with hyprctl
    18:23 Notifications with hyprctl
    19:43 Window information
    You can find detailed information in the Hyprland Wiki:
    👉 wiki.hyprland.org/Configuring...
    You can download the ML4W Dotfiles 2.9 from GitLab:
    👉 gitlab.com/stephan-raabe/dotf...
    ML4W Dotfiles Wiki:
    👉 gitlab.com/stephan-raabe/dotf...
    You can install the dotfiles with one command in your terminal.
    👉 gitlab.com/stephan-raabe/dotf...
    For NVIDIA users: Please check the Hyprland Wiki Page:
    👉 wiki.hyprland.org/Nvidia/
    Linux is a great Operating System (OS) that supports me every day at my business and my private live. Linux is stable, fast and you can customize it to individual needs. In this channel, I want to share my setup of Arch Linux with the window managers Hyprland and Qtile.
    My name is Stephan Raabe and I'm a Digital Marketing Professional with more than 20 years of experience in B2B Digital Marketing, computer science and web technologies.
    This channel provides tutorials about Linux, the distribution Arch, window managers (e.g. Hyprland, Qtile) and desktop environments, and Microsoft 365 (Office 365) plus other cloud based services that I use in Digital Marketing activities.
    👉 ML4W Dotfiles for Hyprland: gitlab.com/stephan-raabe/dotf...
    👉 ML4W Dotfiles Wiki: gitlab.com/stephan-raabe/dotf...
    👉 ML4W Hyprland Starter: github.com/mylinuxforwork/hyp...
    👉 ML4W Hyprland Starter Wiki: github.com/mylinuxforwork/hyp...
    👉 ML4W Hyprland Settings App: github.com/mylinuxforwork/hyp...
    👉 Homepage: www.ml4w.com
    👉 Discord: / discord
    👉 MyChatGPT Python Script: github.com/mylinuxforwork/cha...
    #hyprland #archlinux #learning #tutorial #linux

КОМЕНТАРІ • 62

  • @sutalk1236
    @sutalk1236 29 днів тому +8

    What a swing of body at 00:00

  • @gabrielfernandez8975
    @gabrielfernandez8975 29 днів тому +2

    Another great video like the ones you usually give us, Stephan. I loved how educational this one in particular is since it allows us to create personal combinations. I love your channel. Greetings from Argentina.
    Wieder ein tolles Video wie die, die du uns normalerweise gibst, Stephan. Besonders gut hat mir gefallen, wie lehrreich dieses Buch ist, da es uns ermöglicht, persönliche Kombinationen zu erstellen. Ich liebe deinen Kanal. Grüße aus Argentinien. (German version via Google Translate)

    • @mylinuxforwork
      @mylinuxforwork  29 днів тому

      Thank you so much for your feedback. Regards back from Germany.

  • @donaldwilliams6821
    @donaldwilliams6821 29 днів тому

    Thank you so much for this. I never knew about the batch mode! Very cool stuff

  • @jrabbott34
    @jrabbott34 26 днів тому

    As always, thanks for the breakdown man. I appreciate the hyprctl usage and listing out how the variables work. That said, Vielen Dank im Voraus for upcoming hyprland items!!

  • @thrisighsty
    @thrisighsty 29 днів тому

    very nice, as usual!

  • @syedarbaazhussain7791
    @syedarbaazhussain7791 29 днів тому +2

    Love your dotfiles 🤩

    • @mylinuxforwork
      @mylinuxforwork  29 днів тому +1

      Thank you.

    • @wooshbait36
      @wooshbait36 29 днів тому

      I installed it, but there are many bugs, like right-clicking on Chromium or Rofi bugs.

    • @CVLova
      @CVLova 29 днів тому +1

      @@wooshbait36 set chromium to wayland mode.
      not his dots fault.

  • @AppsTricksByNazakatUmrani
    @AppsTricksByNazakatUmrani 29 днів тому +1

    Wow I am configuring my system, it is my first time, I am using NixOS so I can't copy your ml4w directly, so I was just learning stuff, I was moving towards these theme switching scripts since a week, but haven't come closer to that, and now while sleeping saw this video, won't see it now, saving it to watch later, and I hope this time I will learn about these theme switchers, and will implement in my hyprland nixos setup

    • @sutalk1236
      @sutalk1236 29 днів тому

      Same here. Using nixos again. 😅

    • @sutalk1236
      @sutalk1236 29 днів тому

      Please share with me your results

    • @mylinuxforwork
      @mylinuxforwork  28 днів тому

      Have fun!

    • @annandar
      @annandar 27 днів тому

      I just use hyprland on arch and nixos

  • @cristhianz91
    @cristhianz91 29 днів тому

    Very nice video, as always. Can I ask which is your text editor?

  • @faizo007
    @faizo007 29 днів тому

    very cool video can you make one how to configure waybar with cava in it

    • @mylinuxforwork
      @mylinuxforwork  29 днів тому +1

      Thanks for your feedback. In the meantime you can find information here github.com/Alexays/Waybar/wiki/Module:-Cava

  • @user78405
    @user78405 21 день тому

    your work is very interesting now...ever think about turn your work into full fledge distro one day....its good idea to see your work into top distrowatch charts and be challedge to kde and gnome distros when your version is your owned better version of hyprland custom made version by artist in mind that you should make it full fledge gui and distro...what do you think ??

    • @mylinuxforwork
      @mylinuxforwork  20 днів тому

      Thank you so much for your feedback. Creating an own distro is a huge project. Currently I am focusing on a post installation script. But let's see what's coming in the future.

  • @callmesteve7874
    @callmesteve7874 29 днів тому +1

    Thank you for your amazing educational videos!
    One thing I can't figure out so far using Hyprland with Waybar is how to make unused (empty) workspaces to change their color. Is it only .css config thing? I tried to write a few lines of settings, but none of them worked.

    • @mylinuxforwork
      @mylinuxforwork  29 днів тому +1

      Never tried this out. But sounds interesting. It seems there is a dedicated css class for it: #workspaces button.empty documented here github.com/Alexays/Waybar/wiki/Module:-Hyprland

    • @wooshbait36
      @wooshbait36 29 днів тому

      I managed to make it work.

    • @mylinuxforwork
      @mylinuxforwork  29 днів тому

      @@wooshbait36 Great.

    • @callmesteve7874
      @callmesteve7874 29 днів тому

      I actually made it, lol. It was only css config and the point was that you need to put your workspaces config entries in special order. Like workspaces, workspaces button, workspaces button.empty, workspaces button.active and workspaces button:hover. And then it works like a charm.

  • @MrAndrewKeyboards
    @MrAndrewKeyboards 29 днів тому

    This is great! Now I understand what I need to create a program to make changes on the go... But I want to know, is there any tutorial I can follow to create a GUI for it? I was thinking about integrating your appimage to my dotfiles but I don't know how to modify it to translate it to Spanish hahaha so my intention is to program a GUI on my own... If you can guide me to a tutorial to do it, it will be highly appreciated

    • @mylinuxforwork
      @mylinuxforwork  29 днів тому +1

      Thank you so much for your feedback. There are several options for a GUI interface. Every framework that can execute bash scripts would work. You know I use GTK4 with Python for my Hyprland settings app gitlab.com/stephan-raabe/ml4w-hyprland-settings But you can also use electron, python with other gui libraries, ags should work as well. Many options possible….

  • @muhammadabid9784
    @muhammadabid9784 26 днів тому

    Sorry for out of topic comment but can i use your dotfiles with an 1280*1024 monitor? My main monitor is dead and i have to use this one for a month or two.

    • @mylinuxforwork
      @mylinuxforwork  26 днів тому

      Yes. Should work. Maybe waybar could be a bit compressed.

  • @lajos9134
    @lajos9134 28 днів тому

    Very cool window manager. Still nvidia is not recommended?

    • @mylinuxforwork
      @mylinuxforwork  28 днів тому +1

      Hyprland still doesn’t support officially Nvidia GPUs. But many users reported success. wiki.hyprland.org/Nvidia/

  • @oyinbra
    @oyinbra 23 дні тому

    I need help resolving an issue I encounter when installing and switching between different desktop environments (DE) on my Linux system. I'm currently using KDE, but I also use Hyprland and Gnome.Whenever I switch from KDE to Hyprland or Gnome, I'm prompted to create a GNUPG configuration. Additionally, when I log into websites like Google using the Chrome browser in one DE and then switch to another, I have to log into all my accounts again. This happens every time I switch between KDE, Gnome, and Hyprland.How can I fix this issue so that my login sessions and GNUPG configuration are preserved across different desktop environments?

    • @mylinuxforwork
      @mylinuxforwork  23 дні тому

      Hi. What's your distro? And have you tested thisbbs.archlinux.org/viewtopic.php?id=285563

  • @anghDescartes
    @anghDescartes 28 днів тому

    I have issues enabling VRR with hyprland and amd system on tumbleweed. hyprctl monitors shows it should be supported - but it is not, not in games, not in love vrrtest, monitor is stuck on whatever I set as refresh rate, 120 or 144 (it worked properly on windows instance so it is not a hardware issues). Maybe could you dig that part and provide some explanation and potential caveats?

    • @mylinuxforwork
      @mylinuxforwork  20 днів тому

      Thanks for your feedback. Currently I have not any experiences with VRR. So my suggestion is to open an issue on Hyprland github.

  • @RayanMouzaoui-lq8sl
    @RayanMouzaoui-lq8sl 23 дні тому

    Hello! I really do love your video and I'm so impressed and obsessed with your work, but I'm meeting a problem which is when I turn on my pc I don't have the login page of hyprland but I have a black screen showing me my mouse, nothing else, so I have to press alt+ctrl+F3 so then I can start hyprland and I can normally use it, but I hope I can find a way so that i get tod of the black screen and have a log in page (I'm not using a virtual machine btw)

    • @mylinuxforwork
      @mylinuxforwork  23 дні тому

      Hi. Thanks for reporting the issue. That means if you start Hyprland from a display manager it fails. But from tty it works. Which display manager are you using?

    • @RayanMouzaoui-lq8sl
      @RayanMouzaoui-lq8sl 23 дні тому

      @@mylinuxforwork im using sddm! by searching in the internet i just figured out that it wont automatically start for some reasons

    • @BerosCerberus
      @BerosCerberus 20 днів тому

      @@mylinuxforwork I dont know if this helps but for a reason i dont know i had to install qt5-graphicaleffects and qt5-quickcontrols2 before i could use sddm. Im on EndeavourOS, if this is important. I hope that helps in any way.

  • @luisarturomezasanchez1417
    @luisarturomezasanchez1417 21 день тому

    How can I active the right click of my mousepad?
    Amazing video

    • @mylinuxforwork
      @mylinuxforwork  20 днів тому +1

      Thank you. Can you check this section? input:touchpad:clickfinger_behavior in wiki.hyprland.org/Configuring/Variables/#touchpad Would be cool if you could share your results.

    • @luisarturomezasanchez1417
      @luisarturomezasanchez1417 20 днів тому

      @@mylinuxforwork I fixed it, thanks, very useful and im very thankful, You are AMAZING

    • @mylinuxforwork
      @mylinuxforwork  19 днів тому

      @@luisarturomezasanchez1417 Can you share your changes you made in your configuration to make it running?

    • @luisarturomezasanchez1417
      @luisarturomezasanchez1417 19 днів тому

      @@mylinuxforwork Sure, I edited the file ~/$USER/dotfiles/hypr/conf/keyboard.conf
      There I added
      clickfinger_behavior = false
      In the "for laptop" section

    • @mylinuxforwork
      @mylinuxforwork  19 днів тому +1

      @@luisarturomezasanchez1417 Thank you.

  • @HarunAhmetovic-gt5fi
    @HarunAhmetovic-gt5fi 23 дні тому

    is it possible to change the font in the terminal, is there such a possibility

    • @mylinuxforwork
      @mylinuxforwork  23 дні тому

      You can change the font in this file in your dotfiles/alacritty folder gitlab.com/stephan-raabe/dotfiles/-/blob/main/alacritty/alacritty.toml?ref_type=heads

  • @rehufgoerhwfr
    @rehufgoerhwfr 21 день тому

    When i install your script on a fresh arch install and i open Hyprland its just black shows me the cursor and sometimes it works but the cursor is super buggy like for windows it shows up but then only shows then me the cursor shadow on other elements like the statusbar? some months before it worked all Perfectly
    🤔

    • @mylinuxforwork
      @mylinuxforwork  20 днів тому +1

      That's interesting. Do you have an NVidia GPU? You can also try to install the latest dev branch/rolling release.

    • @rehufgoerhwfr
      @rehufgoerhwfr 20 днів тому

      Yes gtx 950

    • @mylinuxforwork
      @mylinuxforwork  20 днів тому

      @@rehufgoerhwfr please follow wiki.hyprland.org/Nvidia/

  • @gizzmoguy.
    @gizzmoguy. 29 днів тому

    I want power to have blurred browser but when visiting UA-cam site I want to the blur automatically get disabled. It very annoying watch a blurred UA-cam video like yours but yet the blur looks really cool because it looks consistent and cohesive with the rest of the windows/operating system.

    • @mylinuxforwork
      @mylinuxforwork  28 днів тому

      You can create a window rule to disable blur when the window title includes UA-cam. Open UA-cam in a browser and execute hyprctl clients to get the information needed to write a window rule.

    • @gizzmoguy.
      @gizzmoguy. 28 днів тому

      @@mylinuxforwork Thank You Stephan i really appreciate it!!

  • @Adamy-69
    @Adamy-69 29 днів тому

    So why no gui for that like Gnome Settings, that look like easy stuff to dev!

    • @mylinuxforwork
      @mylinuxforwork  29 днів тому +2

      Please check gitlab.com/stephan-raabe/ml4w-hyprland-settings That’s the Hyprland Settings App based on GTK4 and Python. Please check this video ua-cam.com/video/7CbOCfSY-sA/v-deo.html