2024-01-28 08:54:01 -07:00
2024-01-28 08:08:38 -07:00
2024-02-01 11:01:42 -07:00

autobudilnik

a program on ruby for windows that turns on alarm after N times when you are not using the keyboard (the computer) without any third-party gems

###warning: for some reason system(audiofilepath) doesn't always work

syntax:

ruby autobudilnik.rb [-a <audiofilepath>] [-t <time>] [-c <configfilepath>]

supports 's', 'm', 'h' and 'd' (24 hours) suffixes for time

configuration file:

waittime seconds configfilepath path/to/config

TODO

  1. UI
  2. automatic a config file creation?

НА РУССКОМ

ПРОГРАММА НА РУБИ ДЛЯ ВИНДОВС КОТОРАЯ ВКЛЮЧАЕТ БУДИЛЬНИК ЧЕРЕЗ ОПРЕДЕЛЁННОЕ ВРЕМЯ НЕИСПОЛЬЗОВАНИЕ КЛАВИАТУРЫ (КОМПЬЮТЕРА) БЕЗ СТОРОННИХ ГЕМОВ

СИНТАКСИС:

ruby autobudilnik.rb [-a <audiofilepath>] [-t <time>] [-c <configfilepath>]

МОЖНО ИСПОЛЬЗОВАТЬ СУФФИКСЫ (ПРИСТАВКИ) ДЛЯ ВРЕМЕНИ: 's' ДЛЯ СЕКУНД (АВТОМАТИЧЕСКИЙ) 'm' ДЛЯ МИНУТ 'h' ДЛЯ ЧАСОВ 'd' ДЛЯ ДНЕЙ(24 ЧАСОВ(СУТКИ) А НЕ 12 ЧАСОВ)

ПРИМЕЧАНИЯ

ЧЁТ system(audiofilepath) НЕ ВСЕГДА РАБОТАЕТ ПАРАМЕНТЫ ОПРЕДЕЛЯЮТСЯ В ЭТИХ ПРИОРИТЕТАХ: АРГУМЕНТЫ > СВОЙ КОНФИГ > КОНФИГ > ВСТРОЕННЫЕ ПАРАМЕТРЫ

ЕСЛИ НУЖЕН КОНФИГ ИЛИ АУДИОФАЙЛ В ОТНОСИТЕЛЬНОМ КАТАЛОГЕ ТО НУЖНО СНАЧАЛО В ТЕРМИНАЛЬНОЙ СРЕДЕ(cmd) ПЕРЕЙТИ ТУДА ПЕРЕД ЗАПУСКОМ

ФАЙЛ КОНФИГУРАЦИИ

waittime seconds configfilepath ПУТЬ/К/КОНФИГУ

ЗАДАЧИ

  1. ПОЛЬЗОВАТСКИЙ ИНТЕРФЕЙС
  2. АВТОМАТИЧЕСКОЕ СОЗДАНИЕ ФАЙЛА КОНФИГА?
Description
a program on pure ruby for windows that turns on alarm after N times when you are not using the keyboard without any third-party gems
Readme 78 KiB
Languages
Ruby 99.2%
Batchfile 0.8%