Files
hypr/scripts/hyprlock/uptime.sh
T
2026-08-22 15:42:30 +02:00

5 lines
110 B
Bash
Executable File

#!/bin/bash
s=$(cut -d. -f1 /proc/uptime)
h=$((s / 3600))
m=$(((s % 3600) / 60))
printf "%02d:%02dh" "$h" "$m"