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
My Dotfiles: gitlab.com/stephan-raabe/dotfiles
If you like this video, please subscribe to my channel: 👉 www.youtube.com/@mylinuxforwork/?sub_confirmation=1
loving these videos, keep up the great work :)
Thank you so much.
I wish I knew enough to turn this all into a Nix flake, thank you for all your hard work!
Thank you.
3 hours ago I argued with Wlogout configuration and now your video. Divine synchrony. 😂😮
Great. Have fun with it!
Dear, your work is wonderfull, i use it and now my system ARCH is perfect. Thanks.
Thank you so much.
this video saved me a lot of time. thx
Great. Thank you.
Bro, you are the best 👌
Pls do a pywal guide
Yes. That’s a good idea.
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? ;)
Thanks for your comment. Will definitely look into it.
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! 🐧
Thank you. I will prepare a dedicated video about pywal.
@@mylinuxforwork That would be fantastic, looking forward to it! Truly appreciate your time and efforts.
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!
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.
Stylin'.
👍
Awesome video, is there anyway I can change the layout position of the wlogout buttons?
Never tried it before. But pretty sure that there’s a way. The layout is defined with css.
@@mylinuxforwork gotta take a closer look then, thanks
how to disable background blur and use current workspace as background in ur wlogout dotfiles? i mean like normal or default config of waybar.
You can use a screenshot from your workspace. gitlab.com/stephan-raabe/dotfiles/-/blob/main/swaylock/config?ref_type=heads
Wow, Hyprland almost complete! now what about (qtile like) scratchpads?
There are two interesting extensions available: github.com/hyprland-community/hpr-scratcher and github.com/sasheto-phizika/hyprscratch. Will test it.
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!
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
@@mylinuxforwork Thank You so much! Keep up with the great job!
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?
Yeah. You're right. Have the same issue in Teams meetings. Will check how to disable swayidle temporarily if needed.
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.
Cool. How do you blur the screenshot?
@@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.
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
I have created a Pywal template gitlab.com/stephan-raabe/dotfiles/-/blob/main/wal/templates/colors-wlogout.css?ref_type=heads
any way to define font in swaylock? I put in: font="Terminess Nerd Font Bold"
Difficult. Moved from swaylock to hyprlock. You could open an issue on swaylock github.
@@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.
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.
Can you try this? wiki.hyprland.org/Configuring/Tearing/
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
If you’re using waybar, you can add the module github.com/Alexays/Waybar/wiki/Module:-Idle-Inhibitor and switch it off.
@@mylinuxforwork thanks, keep up the good work
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?
You can try brave --app=chat.openai.com
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...
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.
@@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
I don't get that swaylock clock
swaylock: unrecognized option '--clock'
I'm using a config file for swaylock, not parameters. Make sure that indicator is enabled.
Where is the Swaylock configuration file in the repository?
Not anymore. I have moved to hyprlock. But you can find the old swaylock config in older tags on GitLab.
@@mylinuxforwork Thank you. Why did you switch to hyprlock? Something wrong with swaylock?
@@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.
After suspend, I cannot enter my password, while I could alt+f6 and login with tty.
Thanks for your feedback. Will look into it.
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.
This is how the package is implemented by the sway lock developer.
@@mylinuxforwork duh.
Linux is weird, that's the point. We like our weird stuff.
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:
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