æè¿Ubuntuãã¯ãªã¼ã³ã¤ã³ã¹ãã¼ã«ãããIMã®ããã©ã«ããIBusã«ãªã£ã¦ãã¾ããã IBusã§ã¯IMã®On/Offãåå¥è¨å®ã§ããªããããªã®ã§ãå¤æããã¼ã¨ãç¡å¤æããã¼ã§IMãON/OFFã¿ãããªãã¨ãã§ãã¾ããã ã¨ããããUbuntuã«ã¯ããã©ã«ãã§Pythonãã¤ã³ã¹ãã¼ã«ããã¦ããã®ã§ãPythonã§å¶å¾¡ãã¦ãã¼ãã¼ãã·ã§ã¼ãã«ããã«å²ãä»ãããã¨ã«ãã¾ããã Pythonã§IBusã®IMãã°ã« import ibus bus = ibus.Bus() ic = ibus.InputContext(bus, bus.current_input_contxt()) if ic.is_enabled(): ic.disable() else: ic.enable() ãã®ã¹ã¯ãªããã ibus-toggle.pyãªã©é©å½ãªãã¡ã¤ã«ã«ã㦠$ python ibus-toggle
{{#tags}}- {{label}}
{{/tags}}