title: Compiling Xtitle, not that xtitle
link: http://jj.isgeek.net/2016/09/compiling-xtitle-not-that-xtitle/
author: Jj
description: 
post_id: 1069
date: 2016/09/03 16:52:00
created_gmt: 2016/09/03 21:52:00
comment_status: open
slug: compiling-xtitle-not-that-xtitle

I just switched to use [i3blocks](https://github.com/vivien/i3blocks) for my [i3 bar](https://i3wm.org/). I found [this post on how to set the active window title](https://bfgeshka.wordpress.com/2014/11/16/howto-showing-a-title-of-focused-window-in-bar-i3wm/) that [uses xtitle](https://github.com/baskerville/xtitle). Not to be confused with[ ubuntu's apt xtitle](http://packages.ubuntu.com/source/precise/utils/xtitle) which sets the window title. This different utility is to **read** the window title. 

It comes with a handy Makefile, but I didn't have the dependencies to get it compiled. These are the Ubuntu packages I needed to install: 
    
    
    libxcb-icccm4-dev 
    libxcb-ewmh2
    libxcb-util-dev 
    libxcb1-dev