AwesomeWM: Difference between revisions

From Alpine Linux
(added xorg to Prerequisites)
 
(6 intermediate revisions by 4 users not shown)
Line 1: Line 1:
[[file: awesome-01.png |thumb |Screenshot]]
[[file: awesome-01.png |thumb |Screenshot]]
{{TOC right}}
{{TOC right}}
[https://awesomewm.org/ Awesome] is a highly configurable, next generation framework window manager for X. It is primarily targeted at power users, developers and any people dealing with every day computing tasks and who want to have fine-grained control on their graphical environment.


= Prerequisites =
== Prerequisites ==
* [[Installation|Install]] Alpine Linux
{{:Include:Desktop prerequisites}}
* [[Setting_up_a_new_user#Creating_a_new_user|Create a user account]] (optional but recommended)
* [[Alpine_setup_scripts#setup-xorg-base|Install Xorg]]
* Enable the [[Repositories#Enabling_the_community_repository|Community Repository]]


= Install packages =
== Installation ==
Install awesome, xterm, lua and terminus font.<BR>
 
Depending on your network speed, it might take a few minutes.
Install awesome, xterm and terminus font. {{Cmd|# apk add {{pkg|awesome|arch=}} {{pkg|xterm|arch=}} {{pkg|font-terminus|arch=}}}}
{{Cmd|# apk add awesome xterm lua font-terminus}}


== Optional packages ==
=== Video and Input packages ===
=== Video and Input packages ===
You <u>might</u> want to install a package suitable for your video chipset and input devices.<BR>
You <u>might</u> want to install a package suitable for your video chipset and input devices.<BR>
For example, if you have an Sis video chipset, install 'xf86-video-sis'. For Intel video chipset, install 'xf86-video-intel'.<BR>
For example:
{{Cmd|# apk add xf86-video-sis}}
{{Cmd|# apk add {{pkg|xf86-input-synaptics|arch=}}}}
and / or
{{Cmd|# apk add xf86-input-synaptics}}
 
Run 'apk search xf86-video*' to see available xf86-video packages.<BR>
Run 'apk search xf86-input*' to see available xf86-input packages.<BR>


===VirtualBox Users===
Run {{ic|apk search {{pkg|xf86-video*|arch=}}}} to see available xf86-video packages.<BR>
{{Cmd|# apk add xf86-video-vbox}}
Run {{ic|apk search {{pkg|xf86-input*|arch=}}}} to see available xf86-input packages.<BR>


===VMWare Users===
=== VMWare Users ===
{{Cmd|# apk add xf86-video-vmware}}
{{Cmd|# apk add {{pkg|xf86-video-vmware|arch=}}}}
and/or
and/or
{{Cmd|# apk add xf86-input-vmmouse}}
{{Cmd|# apk add {{pkg|xf86-input-vmmouse|arch=}}}}


=== acpid ===
=== acpid ===
Line 35: Line 28:
{{Cmd|# rc-update add acpid}}
{{Cmd|# rc-update add acpid}}


= Configure xorg-server =
== Start your desktop ==
On most systems, xorg should be able to autodetect all devices. However, you can still configure xorg-server manually by launching:
{{Cmd|# setup-xorg-base}}
 
= Start your desktop =
{{Cmd|$ echo 'awesome' >> /home/<newuser>/.xinitrc}}
{{Cmd|$ echo 'awesome' >> /home/<newuser>/.xinitrc}}
{{Cmd|$ mkdir /home/<newuser>/.config}}
{{Cmd|$ mkdir /home/<newuser>/.config}}
Line 48: Line 37:
{{Cmd|$ startx}}
{{Cmd|$ startx}}


= Troubleshooting =
== Troubleshooting ==


D-Bus problems:
D-Bus problems:
Line 57: Line 46:


Install dbus from apk (you must be logged in as root for the step shown below)
Install dbus from apk (you must be logged in as root for the step shown below)
{{Cmd|# apk add dbus}}
{{Cmd|# apk add {{pkg|dbus|arch=}}}}


Log in or su to the root account, then launch the following command (Note: sudo does not work for this step):
Log in or su to the root account, then launch the following command (Note: sudo does not work for this step):
Line 64: Line 53:
Now if startx is launched, it should load the desktop correctly
Now if startx is launched, it should load the desktop correctly


= See also =
== See also ==
* [[Installation#Post-Install|Post Install]]
* [[Xorg]]  
* [[Desktop environments and Window managers]]
* [https://awesomewm.org/doc/api/documentation/07-my-first-awesome.md.html  Official Documentation]
 


[[Category:Desktop]]
[[Category:Desktop]]
[[Category:Window Manager]]
[[Category:Window Managers]]
[[Category:Lua]]

Latest revision as of 10:46, 17 March 2025

Screenshot

Awesome is a highly configurable, next generation framework window manager for X. It is primarily targeted at power users, developers and any people dealing with every day computing tasks and who want to have fine-grained control on their graphical environment.

Prerequisites

Installation

Install awesome, xterm and terminus font.

# apk add awesome xterm font-terminus

Video and Input packages

You might want to install a package suitable for your video chipset and input devices.
For example:

# apk add xf86-input-synaptics

Run apk search xf86-video* to see available xf86-video packages.
Run apk search xf86-input* to see available xf86-input packages.

VMWare Users

# apk add xf86-video-vmware

and/or

# apk add xf86-input-vmmouse

acpid

If you installed your Alpine Linux as a VirtualBox or VMWare guest, you might find it handy to be able execute an ACPI shutdown.

# rc-update add acpid

Start your desktop

$ echo 'awesome' >> /home/<newuser>/.xinitrc

$ mkdir /home/<newuser>/.config

$ cp -r /etc/xdg/awesome /home/<newuser>/.config

$ vi /home/<newuser>/.config/awesome/rc.lua

Start awesome.

$ startx

Troubleshooting

D-Bus problems:

D-Bus library appears to be incorrectly set up; failed to read machine uuid: Failed to open "/var/lib/dbus/machine-id": No such file or directory

If startx fails and returns an error about D-Bus failed to read machine uuid, as shown above, proceed as follows:

Install dbus from apk (you must be logged in as root for the step shown below)

# apk add dbus

Log in or su to the root account, then launch the following command (Note: sudo does not work for this step):

# dbus-uuidgen > /var/lib/dbus/machine-id

Now if startx is launched, it should load the desktop correctly

See also