change date format to am-pm

This commit is contained in:
primardj 2024-01-27 17:47:58 +00:00
parent 4d792a19ef
commit 71d8b620dc

View file

@ -27,7 +27,7 @@ for i in "$@"; do
sleep_flag="set"
;;
"--swaylock-only")
sw_effects="set"
sw_only="set"
;;
esac
done
@ -42,7 +42,8 @@ option_sw_effects="-f \
--effect-vignette 0.6:1 \
--effect-blur 3x5 \
--ring-color ff7f50 \
--separator-color 000000ff"
--separator-color 000000ff \
--timestr %I:%M-%p"
option_sw=""
@ -54,10 +55,9 @@ then
# no options_sw because I hadden't had time to add them.
fi
if [ "${sw_effects}" == "set" ]
if [ "${sw_only}" == "set" ]
then
swaylock ${option_sw}
echo "ici"
else
swaylock ${option_sw_effects}
fi