commit 40c4bc7757a9fbbaca07660b4dbf6de17b965e24
parent ee612a960f78ec640f2f7c70122a59380796439f
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Sun, 17 Mar 2019 10:16:41 +0100
Change layout back to us before exit
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/links/bin/message b/links/bin/message
@@ -33,6 +33,7 @@ function show_version {
function die {
printf '%s\n' "$1" >&2
+ keyboard-layout-switch.sh us
exit 1
}
@@ -42,10 +43,12 @@ while :; do
case "$1" in
-h|-\?|--help)
show_help
+ keyboard-layout-switch.sh us
exit 0
;;
-v|--version)
show_version
+ keyboard-layout-switch.sh us
exit 0
;;
-p|--prompt)
@@ -75,6 +78,7 @@ if [ "$prompt" = 1 ]; then
recipient=$(echo -e "${names[@]}" | dmenu_themed -i -p "To:" || exit 1)
msg="$(echo ' ' | dmenu_themed -i -p 'Message:')"
send_message "$recipient" "$msg"
+ keyboard-layout-switch.sh us
exit 0
else
# stdin