diff --git a/swaylock-script b/swaylock-script index eab6810..d63a3db 100755 --- a/swaylock-script +++ b/swaylock-script @@ -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