/
hubbitus
/
shell.scripts
Обзор
Документация
Войти
/
hubbitus
/
shell.scripts
Код
Запросы
0
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
current-time.x
4 строки
272 B
Pavel Alexeev
Add current-time.x: simple script to past in current X-window current time
14 апр 2014, 16:36
14 апр 2014, 16:36
9853419
Код
Авторство
О чём код?
#!/bin/bash # For such long hack see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=415451 echo -e "sleep 1\nstr $(date +'%H')\nkeydown Shift_L\nkey colon\nkeyup Shift_L\nsleep 0.2\nstr $(date +'%M')\nkeydown Shift_L\nkey colon\nkeyup Shift_L\nstr $(date +'%S')" | xte