HYPRLAND with swaylock and wlogout. Beautiful logout menu and lock screen automated with swayidle

Поділитися
Вставка
  • Опубліковано 15 лип 2024
  • How Ito integrated the logout menu wlogout and the lockscreen swaylock into my Hyprland configuration. Plus automate the start of swaylock with swayidle.
    Wlogout is a customizable logout menu for wayland environments, for example Hyprland.
    Wlogout can be easily styled through a style.css file, a cascading stylesheet definition where you can change a lot of parameters and integrate the logout menus graphically very well into your window manager.
    github.com/ArtsyMacaw/wlogout
    swaylock is a screen locking utility for Wayland compositors. It is compatible with any Wayland compositor which implements the ext-session-lock-v1 Wayland protocol. Means it will work on Hyprland.
    github.com/swaywm/swaylock
    We will install swaylock-effects, a fork of the original swaylock which adds built-in screenshots and image manipulation effects like blurring.
    github.com/mortie/swaylock-ef...
    And in addition we will use swayidle, the idle management daemon for any Wayland compositor. With swayidle we can start swaylock automatically and lock the screen after a few minutes if the mouse or keyboard has not been used. Important for security reasons and in combination with monitor standby a valuable power saver.
    github.com/swaywm/swayidle
    You can find all my dotfiles for wlogout and swaylock and the related scripts on my gitlab repository.
    gitlab.com/stephan-raabe/dotf...
    Learn how you can use Linux for your work.
    Linux is a great Operating System (OS) to support me daily at my business. Linux is stable, fast and you can customize it to individual needs. In this channel, I want to share my setup of Arch Linux and show how I use my system as a daily driver.
    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. 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...
    00:00 Overview
    01:41 Demonstration
    03:36 Installation
    04:01 wlogout
    07:50 swaylock
    12:14 swayidle
    #linux #hyprland #learning #tutorial #archlinux

