diff --git a/gnome-keyboard-toogle-configure/gnome-keyboard-toogle-configure.service b/gnome-keyboard-toggle-configure/gnome-keyboard-toggle-configure.service similarity index 70% rename from gnome-keyboard-toogle-configure/gnome-keyboard-toogle-configure.service rename to gnome-keyboard-toggle-configure/gnome-keyboard-toggle-configure.service index 1f06eee..6d04d46 100644 --- a/gnome-keyboard-toogle-configure/gnome-keyboard-toogle-configure.service +++ b/gnome-keyboard-toggle-configure/gnome-keyboard-toggle-configure.service @@ -3,7 +3,7 @@ Description=Autoconfiguration of layout change at first start [Service] Type=oneshot -ExecStart=/usr/bin/gnome-keyboard-toogle-configure.sh +ExecStart=/usr/bin/gnome-keyboard-toggle-configure.sh [Install] WantedBy=multi-user.target diff --git a/gnome-keyboard-toogle-configure/gnome-keyboard-toogle-configure.sh b/gnome-keyboard-toggle-configure/gnome-keyboard-toggle-configure.sh similarity index 91% rename from gnome-keyboard-toogle-configure/gnome-keyboard-toogle-configure.sh rename to gnome-keyboard-toggle-configure/gnome-keyboard-toggle-configure.sh index 4d853dc..49ef1ae 100755 --- a/gnome-keyboard-toogle-configure/gnome-keyboard-toogle-configure.sh +++ b/gnome-keyboard-toggle-configure/gnome-keyboard-toggle-configure.sh @@ -1,8 +1,8 @@ #!/bin/bash -exec &>/var/log/gnome-keyboard-toogle-configure.log +exec &>/var/log/gnome-keyboard-toggle-configure.log -SERVICE_NAME='gnome-keyboard-toogle-configure.service' +SERVICE_NAME='gnome-keyboard-toggle-configure.service' GSCHEMA_FILE='/usr/share/glib-2.0/schemas/org.gnome.desktop.wm.keybindings.gschema.override' @@ -35,7 +35,7 @@ systemctl disable $SERVICE_NAME [ -z "$SWITCH_INPUT_OPT" ] && exit if [ -f $GSCHEMA_FILE ]; then - TMP_FILE=$(mktemp /tmp/gnome-keyboard-toogle-configure_XXXXXXXXX) + TMP_FILE=$(mktemp /tmp/gnome-keyboard-toggle-configure_XXXXXXXXX) sed "s/switch-input-source-backward.*$/switch-input-source-backward=${SWITCH_INPUT_OPT}/g" $GSCHEMA_FILE >$TMP_FILE || exit 1 mv -f $TMP_FILE $GSCHEMA_FILE else