dotfiles/wayland/config/eww/scripts/bar/timer/timer_tail.sh

5 lines
143 B
Bash
Executable file

#!/usr/bin/env bash
if [[ -d "${XDG_RUNTIME_DIR}/bashtimer/" ]]; then
tail -n1 "$(ls -d -1 "${XDG_RUNTIME_DIR}/bashtimer/"* | head -n1)"
fi