Fixed a bug where i3's mod key was being automatically set to super if a ratpoison mode key was not selected.
This commit is contained in:
parent
2953ecd157
commit
ce5f632bfc
5
i38.sh
5
i38.sh
@ -156,14 +156,13 @@ done
|
|||||||
|
|
||||||
# Configuration questions
|
# Configuration questions
|
||||||
export i3Mode=$(yesno "Would you like to use ratpoison mode? This behaves more like strychnine, with an escape key followed by keybindings.")
|
export i3Mode=$(yesno "Would you like to use ratpoison mode? This behaves more like strychnine, with an escape key followed by keybindings.")
|
||||||
if [[ $i3Mode -eq 1 ]]; then
|
|
||||||
mod="Mod4"
|
|
||||||
fi
|
|
||||||
# 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
|
||||||
|
if [[ $i3Mode -eq 0 ]]; then
|
||||||
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}"
|
||||||
|
fi
|
||||||
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}"
|
||||||
|
Loading…
Reference in New Issue
Block a user