Difference between revisions of "SLiM Configuration"
Views
Actions
Namespaces
Variants
Tools
no edit summary
imported>Verityproductions |
imported>Verityproductions |
||
Line 143: | Line 143: | ||
Where two or more desktop environments have be installed - and consequently enabled by editing the above files - then they can be cycled and selected by pressing the '''F1''' key on the SLiM login screen. | Where two or more desktop environments have be installed - and consequently enabled by editing the above files - then they can be cycled and selected by pressing the '''F1''' key on the SLiM login screen. | ||
= Enabling Auto Login = | |||
It is possible to bypass the login screen completely and go straight into your chosen desktop environment upon booting up Manjaro. '''Of course, it will be necessary to have already configured SLiM to manually launch your installed desktop environment in order to use this feature'''. | |||
== Open the Slim Configuration File == | |||
You will need to first open your terminal in order to edit the '''SLiM configuration file'''. The syntax of the command to do this is: | |||
sudo [text editor] /etc/slim.conf | |||
For example, if you wish to edit the file within the terminal using nano (a standard terminal-based text editor) then enter: | |||
sudo nano /etc/slim.conf | |||
Otherwise - if you have installed the full version of Manjaro (i.e. not the NET-Edition) - you may find it easier to use the pre-installed ''gedit'' text editor instead. This will open the configuration file up as a document, making it easier to read and edit. To use gedit instead, the command is: | |||
sudo gedit /etc/slim.conf | |||
== Step 1: Set the Default User == | |||
{{warning|There '''<u>must not</u>''' be any spaces before the '''default_user''' command, otherwise it will not work.}} | |||
The first step is to set your personal account to be automatically logged in. This is undertaken in the following section, located near the bottom of the SLiM configuration file: | |||
# default user, leave blank or remove this line | |||
# for avoid pre-loading the username. | |||
# <font color="green">'''default_user simone'''</font color> | |||
1. Remove the hash ('#') from the beginning of the '''default_user''' command to activate it, ensuring that there are no spaces remaining at the beginning of the line. | |||
2. Replace the existing name (i.e. simone) after the default_user command with the name of your personal user account | |||
As an example, SLiM has been configured below to enable a personal user account named 'carl' to be logged in automatically: | |||
# default user, leave blank or remove this line | |||
# for avoid pre-loading the username. | |||
<font color="green">'''default_user carl'''</font color> | |||
Once complete, the second and step is to enable the autologin feature itself. | |||
== Step 2: Enable Auto Login == | |||
{{warning|There '''<u>must not</u>''' be any spaces before the '''auto_login''' command, otherwise it will not work.}} | |||
Enabling the automatic login is undertaken in the following section, also located near the bottom of the SLiM configuration file: | |||
# Automatically login the default user (without entering | |||
# the password. Set to "yes" to enable this feature | |||
# <font color="green">'''auto_login no'''</font color> | |||
1. Remove the hash ('#') from the beginning of the '''auto_login''' command to activate it, ensuring that there are no spaces remaining at the beginning of the line. | |||
2. Replace the 'no' after the auto_login command with '''yes''' | |||
As an example, SLiM has been configured below to enable the automatic login feature: | |||
# Automatically login the default user (without entering | |||
# the password. Set to "yes" to enable this feature | |||
<font color="green">'''auto_login yes'''</font color> | |||
Once your amendments have been completed, you can save your changes and close the configuration file by: | |||
* '''nano''': Press CTRL and 'x' to exit, 'y' to save, and <enter> to finish, or | |||
* '''gedit''': Select the 'save' option and then close the window. | |||
Reboot your system for the changes to take effect. | |||
= Changing Themes = | |||
[[File:slimmindlock.png|thumb|left|375px]] | |||
A particularly strong feature of SLiM that has attracted many users is the abundance of varied and wide-ranging themes available for it. Moreover, these themes are very easy to set. | |||
<br clear="all" /> | |||
== Install New Themes == | |||
{{tip|There may be even more themes available from the '''[[Arch User Repository]]'''.}} | |||
To install all available themes for SLiM from the official Manjaro repositories, enter the following command in the terminal: | |||
sudo pacman -S slim-themes archlinux-themes-slim | |||
== Preview Installed Themes == | |||
{{note|It is apparently not possible to preview themes where the auto login feature has been enabled.}} | |||
Thankfully, it is not necessary to repeatedly edit the SLiM configuration file and re-boot your system in order to see what the installed themes look like. More conveniently, they can instead be previewed in the terminal. To do so, once the themes have of course been installed: | |||
1. Change to the directory that contains the themes by entering the following command: | |||
cd /usr/share/slim/themes/ | |||
2. List the installed themes available by entering the following command: | |||
ls | |||
3. Preview any and all installed themes listed. The syntax of the command to do so is: | |||
slim -p [name of theme] | |||
For example, to preview a listed theme called ''mindlock'', the following command would be entered | |||
slim -p mindlock | |||
To exit from a theme currently being previewed, simply type '''exit''' into the ''user name'' field and then press <enter> | |||
== Set Installed Themes == | |||
Setting an installed theme is undertaken in the following section, also located near the bottom of the SLiM configuration file: | |||
# Automatically login the default user (without entering | |||
# the password. Set to "yes" to enable this feature | |||
# <font color="green">'''auto_login no'''</font color> | |||
=== Open the Slim Configuration File === | |||
You will need to first open your terminal in order to edit the '''SLiM configuration file'''. The syntax of the command to do this is: | |||
sudo [text editor] /etc/slim.conf | |||
For example, if you wish to edit the file within the terminal using nano (a standard terminal-based text editor) then enter: | |||
sudo nano /etc/slim.conf | |||
Otherwise - if you have installed the full version of Manjaro (i.e. not the NET-Edition) - you may find it easier to use the pre-installed ''gedit'' text editor instead. This will open the configuration file up as a document, making it easier to read and edit. To use gedit instead, the command is: | |||
sudo gedit /etc/slim.conf | |||
=== Set the Desired Theme === | |||
{{warning|Make sure that you list the name of the desired theme correctly.}} | |||
Enabling the automatic login is undertaken in the following section, located near the bottom of the SLiM configuration file: | |||
# current theme, use comma separated list to specify a set to | |||
# randomly choose from | |||
<font color="green">'''current_theme default'''</font color> | |||
To change the theme, simply replace the name of the current theme listed after the '''current_theme''' command (e.g. default) with the name of the desired theme to set. As an example, SliM has been configured to use the ''mindlock'' theme: | |||
# current theme, use comma separated list to specify a set to | |||
# randomly choose from | |||
<font color="green">'''current_theme mindlock'''</font color> | |||
Once your amendments have been completed, you can save your changes and close the configuration file by: | |||
* '''nano''': Press CTRL and 'x' to exit, 'y' to save, and <enter> to finish, or | |||
* '''gedit''': Select the 'save' option and then close the window. | |||
=SLiM Login Commands= | |||
{{tip|This section may prove especially useful if SLiM has been misconfigured in some way!}} | |||
SLiM also provides a number of basic functions in addition to logging into a desktop environment. To use these features, simply enter the following commands into the user name field: | |||
* '''exit''': Return to the command line | |||
* '''halt''': Shutdown the system | |||
* '''reboot''': Reboot the system | |||
* '''console''': Launch the terminal | |||
[[Category:Customisation and Configuration]] | [[Category:Customisation and Configuration]] | ||
[[Category:Contents Page]] | [[Category:Contents Page]] |