Changes
1 changed files (+9/-3)
-
-
@@ -1,6 +1,12 @@function set-keyboard -d "Edit the Plasma Wayland virtual keyboard setting" echo "Starting $argv[1]" kwriteconfig6 --file kwinrc --group Wayland --key InputMethod "$argv[1]" if test -d /run/current-system/sw # NixOS set prefix /run/current-system/sw else set prefix /usr end kwriteconfig6 --file kwinrc --group Wayland --key InputMethod "$prefix/share/applications/$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
-
@@ -8,9 +14,9 @@ function switch-virtual-keyboard -d "Switch the virtual keyboard to Maliit whenbusctl --user monitor --match "type='signal',interface='org.kde.KWin.TabletModeManager',member='tabletModeChanged'" | \ while read -l line if string match -q "*true*" $line set-keyboard /usr/share/applications/com.github.maliit.keyboard.desktop set-keyboard com.github.maliit.keyboard.desktop else if string match -q "*false*" $line set-keyboard /usr/share/applications/fcitx5-wayland-launcher.desktop set-keyboard fcitx5-wayland-launcher.desktop end end end
-