Compare commits
2 Commits
6b4be3a5d2
...
34dd851273
Author | SHA1 | Date | |
---|---|---|---|
|
34dd851273 | ||
|
18d0a25fb9 |
@ -25,7 +25,7 @@ VERBOSE=0
|
|||||||
CONFIG_PATH="${XDG_CONFIG_HOME:-$HOME/.config}/volumectl/config.ini"
|
CONFIG_PATH="${XDG_CONFIG_HOME:-$HOME/.config}/volumectl/config.ini"
|
||||||
READ_INI_POSSIBLE_PATHS=(\
|
READ_INI_POSSIBLE_PATHS=(\
|
||||||
"${XDG_LIB_HOME:-$HOME/.local/lib}/read_ini.sh" "${XDG_LIB_HOME:-$HOME/.local/lib}/bash_ini_parser/read_ini.sh" \
|
"${XDG_LIB_HOME:-$HOME/.local/lib}/read_ini.sh" "${XDG_LIB_HOME:-$HOME/.local/lib}/bash_ini_parser/read_ini.sh" \
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
## Args
|
## Args
|
||||||
@ -33,7 +33,7 @@ OPTIONAL_FLAGS=( \
|
|||||||
"-v" "--verbose" \
|
"-v" "--verbose" \
|
||||||
"-c" "--config" \
|
"-c" "--config" \
|
||||||
"-h" "-?" "--help" \
|
"-h" "-?" "--help" \
|
||||||
)
|
)
|
||||||
|
|
||||||
verbose () {
|
verbose () {
|
||||||
[[ $VERBOSE -eq 1 ]] && return 0 || return 1
|
[[ $VERBOSE -eq 1 ]] && return 0 || return 1
|
||||||
@ -291,7 +291,7 @@ if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then #if '__name__' == '__main__'
|
|||||||
verbose && echo "Detected -m or --mute"
|
verbose && echo "Detected -m or --mute"
|
||||||
mute
|
mute
|
||||||
;;
|
;;
|
||||||
-u|--ummute)
|
-u|--unmute)
|
||||||
verbose && echo "Detected -u or --unmute"
|
verbose && echo "Detected -u or --unmute"
|
||||||
unmute
|
unmute
|
||||||
;;
|
;;
|
||||||
@ -316,4 +316,3 @@ if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then #if '__name__' == '__main__'
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user