AutoKey に代わるものはありますか?

AutoKey に代わるものはありますか?

この質問はすでにされましたここ7 か月経ちましたが、正しい答えはありませんでした。そこで、もう一度質問します。特定の略語が入力されたときにテキスト拡張を実行する AutoKey の代替手段はありますか? 私の問題は、この機能を Thunderbird で使用すると AutoKey がランダムに文字をスキップすることです。テキスト エディターでは常に正常に動作します。この問題は、Ubuntu 13.10 以降で発生します。

答え1

Snippy は私にとっては非常にうまく機能しているようです。GUI はありませんが、非常に機能的です。ようやく代替品が見つかってよかったです。

http://leon.vankammen.eu/tech/snippy-autocompletion-for-console-and-browser-window-manager-using-bash.html

リンクのコメントには別の選択肢も記載されています。

Snippy 自体は tinyurl 経由で入手でき、インストール手順は次のとおりです。

curl -L "http://tinyurl.com/o9d6ch5" > snippy.sh 
chmod 755 snippy.sh
./snippy.sh

あるいは、強化版がここgithubで

インストールも同様に機能します。

答え2

Snippy は実際には非常に良いアイデアであることが証明され、今ではデスクトップにスクリプトのメニューがあります。

しかし、xdotool は最近ウィンドウ名でうまく動作しないため、再構築が必要であることが判明しました (私はあらゆる可能な解決策を試しました - 私の OS は Ubuntu 22.04 w/XFCE です)。

dmenuのみを残しました:

#!/bin/bash
# snippy re-engineered

DIR=${HOME}/.snippy
APPS="dmenu"
DMENU_ARGS="-b"
TERMINAL=tilix # change to your favorite

init(){
  for APP in $APPS; do 
    which $APP >/dev/null 2>&1 || {
      read -p "install the following required utils? : $APPS (y/n)" reply
      if [ "$reply" == "y" ]; then
       sudo apt install --assume-yes ${APPS}; 
      fi
    }
  done
  if [ ! -d "$DIR" ]; then
    echo -e "created $DIR\n";
    mkdir "$DIR"; 
    printf 'hi it is $(date)' > "$DIR""/test";
  fi
  return 0
}

run(){
  # Use the filenames in the snippy directory as menu entries.
  cd ${DIR} 
  # Get the menu selection from the user.
  FILE=`find -L .  -type f | grep -v '^\.$' | sed 's!\.\/!!' | sort | /usr/bin/dmenu ${DMENU_ARGS}`
  
  # open terminal and execute
  if [ -z "$FILE" ]; then
      exit
  else
      ${TERMINAL} --title=$FILE --command="$SHELL $DIR/$FILE"
  fi

}

init && run

このアップデートは何年も経ってから行われましたが、役に立つことが証明されました。

関連情報