From bd88e966de67046e063097eeba1c77641e37fc83 Mon Sep 17 00:00:00 2001 From: stormdragon2976 Date: Wed, 30 Nov 2022 17:16:04 -0500 Subject: [PATCH] Fixed a bug in the configuration writing section that caused the config file to be all kids of screwed up. --- i38.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/i38.sh b/i38.sh index 01fa364..8ecd5ce 100755 --- a/i38.sh +++ b/i38.sh @@ -360,7 +360,7 @@ bindsym Control+Shift+F10 move container to workspace number \$ws10, exec spd-sa EOF # Create ratpoison mode if requested. -if [[ -n ${escapeKey} ]]; then +if [[ -n "${escapeKey}" ]]; then cat << EOF >> ${i3Path}/config bindsym $escapeKey mode "ratpoison" mode "ratpoison" { @@ -414,7 +414,7 @@ EOF fi # For those who do not want ratpoison mode. -if [[ -z ${escapeKey} ]]; then +if [[ -z "${escapeKey}" ]]; then cat << EOF >> ${i3Path}/config # Text editor bound to $mod+e bindsym \$mod+e exec $textEditor, mode "default" @@ -464,7 +464,7 @@ bindsym \$mod+Control+q exec bash -c 'yad --image "dialog-question" --title "I38 EOF fi -cat << EOF > ${i3Path}/config +cat << EOF >> ${i3Path}/config # Auto start section $(if [[ $sounds -eq 0 ]]; then echo "exec_always --no-startup-id ${i3Path}/scripts/sound.py"