added using scripts to hyprlock
This commit is contained in:
@@ -69,7 +69,7 @@ input-field {
|
||||
# -- 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"')"
|
||||
text = cmd[update:60000] $XDG_CONFIG_HOME/hypr/scripts/hyprlock/uptime.sh
|
||||
color = 0xFF{{ colors.surface_tint.default.hex_stripped }}
|
||||
font_size = 14
|
||||
font_family = JetBrains Mono
|
||||
@@ -81,7 +81,7 @@ label {
|
||||
# -- battery view --
|
||||
label {
|
||||
monitor =
|
||||
text = cmd[update:1000] bash -c 'cap=$(< /sys/class/power_supply/BAT0/capacity); stat=$(< /sys/class/power_supply/BAT0/status); if [ "$stat" = "Discharging" ]; then printf " %s%%" "$cap"; else if [ "$stat" = "Charging" ]; then printf " %s%%" "$cap"; else if [ "$stat" = "Full" ]; then printf " %s%%" "Full"; else printf ""; fi'
|
||||
text = cmd[update:1000] $XDG_CONFIG_HOME/hypr/scripts/hyprlock/battery.sh
|
||||
color = 0xFF{{ colors.surface_tint.default.hex_stripped }}
|
||||
font_size = 14
|
||||
font_family = JetBrains Mono
|
||||
|
||||
Reference in New Issue
Block a user