i3blocks, new nfrc script

This commit is contained in:
2025-04-01 00:38:10 +03:00
parent 616e8e4441
commit e9305858a5
8 changed files with 210 additions and 94 deletions

View File

@ -122,22 +122,6 @@ export PATH=$PATH:$HOME/go/bin
eval "$(zoxide init bash)"
question() {
if [[ "$2" == "1" ]]; then
read -r -p "$1 (y/N)" choice < /dev/tty
case "$choice" in
"y"|"Y"|"д"|"Д" ) exit 0 ;;
""|"n"|"N"|"н"|"Н" ) exit 1 ;;
* ) echo "Неопознанный ответ"; question "$1" $2 ;;
esac
else
read -r -p "$1 (Y/n)" choice < /dev/tty
case "$choice" in
""|"y"|"Y"|"д"|"Д" ) exit 0 ;;
"n"|"N"|"н"|"Н" ) exit 1 ;;
* ) echo "Неопознанный ответ"; question "$1" $2 ;;
esac
fi
}
source ~/.dotfiles/nfrc.sh
source ~/.dotfiles/nfrc
export QT_QPA_PLATFORMTHEME=qt5ct