ibus-avro

This is a tutorial on setting up ibus-avro on Linux systems that are devoid of any Desktop Environments such as Gnome or xfce and purely based on window managers or others. I use dwm on a debian system.

My strategy was to build from source. Hence, I had to satisfy the dependencies. For a Debian distribution, all I needed was to install only these packages;


$ apt install ibus \
	ibus-gtk gjs \
	automake \
	autoconf \
	make \
	libibus-1.0-dev \
	git

view raw

I'm not sure if gjs is actually needed though. Anyways, after successful installation of these packages, git clone the repo;


$ git clone https://github.com/sarim/ibus-avro.git

view raw

then change directory to ibus-avro and run autoconf and automake;


$ aclocal && autoconf && automake --add-missing

$ ./configure --prefix=/usr


view raw

then make install;


$ make install

view raw

Now, assuming that you use a .xinitrc or for a Debian based system there's .xsessionrc, you would add/export the following lines to your .profile;


export GTK_IM_MODULE=ibus
export XMODIFIERS=@im=ibus
export QT_IM_MODULE=ibus

view raw

Now, to start the ibus-daemon in the background; you could either create an alias or a function in your bash source file or under, ~/.local/bin/ directory and start or stop ibus avro from there;

To start ibus-daemon; run


$ ibus-daemon -dx

view raw

You could probably add the line above to a shell script and integrate it like this, or you could invoke it at any time;


#!/usr/bin/env sh

# check if xorg is running, if not running, then exit with exit code 1
[ -z "$DISPLAY" ] && \
	echo "No display server is running at this moment, exiting..." && \
	return 1;
# ELse daemoize ibus
ibus-daemon -dx

view raw

And to stop ibus, just run pkill ibus* That should be enough.


Made with <3 by samiuljoy

rss | about | go to top