Commit 0b1bd005 authored by Glen Mével's avatar Glen Mével

fix `bell`

parent f608aba5
# Save the bell settings and activate it if needed.
settings=$(xset -q |grep bell |grep -o '[0-9]*')
xset b ${settings/#0/50}
# This script depends on the program “xset”.
command -V xset >/dev/null || return 1
# Save the bell settings.
settings=( $(xset -q | grep bell | grep -o '[0-9]*') )
# Activate the bell if needed.
xset b "${settings[0]/#0/50}"
# Ring the bell.
echo -ne '\a'
# Restore the bell settings.
xset b $settings
xset b "${settings[@]}"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment