https://wiki.archlinux.org/api.php?action=feedcontributions&user=Tema&feedformat=atomArchWiki - User contributions [en]2024-03-28T23:40:26ZUser contributionsMediaWiki 1.41.0https://wiki.archlinux.org/index.php?title=I3&diff=253672I32013-04-10T23:20:14Z<p>Tema: Adding a link to the page that tries to summarise extra-functionality for i3. It can be either missing patches or useful user scripts.</p>
<hr />
<div>{{DISPLAYTITLE:i3}}<br />
[[Category:Tiling WMs]]<br />
[[Category:Dynamic WMs]]<br />
[[ko:i3]]<br />
[http://i3wm.org/ i3] is a dynamic [[Wikipedia:Tiling window manager|tiling window manager]] inspired by [[wmii]] that is primarily targeted at developers and advanced users.<br />
<br />
Clients (windows) are organized in a tree data structure within containers. The tree branches via horizontal or vertical splits, and containers can also be set to tabbed or stacked layouts. Floating windows are available for corner cases that don't mix well with tiling, and remain on a separate layer above the tiled windows.<br />
<br />
== Installation ==<br />
Install the {{Pkg|i3}} [[Pacman#Installing package groups|package group]] from the [[official repositories]], which includes the {{Pkg|i3lock}}, {{Pkg|i3status}} and {{Pkg|i3-wm}} packages. Install {{ic|i3-wm}} for the window manger, {{ic|i3status}} to write a status line to i3bar through [[Wikipedia:Standard streams#Standard output (stdout)|stdout]], or {{ic|i3lock}} for an improved screenlocker.<br />
<br />
Additional packages are available in the [[Arch User Repository]]. Install {{AUR|i3-git}} for the development version. Install {{AUR|i3-gnome}} to add a [[GNOME]]-session.<br />
<br />
== Configuration ==<br />
<br />
Edit your {{ic|~/.xinitrc}} and add:<br />
exec i3<br />
If you want i3 to log its output (useful for debugging), add this line to {{ic|~/.xinitrc}}:<br />
exec i3 -V >> ~/.i3/i3log 2>&1<br />
If you use the Nvidia binary driver '''<302.17''' you need to add the --force-xinerama flag to {{ic|~/.xinitrc}}. A detailed explanation can be found at [http://i3wm.org/docs/multi-monitor.html i3wm.org].<br />
exec i3 --force-xinerama<br />
<br />
=== Status bar ===<br />
The internal status bar, i3-''ws''bar, was deprecated and replaced by i3bar in i3 v4.0.<br />
<br />
==== New method: i3bar ====<br />
Unlike i3-wsbar, which requires dzen2, i3bar does not have any dependecies other than {{Pkg|i3-wm}}. It can be used to view information generated by [[conky]] or i3status. For example (as of version 4.1):<br />
{{hc|~/.i3/config|<nowiki><br />
bar {<br />
output LVDS1<br />
status_command i3status<br />
position top<br />
mode hide<br />
workspace_buttons yes<br />
tray_output none<br />
<br />
font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1<br />
<br />
colors {<br />
background #000000<br />
statusline #ffffff<br />
<br />
focused_workspace #ffffff #285577<br />
active_workspace #ffffff #333333<br />
inactive_workspace #888888 #222222<br />
urgent_workspace #ffffff #900000<br />
}<br />
}<br />
</nowiki>}}<br />
<br />
For further information see the [http://i3wm.org/docs/userguide.html#_configuring_i3bar Configuring i3bar] section of the official User Guide.<br />
<br />
==== Comparison of i3bar and dzen2 ====<br />
This comparison of i3bar and dzen2 only takes into account how well the two programs can handle the input from conky or i3status.<br />
{| border="1" cellpadding="5" align="center"<br />
! Program !! Color Codes !! Formatting !! Special Fonts !! Dock !! Trayer<br />
|-<br />
| i3bar || Yes || No, right aligned || No (UTF8 only)|| Yes || Yes<br />
|-<br />
| dzen2 || Yes || No, left aligned || Yes || Yes (the svn version) || No<br />
|-<br />
|}<br />
<br />
Though development of i3bar is very active and support for custom formatting and fonts has been announced, dzen2-svn has an edge over i3bar (as of August 7th).<br />
<br />
==== Alternative: py3status ====<br />
* [https://github.com/ultrabug/py3status py3status] – an extensible i3status wrapper written in python<br />
<br />
=== Quickly jumping to open window ===<br />
* [https://github.com/proxypoke/quickswitch-for-i3 quickswitch-for-i3] – A Python utility to quickly change to and locate windows in i3<br />
* [https://github.com/yiuin/i3-wm-scripts i3-wm-scripts] – search for and jump to windows with particular names matching regexp<br />
* [https://github.com/ziberna/i3-py/tree/master/examples#winmenupy winmenupy] launches dmenu with a list of clients, sorted after workspaces. Selecting a client jumps to that window.<br />
<br />
== Suspending with i3lock ==<br />
You need to add unit file below and enable it with {{ic|# systemctl enable suspend@<user>.service}}.<br />
<br />
{{hc|/etc/systemd/system/suspend@.service|2=<nowiki><br />
[Unit]<br />
Description=Starts i3lock at suspend time<br />
Before=sleep.target<br />
<br />
[Service]<br />
User=%I<br />
Type=forking<br />
Environment=DISPLAY=:0<br />
ExecStartPre= <br />
ExecStart=/usr/bin/i3lock<br />
<br />
[Install]<br />
WantedBy=sleep.target</nowiki>}}<br />
<br />
== Usage ==<br />
{{Box BLUE||See the [http://i3wm.org/docs official documentation] on this subject for more information: [http://i3wm.org/docs/userguide.html i3 User’s Guide]}}<br />
<br />
i3 currently uses [[dmenu]] as a application launcher, which is bound by default to {{Keypress|Mod1|background=#FF0}}+{{Keypress|d}}.<br />
<br />
== See also ==<br />
* [[Comparison of Tiling Window Managers]]<br />
* [http://i3wm.org Official website]<br />
* [http://code.stapelberg.de/git/i3 Source code]<br />
* [https://wiki.archlinux.org/index.php/Systemd#Suspend.2Fresume_service_files Suspend/resume service files]<br />
* [https://github.com/ashinkarov/i3-extras Collection of scripts and patches]<br />
'''Arch Linux Forums'''<br />
* [https://bbs.archlinux.org/viewtopic.php?id=99064 ''The i3 thread''] - A general discussion about i3<br />
* [https://bbs.archlinux.org/viewtopic.php?pid=1229978 ''i3 desktop screenshots and config sharing'']</div>Tema