bin: more typing options
This commit is contained in:
parent
b2f743be35
commit
66e8f203c4
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# Emacs in the terminal
|
# Emacs in the terminal
|
||||||
pgrep --full "emacs .*-daemon" >/dev/null || emacs --daemon
|
pgrep --full "emacs" >/dev/null || emacs --daemon
|
||||||
emacsclient --create-frame --tty "$@"
|
emacsclient --create-frame --tty "$@"
|
||||||
exit=$?
|
exit=$?
|
||||||
stty sane
|
stty sane
|
||||||
|
|
|
@ -1,7 +1,12 @@
|
||||||
#!/bin/sh -e
|
#!/bin/sh -e
|
||||||
# Type in NoVNC with german layout
|
# Type in NoVNC - from clipboard or interactively with german layout
|
||||||
xdotool search --onlyvisible --classname Navigator windowactivate # Activate Firefox
|
xdotool search --onlyvisible --classname Navigator windowactivate # Activate Firefox
|
||||||
|
if test $# -gt 0
|
||||||
|
then
|
||||||
setxkbmap de
|
setxkbmap de
|
||||||
sleep 0.1
|
sleep 0.1
|
||||||
xdotool type --delay 80ms --clearmodifiers "$@"
|
xdotool type --delay 80ms --clearmodifiers "${@:-$(xclip -sel clip -o)}"
|
||||||
update-keyboard-layout >/dev/null
|
update-keyboard-layout >/dev/null
|
||||||
|
else
|
||||||
|
xdotool type --delay 80ms --clearmodifiers "${xclip -sel clip -o}"
|
||||||
|
fi
|
||||||
|
|
Loading…
Reference in New Issue