
這個問題已經被問過這裡7個月了,卻沒有正確答案。所以我想再次問:是否有 AutoKey 的替代方案,它在鍵入特定縮寫時執行文字擴充?我的問題是,當我在 Thunderbird 中使用此功能時,AutoKey 會隨機跳過字母,而它在文字編輯器中始終工作正常。從 Ubuntu 13.10 開始出現此問題。
答案1
Snippy 似乎對我來說運作得很好。沒有 GUI,但功能齊全。很高興我終於找到替代品了。
該連結還在評論中提到了另一個選擇。
Snippy 本身可以透過tinyurl 取得,安裝如下:
curl -L "http://tinyurl.com/o9d6ch5" > snippy.sh
chmod 755 snippy.sh
./snippy.sh
或者,似乎有一個增強版本位於在github上
安裝工作原理相同。
答案2
Snippy 實際上被證明是一個非常好的主意,現在我的桌面上有一個腳本選單。
不過,重組被證明是必要的,因為 xdotool 如今在視窗名稱方面的工作效果不太好(我嘗試了所有可能的解決方案 - 我的作業系統是 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
這次更新是在很多年後才出現的,但事實證明它很有幫助。