zenUtils/dynacal.sh

26 lines
411 B
Bash
Raw Normal View History

2022-01-14 04:57:24 +00:00
#!/bin/sh
if [ "$1" = "-t" ]; then
current=$(cat ~/.time_mode)
case ${current} in
"common")
echo "regular" > ~/.time_mode
;;
*)
echo "common" > ~/.time_mode
;;
esac
fi
if [ -z "$1" ]; then
mode=$(cat ~/.time_mode)
case ${mode} in
"regular")
echo "[$(~/bin/arvelie) $(~/bin/neralie -s)]"
;;
*)
echo "[$(date +"%F %H:%M")]"
;;
esac
fi