I3wm: Difference between revisions
(added new category) |
m (Move xorg setup higher. Use pkg template and remove mentions to a few obsolete packages.) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{DISPLAYTITLE:i3wm}} | |||
== Initial setup == | == Initial setup == | ||
Line 8: | Line 9: | ||
We need the Community Repository available for access to the i3 packages. | We need the Community Repository available for access to the i3 packages. | ||
Instructions are available on the [[Repositories#Enabling_the_community_repository|Repositories]] page. | Instructions are available on the [[Repositories#Enabling_the_community_repository|Repositories]] page. | ||
== Install X11 == | |||
Install X11 and set it up. | |||
{{Cmd|# setup-xorg-base}} | |||
== Install drivers == | == Install drivers == | ||
Line 13: | Line 20: | ||
Ensure you have the required drivers. | Ensure you have the required drivers. | ||
{{Cmd|# apk search xf86-input*}} | {{Cmd|# apk search {{pkg|xf86-input*}}}} | ||
{{Cmd|# apk search xf86-video*}} | {{Cmd|# apk search {{pkg|xf86-video*}}}} | ||
=== Example driver installation === | === Example driver installation === | ||
{{Cmd|# apk add | {{Cmd|# apk add {{pkg|xf86-video-fbdev|arch=}} {{pkg|xf86-video-vesa|arch=}}}} | ||
== Install fonts == | == Install fonts == | ||
Line 25: | Line 32: | ||
Install [[Fonts|fonts]]. If you start i3 without fonts it will be unusable. | Install [[Fonts|fonts]]. If you start i3 without fonts it will be unusable. | ||
{{Cmd|# apk add font-terminus}} | {{Cmd|# apk add {{pkg|font-terminus|arch=}}}} | ||
== Install dbus == | == Install dbus == | ||
Line 31: | Line 38: | ||
Install dbus and set it up. | Install dbus and set it up. | ||
{{Cmd|# apk add dbus}} | {{Cmd|# apk add {{pkg|dbus|arch=}}}} | ||
{{Cmd|# dbus-uuidgen > /var/lib/dbus/machine-id}} | {{Cmd|# dbus-uuidgen > /var/lib/dbus/machine-id}} | ||
{{Cmd|# rc-update add dbus}} | {{Cmd|# rc-update add dbus}} | ||
== Install i3 == | == Install i3 == | ||
Line 47: | Line 48: | ||
Install i3, the i3 status bar and a terminal. | Install i3, the i3 status bar and a terminal. | ||
{{Cmd|# apk add i3wm i3status xterm}} | {{Cmd|# apk add {{pkg|i3wm|arch=}} {{pkg|i3status|arch=}} {{pkg|xterm|arch=}}}} | ||
== Set up a non-root account == | == Set up a non-root account == | ||
Line 76: | Line 77: | ||
{{Todo|add section on Xinit}} | {{Todo|add section on Xinit}} | ||
[[category: Window | |||
[[category: Desktop]] | |||
[[category: Window Managers]] |
Latest revision as of 09:37, 13 January 2024
Initial setup
I will assume you are working on a fresh, installation of Alpine standard. Otherwise see these instructions.
Enable Community Repository
We need the Community Repository available for access to the i3 packages. Instructions are available on the Repositories page.
Install X11
Install X11 and set it up.
# setup-xorg-base
Install drivers
Ensure you have the required drivers.
# apk search xf86-input*
# apk search xf86-video*
Example driver installation
# apk add xf86-video-fbdev xf86-video-vesa
Install fonts
Install fonts. If you start i3 without fonts it will be unusable.
# apk add font-terminus
Install dbus
Install dbus and set it up.
# apk add dbus
# dbus-uuidgen > /var/lib/dbus/machine-id
# rc-update add dbus
Install i3
Install i3, the i3 status bar and a terminal.
Set up a non-root account
Set up a non-root account:
# adduser new-user
# addgroup new-user input
# addgroup new-user video
Test
Now you can start i3 manually:
# startx /usr/bin/i3
Starting i3 on login
To have i3 start automatically on login, you should set up xinit.
There are different ways to do this. The ArchWiki has information on this.