added stuff to hyprlock
This commit is contained in:
@@ -65,3 +65,28 @@ input-field {
|
|||||||
halign = center
|
halign = center
|
||||||
valign = 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
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user