Fixed formatting and made the conflict use dialog.
This commit is contained in:
parent
89b0c26848
commit
67c5ce5803
20
i38.sh
20
i38.sh
@ -146,16 +146,16 @@ done
|
|||||||
|
|
||||||
# Configuration questions
|
# Configuration questions
|
||||||
#Prevent setting ratpoison mode key to the same as default mode key
|
#Prevent setting ratpoison mode key to the same as default mode key
|
||||||
while [ "$escapeKey" == "$mod" ]; do
|
while [[ "$escapeKey" == "$mod" ]]; do
|
||||||
escapeKey="$(menulist "Ratpoison mode key:" Control+t Control+z Control+Escape Alt+Escape Control+Space Super)"
|
escapeKey="$(menulist "Ratpoison mode key:" Control+t Control+z Control+Escape Alt+Escape Control+Space Super)"
|
||||||
escapeKey="${escapeKey//Alt/Mod1}"
|
escapeKey="${escapeKey//Alt/Mod1}"
|
||||||
escapeKey="${escapeKey//Super/Mod4}"
|
escapeKey="${escapeKey//Super/Mod4}"
|
||||||
mod="$(menulist "I3 mod key, for top level bindings:" Alt Control Super)"
|
mod="$(menulist "I3 mod key, for top level bindings:" Alt Control Super)"
|
||||||
mod="${mod//Alt/Mod1}"
|
mod="${mod//Alt/Mod1}"
|
||||||
mod="${mod//Super/Mod4}"
|
mod="${mod//Super/Mod4}"
|
||||||
if [ "$escapeKey" == "$mod" ]; then
|
if [ "$escapeKey" == "$mod" ]; then
|
||||||
echo "Sorry, these cannot be the same key."
|
dialog --title "I38" --msgbox "Ratpoison and mod key cannot be the same key." -1 -1
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
# Volume jump
|
# Volume jump
|
||||||
volumeJump=$(rangebox "How much should pressing the volume keys change the volume?" 1 15 5)
|
volumeJump=$(rangebox "How much should pressing the volume keys change the volume?" 1 15 5)
|
||||||
|
Loading…
Reference in New Issue
Block a user