КОМЕНТАРІ • 70

  • @mylinuxforwork
    @mylinuxforwork  9 місяців тому +1

    My Dotfiles: gitlab.com/stephan-raabe/dotfiles
    If you like this video, please subscribe to my channel: 👉 www.youtube.com/@mylinuxforwork/?sub_confirmation=1

  • @corrie1688
    @corrie1688 9 місяців тому

    loving these videos, keep up the great work :)

  • @colouredsotd
    @colouredsotd 4 місяці тому

    I wish I knew enough to turn this all into a Nix flake, thank you for all your hard work!

  • @silviox74
    @silviox74 9 місяців тому

    3 hours ago I argued with Wlogout configuration and now your video. Divine synchrony. 😂😮

  • @brunoluigi18042004
    @brunoluigi18042004 8 місяців тому

    Dear, your work is wonderfull, i use it and now my system ARCH is perfect. Thanks.

  • @CraigOlson
    @CraigOlson 7 місяців тому

    this video saved me a lot of time. thx

  • @mehdinh4986
    @mehdinh4986 9 місяців тому +2

    Bro, you are the best 👌
    Pls do a pywal guide

  • @toddblay
    @toddblay 9 місяців тому

    Very impressed with your progress! great job. What about a beautiful Plymouth boot-up and login sequence like that implemented in Archcraft Wayland Premium. Next video? ;)

    • @mylinuxforwork
      @mylinuxforwork  9 місяців тому

      Thanks for your comment. Will definitely look into it.

  • @terminalvelocity4858
    @terminalvelocity4858 9 місяців тому +3

    Really enjoy your very informative and enjoyable tutorials. I am using Hypr on Arch as well and really like how you have the theming setup to mach the colors of the wallpaper. Is there a possibility a video could be presented highlighting steps to do this with pywall? Either way, thank you! 🐧

    • @mylinuxforwork
      @mylinuxforwork  9 місяців тому

      Thank you. I will prepare a dedicated video about pywal.

    • @terminalvelocity4858
      @terminalvelocity4858 9 місяців тому +1

      @@mylinuxforwork That would be fantastic, looking forward to it! Truly appreciate your time and efforts.

  • @orebi1914
    @orebi1914 5 місяців тому

    Hello! Stephan I have been following you in your videos which in turns are very helpful and full of information. I love the way you explain things. With no exception on this video about swaylock. I have a quick question. I know you have done a video about NIXOS and I have watched it too. My question is How would you go about configure swaylock in NIXOS? Would you help me or point me to the right direction? Thank you in advance!

    • @mylinuxforwork
      @mylinuxforwork  5 місяців тому

      Thanks for your feedback. In that case I cannot help you. Never did this before. But I will try to bring the dotfiles to more distros. Let’s see.

  • @Flashback_Jack
    @Flashback_Jack 9 місяців тому

    Stylin'.

  • @phantasm9403
    @phantasm9403 6 місяців тому

    Awesome video, is there anyway I can change the layout position of the wlogout buttons?

    • @mylinuxforwork
      @mylinuxforwork  6 місяців тому

      Never tried it before. But pretty sure that there’s a way. The layout is defined with css.

    • @phantasm9403
      @phantasm9403 6 місяців тому

      @@mylinuxforwork gotta take a closer look then, thanks

  • @sch24r
    @sch24r 6 місяців тому +1

    how to disable background blur and use current workspace as background in ur wlogout dotfiles? i mean like normal or default config of waybar.

    • @mylinuxforwork
      @mylinuxforwork  6 місяців тому +1

      You can use a screenshot from your workspace. gitlab.com/stephan-raabe/dotfiles/-/blob/main/swaylock/config?ref_type=heads

  • @hanshofman
    @hanshofman 9 місяців тому

    Wow, Hyprland almost complete! now what about (qtile like) scratchpads?

    • @mylinuxforwork
      @mylinuxforwork  9 місяців тому

      There are two interesting extensions available: github.com/hyprland-community/hpr-scratcher and github.com/sasheto-phizika/hyprscratch. Will test it.

  • @orebi1914
    @orebi1914 3 місяці тому

    Awesome video! I was trying to follow you but I don't see your swaylock config file in your dotfiles. Did you remove it? Thank you for your help!

    • @mylinuxforwork
      @mylinuxforwork  3 місяці тому

      Hi. That’s correct. I moved to hyprlock. But you can find the swaylock config here gitlab.com/stephan-raabe/dotfiles/-/tree/2.7/swaylock?ref_type=tags

    • @orebi1914
      @orebi1914 3 місяці тому

      @@mylinuxforwork Thank You so much! Keep up with the great job!

  • @bigo72
    @bigo72 7 місяців тому +1

    My only problem, @mylinuxforwork is that swayidle fires up even if I'm watching a video. I really would like to watch a movie without to enter my password every 300 seconds (or other amount of time).
    Ofcourse I can disable swaylock and swayidle from config every time I watch a video, but it's quite annoying.
    Is there a way to script a rule to leave the laptop awake if a video is playing?

    • @mylinuxforwork
      @mylinuxforwork  7 місяців тому +2

      Yeah. You're right. Have the same issue in Teams meetings. Will check how to disable swayidle temporarily if needed.

  • @Linuxdirk
    @Linuxdirk 9 місяців тому

    So maybe I should look into swaylock-effects. Right now I use a script to take a screenshot and blur it and place it in temp and then start swaylock and provide that file.

    • @mylinuxforwork
      @mylinuxforwork  9 місяців тому

      Cool. How do you blur the screenshot?

    • @Linuxdirk
      @Linuxdirk 9 місяців тому

      @@mylinuxforwork I mixed in some oldschool technology by using ImageMagick's mogrify:
      ```
      #!/bin/bash
      fn=$(mktemp --suffix .png)
      grim "${fn}"
      mogrify -filter Gaussian -blur 0x15 "${fn}"
      swaylock --image "${fn}"
      rm "${fn}"
      ```
      Locking the screen takes 2-3 seconds, though.

  • @tescomealdeals
    @tescomealdeals 5 місяців тому

    How exactly do you get pywal to generate the colors-wlogout.css file? It didn’t exist for me when I went into .cache/wal, tried just making one using touch and refreshing pywal before trying wlogout again and got nothing but a bunch of errors

    • @mylinuxforwork
      @mylinuxforwork  5 місяців тому

      I have created a Pywal template gitlab.com/stephan-raabe/dotfiles/-/blob/main/wal/templates/colors-wlogout.css?ref_type=heads

  • @memorysticky7581
    @memorysticky7581 3 місяці тому

    any way to define font in swaylock? I put in: font="Terminess Nerd Font Bold"

    • @mylinuxforwork
      @mylinuxforwork  3 місяці тому

      Difficult. Moved from swaylock to hyprlock. You could open an issue on swaylock github.

    • @memorysticky7581
      @memorysticky7581 3 місяці тому

      @@mylinuxforwork Moved from swaylock to swaylock-effects, it has much more features and nice looks etc. Also it works. I found out another issue, the Terminus font is also named Terminess. I've even installed terminus and got terminess etc. later.

  • @memorysticky7581
    @memorysticky7581 3 місяці тому

    Hey man I need to ask you, when I go fullscreen and back while I have a kitty terminal open, the text gets all messed up, If i have a document i'm editing open I have to :q! to get out of it then reopen it to start editing again. Is there any way to fix this graphical text glitch tearing issue? thanks in advance if you or anyone else can help me. thanks.

    • @mylinuxforwork
      @mylinuxforwork  3 місяці тому

      Can you try this? wiki.hyprland.org/Configuring/Tearing/

  • @IrvinEliasTorresMerlos
    @IrvinEliasTorresMerlos 4 місяці тому

    thanks a lot for your work I am just having the issue that whenever im watching a video it will still lock the screen , am i missing something ? thanks again

    • @mylinuxforwork
      @mylinuxforwork  4 місяці тому

      If you’re using waybar, you can add the module github.com/Alexays/Waybar/wiki/Module:-Idle-Inhibitor and switch it off.

    • @IrvinEliasTorresMerlos
      @IrvinEliasTorresMerlos 4 місяці тому

      @@mylinuxforwork thanks, keep up the good work

  • @4Base
    @4Base 12 днів тому

    hi can samoneone help me pls i want to open chatgpt via browser without borders .. its something like exec, brave and then where i put chatgpt link and where i remove border?

  • @jan5504
    @jan5504 9 місяців тому

    can you help me to install it on debian? i've been searching for tutorials to install swaylock-effects on debian but all i got are swaylock installation...

    • @mylinuxforwork
      @mylinuxforwork  9 місяців тому

      Hi. Unfortunately I have no experience with Debian so far. What about opening an issue on the swaylock-effects github page and ask the developers for support? I hope there is a way that you can use swaylock-effects on debian.

    • @jan5504
      @jan5504 9 місяців тому

      @@mylinuxforwork I found a solution, I downloaded the fork of swaylock-effects which is swaylock-blur and it works now but no clock just blurry screen. swaylock-effects is still not in debian stable repository

  • @kirangeorge8
    @kirangeorge8 9 місяців тому

    I don't get that swaylock clock
    swaylock: unrecognized option '--clock'

    • @mylinuxforwork
      @mylinuxforwork  9 місяців тому

      I'm using a config file for swaylock, not parameters. Make sure that indicator is enabled.

  • @alpermusademir
    @alpermusademir 6 днів тому

    Where is the Swaylock configuration file in the repository?

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

      Not anymore. I have moved to hyprlock. But you can find the old swaylock config in older tags on GitLab.

    • @alpermusademir
      @alpermusademir 3 дні тому

      @@mylinuxforwork Thank you. Why did you switch to hyprlock? Something wrong with swaylock?

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

      @@alpermusademir No problem with seaylock. But hyprlock is part of the Hyprland Ecosystem. And I hope for even more features and best integration into the core system. Let’s see.

  • @zrk_zrch
    @zrk_zrch 8 місяців тому

    After suspend, I cannot enter my password, while I could alt+f6 and login with tty.

    • @mylinuxforwork
      @mylinuxforwork  8 місяців тому

      Thanks for your feedback. Will look into it.

  • @keilmillerjr9701
    @keilmillerjr9701 5 місяців тому +3

    The circle thing is weird, and there is no indication to enter a password. Even a small text saying "enter password" would make more sense.

    • @mylinuxforwork
      @mylinuxforwork  5 місяців тому +3

      This is how the package is implemented by the sway lock developer.

    • @keilmillerjr9701
      @keilmillerjr9701 4 місяці тому

      @@mylinuxforwork duh.

    • @kodeytheneko
      @kodeytheneko 2 місяці тому

      Linux is weird, that's the point. We like our weird stuff.

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

    I'm giving this a try without using all of your dots, but I can't find the colors-wlogout.css on my "/.cache/wal/" folder. what am I missing here D:

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

      Please make sure that the template is available in gitlab.com/stephan-raabe/dotfiles/-/tree/main/wal/templates?ref_type=heads or in .config/wal/templates