blob: 5700bf75ea62d00651593dc4593a044791af16d8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
function setvirtualkeyboard
echo "Starting $argv[1]"
kwriteconfig6 --file kwinrc --group Wayland --key InputMethod "$argv[1]"
busctl --user emit /kwinrc org.kde.kconfig.notify ConfigChanged "a{saay}" 1 Wayland 1 11 73 110 112 117 116 77 101 116 104 111 100
end
function switchvirtualkeyboard
busctl --user monitor --match "type='signal',interface='org.kde.KWin.TabletModeManager',member='tabletModeChanged'" | \
while read -l line
if string match -q "*true*" $line
setvirtualkeyboard /usr/share/applications/com.github.maliit.keyboard.desktop
else if string match -q "*false*" $line
setvirtualkeyboard /usr/share/applications/fcitx5-wayland-launcher.desktop
end
end
end
|