diff --git a/d1/f1.sh b/d1/f1.sh index 8941689..d4219fa 100644 --- a/d1/f1.sh +++ b/d1/f1.sh @@ -3,3 +3,4 @@ cp dotfiles/.local/bin/commands ~/.local/bin/commands mkdir -p ~/.sway cp dotfiles/.sway/config ~/.sway/config +cp dotfiles/.zshenv ~/.zshenv diff --git a/dotfiles/.local/bin/commands b/dotfiles/.local/bin/commands index 40ee4c3..4afb9c4 100755 --- a/dotfiles/.local/bin/commands +++ b/dotfiles/.local/bin/commands @@ -508,6 +508,22 @@ try: ip_addr=sys.argv[2], ethernet_device=sys.argv[3], ) + elif sys.argv[1] == 'desktop-services': + t1 = [] + try: + t1.append( + subprocess.Popen(['ibus-daemon']) + ) + for o in t1: + t1.wait() + finally: + for o in t1: + try: + t1.terminate(timeout=10) + except: + logging.error('killed %s' % str(t1.__dict__)) + t1.kill() + else: raise NotImplementedError except: diff --git a/dotfiles/.zshenv b/dotfiles/.zshenv index 41c10bf..a4c0aa0 100644 --- a/dotfiles/.zshenv +++ b/dotfiles/.zshenv @@ -1,2 +1,5 @@ export EDITOR=vim export PATH=~/.local/bin:$PATH +export GTK_IM_MODULE=ibus +export XMODIFIERS=@im=ibus +export QT_IM_MODULE=ibus