From 1b5492edaf01032fa7261f64668b39410f3fbff9 Mon Sep 17 00:00:00 2001 From: d3m0k1d Date: Tue, 30 Dec 2025 23:35:53 +0300 Subject: [PATCH] Upd hyprlock and update config for new version hyprland --- .config/hypr/hyprland.conf | 9 +++--- .config/hypr/hyprlock.conf | 58 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 63 insertions(+), 4 deletions(-) diff --git a/.config/hypr/hyprland.conf b/.config/hypr/hyprland.conf index 3c32167..6ccecba 100644 --- a/.config/hypr/hyprland.conf +++ b/.config/hypr/hyprland.conf @@ -259,8 +259,9 @@ bindl = , XF86AudioPrev, exec, playerctl previous # Example windowrule # windowrule = float,class:^(kitty)$,title:^(kitty)$ -# Ignore maximize requests from apps. You'll probably like this. -windowrule = suppressevent maximize, class:.* -# Fix some dragging issues with XWayland -windowrule = nofocus,class:^$,title:^$,xwayland:1,floating:1,fullscreen:0,pinned:0 + +windowrule = suppress_event maximize, match:class .* + + +windowrule = no_focus on, match:class ^$, match:title ^$, match:xwayland 1, match:float 1, match:fullscreen 0, match:pin 0 diff --git a/.config/hypr/hyprlock.conf b/.config/hypr/hyprlock.conf index 4dc988e..d2eb344 100644 --- a/.config/hypr/hyprlock.conf +++ b/.config/hypr/hyprlock.conf @@ -72,3 +72,61 @@ input-field { valign = center } + +label { + monitor = + text = cmd[update:5000] echo " $(cat /sys/class/power_supply/BATT/capacity)%" + color = rgba(242, 243, 244, 0.75) + font_size = 20 + font_family = JetBrainsMono Nerd Font + halign = right + valign = bottom +} + +shape { + monitor = + size = 160, 160 + color = rgba(0, 0, 0, 0.0) + rounding = -1 + border_size = 2 + border_color = rgba(242, 243, 244, 0.75) + position = 0, 200 + halign = center + valign = center +} + +label { + monitor = + text = cmd[update:2000] echo "CPU $(top -bn1 | grep "Cpu(s)" | awk '{print $2}')% RAM $(free -h | awk '/^Mem:/ {print $3"/"$2}')" + color = rgba(242, 243, 244, 0.75) + font_size = 14 + font_family = JetBrainsMono Nerd Font + halign = left + valign = top +} + + +label { + monitor = + text = + color = rgba(255, 85, 85, 0.8) + font_size = 30 + font_family = JetBrainsMono Nerd Font + + halign = right + valign = top + onclick = systemctl poweroff +} + +# Reboot button +label { + monitor = + text = + color = rgba(242, 243, 244, 0.75) + font_size = 30 + font_family = JetBrainsMono Nerd Font + + halign = right + valign = top + onclick = systemctl reboot +}