Difference between pages "Qtile" and "User:Balticer"

(Difference between pages)
(Edited to add installation using portage.)
 
 
Line 1: Line 1:
= Introduction =
+
{{Person
This wiki is a work in progress.
+
|Full name=balticer (Kai)
 
+
|Email=balticer@balticer.de
Python3 will cause errors. Use '''Python2''' as default or '''at the very least''', pass PYTHON=python2.7 to py2cairo and xpyb before configuring them.
+
|Nick=balticer
 
+
|Geoloc=54.154362357149, 12.065066656348
"Qtile is a full-featured, hackable tiling window manager written in Python.
+
|Location name=Rostock
 
+
|Roles={{Role
Qtile is simple, small, and extensible. It's easy to write your own layouts, widgets, and built-in commands.
+
|Role type=User
 
+
|Role desc=free as in free beer
Qtile is written and configured entirely in Python, which means you can leverage the full power and flexibility of the language to make it fit your needs.
+
}}
 
+
|Maintains={{Ebuild
The Qtile community is active and growing, so there's always someone to lend a hand when you need help.
+
|Ebuild=app-misc/roccat-tools
 
+
|Overlay=Flora
Qtile is free and open-source software, distributed under the permissive MIT license"<ref>[http://qtile.org Qtile]</ref><ref>[http://docs.qtile.org/en/latest/manual/license.html License]</ref>
+
}}
 
+
|Blogs=
== The Qtile Community ==
+
}}
 
