From c8ed90b69671334b72fffe92703d65d834032555 Mon Sep 17 00:00:00 2001 From: Honney Date: Tue, 9 Jun 2026 23:26:15 +0200 Subject: [PATCH] added stuff to hyprlock --- templates/hyprlock.conf | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/templates/hyprlock.conf b/templates/hyprlock.conf index 4aa3407..ca0ee5a 100644 --- a/templates/hyprlock.conf +++ b/templates/hyprlock.conf @@ -65,3 +65,28 @@ input-field { halign = center valign = center } + + +# -- uptime view -- +label { + monitor = + text = cmd[update:60000] echo "uptime: $(bash -c 's=$(cut -d. -f1 /proc/uptime); h=$((s/3600)); m=$(((s%3600)/60)); printf "%02d:%02dh" "$h" "$m"')" + color = 0xFF{{ colors.surface_tint.default.hex_stripped }} + font_size = 14 + font_family = JetBrains Mono + position = 20, 20 + halign = left + valign = bottom +} + +# -- battery view -- +label { + monitor = + text = cmd[update:1000] bash -c 'cap=$(cat /sys/class/power_supply/BAT0/capacity); stat=$(cat /sys/class/power_supply/BAT0/status); [ "$stat" = "Charging" ] && printf "󰂄 %s%%" "$cap" || printf "󰁹 %s%%" "$cap"' + color = 0xFF{{ colors.surface_tint.default.hex_stripped }} + font_size = 14 + font_family = JetBrains Mono + position = -20, 20 + halign = right + valign = bottom +} \ No newline at end of file