Merge #14433 input methods and remove Rime
The keyboard choice and omarchy-setup-input own Chinese input now. The new passwordless sudo and input tooltips get Chinese text.
This commit is contained in:
commit
fdd457c0fa
86 files changed
+2545
-207
No files matched your search
+10
-1
@@ -601,5 +601,14 @@ var table = {
|
||||
"Pause": "暂停",
|
||||
"Play": "播放",
|
||||
"Next": "下一首",
|
||||
"Previous": "上一首"
|
||||
"Previous": "上一首",
|
||||
"Disable Passwordless Sudo": "关闭免密码 sudo",
|
||||
"Passwordless Sudo": "免密码 sudo",
|
||||
"Could not disable passwordless sudo": "无法关闭免密码 sudo",
|
||||
"Check the sudo configuration and try again.": "请检查 sudo 配置后重试。",
|
||||
"Click to set up an input language": "点击设置输入语言",
|
||||
"Click to switch input language": "点击切换输入语言",
|
||||
"Ctrl + Shift + Space to toggle input": "Ctrl + Shift + Space 切换输入",
|
||||
"Japanese: type a word, then Space twice for character choices": "日语:输入词语后按两次空格选字",
|
||||
"Right-click to switch keyboard layout": "右键切换键盘布局"
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
pragma Singleton
|
||||
import QtQuick
|
||||
import Quickshell
|
||||
import Quickshell.Io
|
||||
|
||||
Singleton {
|
||||
id: root
|
||||
property var state: ({})
|
||||
|
||||
function cycle() {
|
||||
if (watcher.running) watcher.write("cycle\n")
|
||||
}
|
||||
|
||||
// One reader and pending selection for every monitor's keyboard widget.
|
||||
Process {
|
||||
id: watcher
|
||||
command: ["/usr/bin/python", Quickshell.env("OMARCHY_PATH") + "/default/input-methods/indicator.py"]
|
||||
running: true
|
||||
stdinEnabled: true
|
||||
stdout: SplitParser {
|
||||
onRead: data => {
|
||||
try { root.state = JSON.parse(data) } catch (e) {}
|
||||
}
|
||||
}
|
||||
onExited: {
|
||||
root.state = ({})
|
||||
restart.restart()
|
||||
}
|
||||
}
|
||||
|
||||
Timer {
|
||||
id: restart
|
||||
interval: 5000
|
||||
onTriggered: watcher.running = true
|
||||
}
|
||||
}
|
||||
@@ -3,6 +3,7 @@ singleton Border 1.0 Border.qml
|
||||
singleton Color 1.0 Color.qml
|
||||
singleton I18n 1.0 I18n.qml
|
||||
singleton IpcRegistry 1.0 IpcRegistry.qml
|
||||
singleton InputMethodState 1.0 InputMethodState.qml
|
||||
singleton Style 1.0 Style.qml
|
||||
singleton Util 1.0 Util.qml
|
||||
ShellIpc 1.0 ShellIpc.qml
|
||||
Reference in new issue
Block a user