X-Git-Url: https://git.grml.org/?a=blobdiff_plain;f=usr_bin%2Fcaps-ctrl;h=dfaec760c76ce176b1edc4cb78c0b6a9292311dc;hb=4905c02154da76a8ce549a397302fe296573e1c3;hp=8096e42b4279a502a1afa543682aa516a2676b06;hpb=50a1a137fe55cd7c40265e65ccc307b687de4127;p=grml-scripts-core.git diff --git a/usr_bin/caps-ctrl b/usr_bin/caps-ctrl index 8096e42..dfaec76 100755 --- a/usr_bin/caps-ctrl +++ b/usr_bin/caps-ctrl @@ -12,7 +12,6 @@ fi . /etc/grml/lsb-functions || ( alias einfo=echo ; alias eerror=echo; alias eend=echo ) emulate zsh -autoload -U colors ; colors if [[ -z $DISPLAY ]] ; then # test if X is not running when calling us if [ $(id -u) != 0 ] ; then # test if user root did invoke this command @@ -25,8 +24,8 @@ if [[ -z $DISPLAY ]] ; then # test if X is not running when calling us ( einfo "caps-ctrl - switching caps lock and control key." loadkeys <<- EOT - keycode 58 = `repeat 15 echo -n 'Control '` - keycode 29 = `repeat 7 echo -n 'Caps_Lock '` + keycode 58 = $(repeat 15 echo -n 'Control ') + keycode 29 = $(repeat 7 echo -n 'Caps_Lock ') EOT eend $? @@ -34,8 +33,8 @@ if [[ -z $DISPLAY ]] ; then # test if X is not running when calling us einfo "caps-ctrl - switching caps lock and control key." loadkeys <<- EOT - keycode 58 = `repeat 15 echo -n 'Caps_Lock '` - keycode 29 = `repeat 7 echo -n 'Control '` + keycode 58 = $(repeat 15 echo -n 'Caps_Lock ') + keycode 29 = $(repeat 7 echo -n 'Control ') EOT eend $? )