Allow sxmo_idle config menu to disable an kind

master
Stacy Harper 3 years ago
parent 62e5dd146b
commit fe34795f86
No known key found for this signature in database
GPG Key ID: 5BAC92328B7C5D65
  1. 6
      scripts/core/sxmo_idle.sh

@ -82,7 +82,11 @@ configmenu() {
printf "" | \ printf "" | \
sxmo_dmenu_with_kb.sh -p "New value" sxmo_dmenu_with_kb.sh -p "New value"
)" )"
[ "$new_value" -gt 5 ] || unset new_value if ! [ "$new_value" -eq "$new_value" ]; then
unset new_value # not an integer value
elif [ "$new_value" -lt 5 ] && [ "$new_value" -ne 0 ]; then
unset new_value
fi
done done
sed -i "s|$target $old_value|$target $new_value|" "$CACHEDIR"/sxmo.idle.state sed -i "s|$target $old_value|$target $new_value|" "$CACHEDIR"/sxmo.idle.state

Loading…
Cancel
Save