+
{{User page
=== IRC ===
+
|fileextention=jpg
[irc://irc.oftc.net:6667/qtile irc://irc.oftc.net:6667/qtile]
+
|welcome= == Aloha ==  
 
+
|nickname=balticer
=== Mailing List ===
+
|realname=Kai Korla
qtile-dev on Google Groups
+
|country=Germany
 
+
|birthdate=August 8th
=== Twitter ===
+
|website=
@qtile on Twitter
+
|biography=Studying computer science at the University of Rostock and finishing it soon with the university degree. Working as scientist in the research and development department of medium-sized enterprises.
 
+
|history_linux=Working with linux since 1997. Tryed many distros and ended up with Gentoo. Using Funtoo Linux now.
===Forum ===
+
|oss_information=Playing around with many stuff...
[kobraz.org.ua/qforum]
+
|history_funtoo=Using Funtoo Linux since 2010 on several boxes at home.
 
+
|real_life= Have one... :-)
After on people begin used this forum, we move it to qtile.org
+
|lang_skills=Native speaking German. Learned english for 5 years at the school.
 
+
|working_on=nothing special
== Troubleshooting ==
+
|worked_on=nothing special}}
[https://github.com/qtile/qtile/issues Issues]
+
 
+
== Documentation ==
+
[http://docs.qtile.org/en/latest/index.html# Qtile Documentation]
+
 
+
= Installation =
+
 
+
== Portage ==
+
<pre style="color:green"># emerge qtile</pre>
+
 
+
== Manual (Github) ==
+
This section is taken from the documents from Qtile.<ref>[http://docs.qtile.org/en/latest/manual/install/gentoo.html Installation on Gentoo]</ref>
+
 
+
=== Dependencies ===
+
USE flags and keyword changes may have to be made for the packages taken from portage.
+
 
+
==== libxcb ====
+
libxcb can be emerged from portage.
+
 
+
<pre style="color:green"># emerge libxcb</pre>
+
 
+
==== xpyb ====
+
xpyb can be emerge from portage. Make sure that you are emerging xpyb-1.3.1
+
 
+
<pre style="color:green"># emerge xpyb</pre>
+
 
+
==== cairo ====
+
cairo can be emerged from portage.
+
 
+
Have USE flags set to <pre style="color:purple">X glib opengl svg xcb</pre>
+
 
+
and then:
+
 
+
<pre style="color:green"># emerge cairo</pre>
+
 
+
==== pygtk ====
+
pygtk can be emerge from portage.
+
 
+
<pre style="color:green"># emerge pygtk</pre>
+
 
+
==== py2cairo ====
+
<pre style="color:green"># git clone git://git.cairographics.org/git/py2cairo
+
# cd py2cairo
+
# ./autogen.sh --enable-xcb
+
# ./configure --prefix=/path/to/virtualenv
+
# make
+
# sudo make install</pre>
+
 
+
As an alternative to virtualenv, you can
+
<pre style="color:green"># ./configure --prefix=/usr</pre>
+
But the virtualenv is the recommended option in installation.
+
 
+
==== qtile ====
+
<pre style="color:green"># git clone git://github.com/qtile/qtile
+
# cd qtile
+
# sudo python setup.py install --record files_uninstall.txt</pre>
+
 
+
= Setup =
+
'''Copy''' either a config from the examples directory in the cloned qtile '''(including a default config)''', a config you have found elsewhere, or create your own config.
+
<pre style="color:green"># cp /path/to/cloned-qtile/examples/config/cortesi-config.py ~/.config/qtile/config.py
+
# cp /path/to/cloned-qtile/examples/config/dgroups.py ~/.config/qtile/config.py
+
# cp /path/to/cloned-qtile/examples/config/roger-config.py ~/.config/qtile/config.py
+
# cp /path/to/cloned-qtile/examples/config/tailhook-config.py ~/.config/qtile/config.py</pre>
+
 
+
My config is [https://github.com/akiress/dotfiles/blob/master/qtile/config.py config.py]
+
 
+
The config I have based mine off of is [https://github.com/dmpayton/dotfiles/blob/master/qtile/config.py dmpayton's config.py]
+
 
+
= Testing Qtile Installation =
+
You can test your installation of Qtile while within another WM instance using Xephyr.
+
 
+
Examples:
+
<pre style="color:green"># Xephyr :1 -screen 800x600 -a -v -noreset
+
# DISPLAY=:1
+
# /path/to/qtile/qtile</pre>
+
or using built in code:<ref>[[ https: // groups.google.com/group/qtile-dev/browse_thread/thread/26191253a8190568 qtile-dev Google Group ]]</ref>
+
<pre style="color:green"># echo "exec qtile" > .start_qtile ; xinit .start_qtile -- :1</pre>
+
 
+
For further information, see the Documentation section.
+
 
+
== dmenu ==
+
Qtile uses dmenu as the application launcher.
+
<pre style="color:green"># emerge dmenu</pre>
+
You can run dmenu from a keybind in the config.py.
+
 
+
== xinitrc ==
+
An example of preparing Qtile to start with a startup-session script for autostarting apps.
+
My ~/.xinitrc
+
<pre style="color:purple">#!/bin/zsh
+
xrdb -merge ~/.Xresources
+
xcompmgr &
+
 
+
if [[ $1 == "i3" ]]; then
+
    exec ck-launch-session dbus-launch --sh-syntax --exit-with-session i3 -V -d all > ~/.i3/i3log-$(date +'%F-%k-%M-%S') 2>&1
+
elif [[ $1 == "razor" ]]; then
+
    exec ck-launch-session dbus-launch startrazor
+
elif [[ $1 == "awesome" ]]; then
+
    exec ck-launch-session dbus-launch awesome
+
elif [[ $1 == "qtile" ]]; then
+
    exec ck-launch-session dbus-launch ~/.qtile-session
+
else
+
    echo "Choose a window manager"
+
fi</pre>
+
My ~/.qtile-session
+
<pre style="color:purple">conky -c ~/.conky/conkyrc_grey &
+
sh ~/.fehbg &
+
dropbox &</pre>
+
 
+
== X and RandR ==
+
'''NOTE: RandR and Xinerama do not play together.  Use one or the other.'''
+
 
+
I use an AMD HD 6870 with 3 monitors (2 DVI and 1 with an AMD validated Mini DisplayPort™ to DVI dongle).
+
 
+
Install xrandr:
+
<pre style="color:green"># emerge x11-apps/xrandr</pre>
+
and if you want a GUI with xrandr:
+
<pre style="color:green"># emerge x11-misc/arandr</pre>
+
 
+
If you do not have X configured yet, follow the link on the [http://en.gentoo-wiki.com/wiki/X.Org Gentoo Wiki]
+
 
+
My xorg.conf.d folder for example: [https://github.com/akiress/dotfiles/blob/master/etc/X11/xorg.conf.d/30-screen.conf 30-screen.conf]
+
 
+
Since the names of the monitors are already known in xrandr, I just use those names in my 30-screen.conf configuration. It doesn't matter what you use in your X configuration however.
+
 
+
Once you have X configured however you like, start qtile with either:
+
<pre style="color:green"># startx</pre>
+
or, in a case similar to mine,
+
<pre style="color:green"># xinit qtile</pre>
+
 
+
== Starting with CDM ==
+
Another good tool for starting qtile is '''CDM''' (short for Console Display Manager). To make it work, just merge cdm
+
<pre style="color:green"># emerge -avt cdm</pre>
+
and add it to autostart with
+
<pre style="color:green"># cp /usr/share/cdm/zzz-cdm-profile.sh /etc/profile.d/zzz-cdm-profile.sh</pre>
+
Now add to /etc/X11/cdm/cdmrc the following lines:
+
<pre style="color:purple">binlist=(
+
    "/usr/bin/xinit ${HOME}/.start_qtile --:0"
+
    "/bin/bash --login"
+
    "/bin/zsh"
+
)
+
namelist=(qtile "Console bash" "Console zsh")
+
flaglist=(C C C)
+
consolekit=no</pre>
+
and check that ${HOME}/.start_qtile contains just the following
+
<pre style="color:purple">exec qtile</pre>
+
 
+
= Notes =
+
<references/>
+
 
+
= Resources =
+
[https://github.com/qtile/qtile Qtile on Github]
+
 
+
[https://github.com/qtile/qtile/tree/master/examples/config Sample Configurations]
+
 
+
[http://docs.qtile.org/en/latest/manual/hacking.html Hacking Qtile]
+
 
+
[[Category:Desktop]]
+

Latest revision as of 12:51, April 28, 2013


Contact

Location

Loading map...
Rostock (54° 9' 15.7045", 12° 3' 54.24")



Aloha

Biography

Studying computer science at the University of Rostock and finishing it soon with the university degree. Working as scientist in the research and development department of medium-sized enterprises.

History using Linux

Working with linux since 1997. Tryed many distros and ended up with Gentoo. Using Funtoo Linux now.

History on Funtoo

Using Funtoo Linux since 2010 on several boxes at home.

Collaboration on Open Source projects

Playing around with many stuff...

Language Skills

Native speaking German. Learned english for 5 years at the school.

Parts working on at the moment

nothing special

Parts worked on

nothing special


About real life

Have one... :-)