Skip to content

Instantly share code, notes, and snippets.

@mgutz
Created December 21, 2017 12:14
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mgutz/61fe714b402e7c8390dc68d3ab858208 to your computer and use it in GitHub Desktop.
Save mgutz/61fe714b402e7c8390dc68d3ab858208 to your computer and use it in GitHub Desktop.
ansible script for i3
- name: install i3 and custom utils
become: yes
apt: pkg={{item}}
with_items:
- hsetroot
- i3
- rofi
- xsel
- rxvt-unicode-256color
- name: install dev libs to build i3-gaps
become: yes
apt: pkg={{item}}
with_items:
- libxcb1-dev
- libxcb-keysyms1-dev
- libpango1.0-dev
- libxcb-util0-dev
- libxcb-icccm4-dev
- libyajl-dev
- libstartup-notification0-dev
- libxcb-randr0-dev
- libev-dev
- libxcb-cursor-dev
- libxcb-xinerama0-dev
- libxcb-xkb-dev
- libxkbcommon-dev
- libxkbcommon-x11-dev
- autoconf
- name: libxcb-xrm-dev ppa
become: yes
apt_repository: repo="ppa:aguignard/ppa"
- name: install libxcb-xrm-dev
become: yes
apt: pkg={{item}} update_cache=true
with_items:
- libxcb-xrm-dev
- name: get i3-gaps source
git:
depth: 1
dest: "{{SRC_HOME}}/i3-gaps"
repo: https://github.com/Airblader/i3.git
update: yes
# fix to known good version, mater had issues compiling
#version: 290d739c78dc7b11f885437ab38eb94e979cf57
#version: fdf5d3aacfdfe89b2ea12d3e1aadc7e46c287896
version: b7ccff0d8a8160395be271c22b69d8c801dde294
- name: build i3-gaps
shell: |
autoreconf --force --install
rm -rf build/
mkdir -p build && cd build/
../configure --prefix=/usr --sysconfdir=/etc --disable-sanitizers
make
args:
chdir: "{{SRC_HOME}}/i3-gaps"
- name: install i3-gaps
become: yes
shell: "make install"
args:
chdir: "{{SRC_HOME}}/i3-gaps/build"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment