Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[HowTo] How do I install Qtile on Bookworm

Share your HowTo, Documentation, Tips and Tricks. Not for support questions!.
Post Reply
Message
Author
User avatar
None1975
df -h | participant
df -h | participant
Posts: 1421
Joined: 2015-11-29 18:23
Location: Russia, Kaliningrad
Has thanked: 47 times
Been thanked: 68 times

[HowTo] How do I install Qtile on Bookworm

#1 Post by None1975 »

This is a guide for those who want to install and try the Qtile window manager.

Since Bookworm and later don't accept installing Python stuff using pip anymore, all the guides don't work anymore. So I decided to write my own guide.

So, lets get started.

Qtile has never been included in the official Debian distribution so debian's usual package installation method (sudo apt install qtile) will not work. Instead, qtile's recommended installation method has, up until now, been pip install ....

However, Debian, Ubuntu and Fedora have all recently made stable releases which incorporate PEP-668 - this is a change to the python ecosystem designed to avoid system environment breakage caused by using potentially conflicting package managers (for example sudo apt install vs. pip install). One consequence of this change is that we can no longer use pip install ... to install system packages as we did previously.

PEP-668 is basically a safety mechanism that stops pip from installing into your python "system environment". There are several different ways to override (i.e. ignore) this safety mechanism.

While this approach is chosen by many users, I want to avoid it if possible. I personally think that PEP-668 is a move in the right direction, and that letting pip modify your system environment is a retrograde step (When your system breaks, you will get to keep both pieces).

So, how i installed Qtile?

Install package, called pipx.

Code: Select all

apt install --no-install-recommends pipx
Then, install necessary packages:

Code: Select all

apt install xserver-xorg-core xserver-xorg-input-libinput xinit libpangocairo-1.0-0 python3-xcffib python3-cairocffi
Install your preferred terminal emmulator. I proffered urxvt:

Code: Select all

apt install rxvt-unicode 
Make necessary directory:

Code: Select all

mkdir -p ~/.local/bin
Reboot, login to your system and issue command (as ordinary user, not root):

Code: Select all

pipx install qtile
Create the "pipx version" of .xinitrc

Code: Select all

touch .xinitrc
Open this file in default console text editor (nano) and put this to that file:

Code: Select all

exec qtile start
Now, when I run startx, I get the default qtile desktop.

P.S.

You can also install other modules for widgets like psutil, dbus-next with command

Code: Select all

pipx inject qtile dbus-next psutil
pipx command inject us for installing packages into an existing Virtual Environment.

Good luck.
OS: Debian 12.4 Bookworm / DE: Enlightenment
Debian Wiki | DontBreakDebian, My config files on github

tynman
Posts: 132
Joined: 2016-05-03 19:48
Location: British Columbia, Canada
Been thanked: 2 times

Re: [HowTo] How do I install Qtile on Bookworm

#2 Post by tynman »

Thank you None1975. (Will have to give that a try soon.)

User avatar
None1975
df -h | participant
df -h | participant
Posts: 1421
Joined: 2015-11-29 18:23
Location: Russia, Kaliningrad
Has thanked: 47 times
Been thanked: 68 times

Re: [HowTo] How do I install Qtile on Bookworm

#3 Post by None1975 »

Here screenshot.

Image

Image
OS: Debian 12.4 Bookworm / DE: Enlightenment
Debian Wiki | DontBreakDebian, My config files on github

Post Reply