OSDN Git Service
(root)
/
instantos
/
instantOS.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0767fc6
)
add toast
author
paperbenni
<paperbenni@gmail.com>
Thu, 10 Dec 2020 20:04:58 +0000
(21:04 +0100)
committer
paperbenni
<paperbenni@gmail.com>
Thu, 10 Dec 2020 20:04:58 +0000
(21:04 +0100)
programs/instantkeyswitch
patch
|
blob
|
history
diff --git
a/programs/instantkeyswitch
b/programs/instantkeyswitch
index
fb8febe
..
16ea7f9
100755
(executable)
--- a/
programs/instantkeyswitch
+++ b/
programs/instantkeyswitch
@@
-34,7
+34,13
@@
if [ "$TMPINDEX" -gt "$LAYOUTCOUNT" ]; then
TMPINDEX=1
fi
-
setxkbmap -layout
"$(sed -n "${TMPINDEX}p" "$KEYCONF")"
+
NEWLAYOUT=
"$(sed -n "${TMPINDEX}p" "$KEYCONF")"
-# save index
+{
+ setxkbmap -layout "$NEWLAYOUT" || notify-send 'failed setting the layout'
+} &
+
+imenu -t "Keyboard layout: $NEWLAYOUT"
+
+# save index
echo "$TMPINDEX" >"$TMPPATH"