Skip to content

Instantly share code, notes, and snippets.

@chewwt
Forked from dabroder/i3-gaps.sh
Last active November 6, 2024 10:44
Show Gist options
  • Save chewwt/cbdb71b92b9a45e3ac9314e64c58cbf4 to your computer and use it in GitHub Desktop.
Save chewwt/cbdb71b92b9a45e3ac9314e64c58cbf4 to your computer and use it in GitHub Desktop.
Install i3-gaps on ubuntu 20.04
#!/bin/bash
sudo apt install -y 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 libxcb-xrm0 libxcb-xrm-dev automake libxcb-shape0-dev libxcb-xrm-dev
cd /tmp
# clone the repository
git clone https://www.github.com/Airblader/i3 i3-gaps
cd i3-gaps
# compile & install
autoreconf --force --install
rm -rf build/
mkdir -p build && cd build/
# Disabling sanitizers is important for release versions!
# The prefix and sysconfdir are, obviously, dependent on the distribution.
../configure --prefix=/usr/local --sysconfdir=/etc --disable-sanitizers
make -j2
sudo make install

Setting up i3 / variants

For i3-gaps-rounded

Use git clone https://github.com/resloved/i3.git

If no i3 option in lock screen

Paste the following into /usr/share/xsessions/i3.desktop

[Desktop Entry]
Name=i3
Comment=improved dynamic tiling window manager
Exec=i3
TryExec=i3
Type=Application
X-LightDM-DesktopName=i3
DesktopNames=i3
Keywords=tiling;wm;windowmanager;window;manager;
@Marculonis21
Copy link

Hey, I'm getting issues with the autoreconf command returning errors - autoreconf: 'configure.ac' or 'configure.in' is required.

Would you know any fix for that one? :)

@chewwt
Copy link
Author

chewwt commented Mar 15, 2021

Hi, I actually used rounded i3-gaps (https://github.com/resloved/i3) instead of i3-gaps. You can try that too.

@jpasosa
Copy link

jpasosa commented Mar 15, 2021

Hello. Same error @Marculonis21 said.
autoreconf: 'configure.ac' or 'configure.in' is required
and i tried this: apt install build-essential libboost-all-dev cmake flex... but this not the solution

@jpasosa
Copy link

jpasosa commented Mar 15, 2021

fix the problem and install i3-gaps:
$ sudo add-apt-repository -y ppa:regolith-linux/stable
$ sudo apt install i3-gaps

@gitduk
Copy link

gitduk commented May 20, 2021

@jpasosa

Works for me, thanks

@Gabrielgtt
Copy link

@jpasosa

Works for me too. Thanks!

@jpasosa
Copy link

jpasosa commented Jun 8, 2021

Good, I'm glad @Gabrielgtt @gitduk

@Ravieroy
Copy link

@jpasosa

Was facing the error autoreconf: 'configure.ac' or 'configure.in' is required

Tried a lot of things but eventually, your suggestion worked. Thank You.

@NoahRR
Copy link

NoahRR commented Sep 11, 2021

@jpasosa worked for me - thanks!

@fackux
Copy link

fackux commented Sep 24, 2021

Hi! this active by default after intall?

@hussam-z
Copy link

hussam-z commented Jan 4, 2022

@jpasosa is this still working?
I'm getting this error message:

Ign:5 http://ppa.launchpad.net/regolith-linux/stable/ubuntu jammy InRelease
Err:6 http://ppa.launchpad.net/regolith-linux/stable/ubuntu jammy Release
  404  Not Found [IP: 91.189.95.85 80]
Reading package lists... Done
E: The repository 'http://ppa.launchpad.net/regolith-linux/stable/ubuntu jammy Release' does not have a Release file.

@jpasosa
Copy link

jpasosa commented Feb 15, 2022

@hussam-z yes for me.

Now, when
sudo apt update
Obj:29 http://ppa.launchpad.net/regolith-linux/stable/ubuntu focal InRelease

updated libraries OKA... but is 20.04 version NOT tha jammy ....

@jiangotto
Copy link

@jpasosa It works! Thanks a lot!

@catgoose
Copy link

catgoose commented Jun 5, 2022

I can't get this to work for Jammy

@turtle-94
Copy link

I can't get this to work for Jammy

same here

@catgoose
Copy link

I can't get this to work for Jammy

same here

If you follow the install instructions on i3gaps GitHub page, you can install it easily.

Let me know if you can’t figure it out.

@pablioRichardy
Copy link

pablioRichardy commented Aug 12, 2022

@jpasosa is this still working? I'm getting this error message:

Ign:5 http://ppa.launchpad.net/regolith-linux/stable/ubuntu jammy InRelease
Err:6 http://ppa.launchpad.net/regolith-linux/stable/ubuntu jammy Release
  404  Not Found [IP: 91.189.95.85 80]
Reading package lists... Done
E: The repository 'http://ppa.launchpad.net/regolith-linux/stable/ubuntu jammy Release' does not have a Release file.

If you replace the line on file: "/etc/apt/sources.list.d/regolith-linux-ubuntu-release-jammy.list". For me it worked, but i don't no if the best option for this.
Line:
deb https://ppa.launchpadcontent.net/regolith-linux/release/ubuntu/ jammy main
Replaced line:
deb https://ppa.launchpadcontent.net/regolith-linux/release/ubuntu/ impish main

@gritsdmi
Copy link

Replaced line:
deb https://ppa.launchpadcontent.net/regolith-linux/release/ubuntu/ impish main

Works for me

@syafiqparadisam
Copy link

@jpasosa is this still working? I'm getting this error message:

Ign:5 http://ppa.launchpad.net/regolith-linux/stable/ubuntu jammy InRelease
Err:6 http://ppa.launchpad.net/regolith-linux/stable/ubuntu jammy Release
  404  Not Found [IP: 91.189.95.85 80]
Reading package lists... Done
E: The repository 'http://ppa.launchpad.net/regolith-linux/stable/ubuntu jammy Release' does not have a Release file.

If you replace the line on file: "/etc/apt/sources.list.d/regolith-linux-ubuntu-release-jammy.list". For me it worked, but i don't no if the best option for this. Line: deb https://ppa.launchpadcontent.net/regolith-linux/release/ubuntu/ jammy main Replaced line: deb https://ppa.launchpadcontent.net/regolith-linux/release/ubuntu/ impish main

Worked for me, thanks im using ubuntu 22.04

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment