This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# переменные # | |
SLEEP_TIME=1 # пауза между запуском программы | |
BYTES_COUNT=10 # сколько байт начала и конца файла читаем | |
PROGRAMM="flacon" # программа которой передаём cue-файл | |
## | |
# цветной вывод | |
red=$(tput setf 4) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
cardname=$1 | |
if [ d$cardname == d ]; then | |
notify-send 'Карта не указана!' | |
exit | |
fi | |
# $totalsc: Number of sound cards available |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Скрипт, переименовывающий скачанные видео-файлы, | |
# в соответствии с шаблоном "Название_фильма (год).расширение" | |
# и скачивает обложки вида "Название_фильма.jpg" к фильму | |
# v1.4 | |
# Требования: | |
# - Желательно разместить этот файл где-нибудь в $PATH (например /usr/bin) | |
# - Разместить файл kinopoisk.py где-нибудь в $PATH (например /usr/bin) или прописать в переменной api путь к файлу |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
year=2011 #год, который исключаем | |
if [ -z "$1" ] | |
then | |
echo "Порядок использования: `basename $0` <имя файла>" | |
exit 65 | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Скрипт для изменения яркости ЖК-монитора. | |
# v1.2 | |
dev="dev:/dev/i2c-0" # устройство. Выполните ddccontrol -p и подставьте сюда найденное значение. | |
reg="0x10" # код яркости | |
max=100 # максимальное значение | |
[ -z "$1" ] && echo "Использование: `basename $0` <РАЗНИЦА ЯРКОСТИ>" 1>&2 && exit 1 |