Note

The Funtoo Linux project has transitioned to "Hobby Mode" and this wiki is now read-only.

Difference between revisions of "Package:Slim"

From Funtoo
Jump to navigation Jump to search
(Added functionality, readability, more info.)
(add login command swap to get slim working.)
 
(2 intermediate revisions by 2 users not shown)
Line 16: Line 16:
You may leave this step out, as SLiM usually installs only itself and no other dependent packages.  
You may leave this step out, as SLiM usually installs only itself and no other dependent packages.  


===Configration===
===Configuration===
{{file|name=/etc/conf.d/xdm|lang=|desc=|body=
DISPLAYMANAGER="slim"
}}
 
====Session Selection====
At the login prompt press F1 to toggle through available sessions.
 
====Editing Files====
====Editing Files====
You must have root access to edit these configuration files.  Most of the configuration file
You must have root access to edit these configuration files.  Most of the configuration file
Line 23: Line 30:
some useful edits to make after emerging SLiM.  
some useful edits to make after emerging SLiM.  


==== set login command ====
{{file|name=/etc/slim.conf|lang=|desc=|body=
login_cmd          exec /bin/sh - ~/.xinitrc %session
# login_cmd          exec /bin/bash -login ~/.xinitrc %session
# login_cmd          exec /bin/bash -login /usr/share/slim/Xsession %session
}}
==== Auto Name Entry ====
==== Auto Name Entry ====
This will start SLiM with your username already in the field.  This is turned off by default.  
This will start SLiM with your username already in the field.  This is turned off by default.  
Line 28: Line 41:
you like.  
you like.  
{{file|name=/etc/slim.conf|lang=|desc=|body=
{{file|name=/etc/slim.conf|lang=|desc=|body=
default_user        funtoo
default_user        root
}}
}}



Latest revision as of 14:23, May 23, 2021

Slim

   Tip

We welcome improvements to this page. To edit this page, Create a Funtoo account. Then log in and then click here to edit this page. See our editing guidelines to becoming a wiki-editing pro.

Slim is a simple, easy to configure, light weight display manager.


Initial Setup and Installation

Emerge SLiM

SLiM can be installed by simply

root # emerge -a x11-misc/slim

It's necessary to put x11-misc because there is another package by the same name, and portage wants to know which you actually wish to install. The -a option stands for --ask, and portage will wait for a Y or N entry from you. You may leave this step out, as SLiM usually installs only itself and no other dependent packages.

Configuration

   /etc/conf.d/xdm
DISPLAYMANAGER="slim"

Session Selection

At the login prompt press F1 to toggle through available sessions.

Editing Files

You must have root access to edit these configuration files. Most of the configuration file is pretty simple to understand, and is well commented. If you're unsure what a feature does, it should be briefly explained in the comments above that particular command. Here are some useful edits to make after emerging SLiM.

set login command

   /etc/slim.conf
login_cmd           exec /bin/sh - ~/.xinitrc %session
# login_cmd           exec /bin/bash -login ~/.xinitrc %session
# login_cmd           exec /bin/bash -login /usr/share/slim/Xsession %session

Auto Name Entry

This will start SLiM with your username already in the field. This is turned off by default. You'll need to uncomment the line (delete the #) and change the username to whatever you like.

   /etc/slim.conf
default_user        root

Auto Login

This will automatically log you in, without a password needed. You will still be able to switch users if you need to log out.

   /etc/slim.conf
auto_login          yes


Customizing the theme

The fastest way to get going with customization is to match the wallpaper with your selected desktop wallpaper! This provides a slick transition from SLiM into your window manager or desktop environment.

To share a wallpaper between SLiM and your desktop, rename the used theme background, then create a link from your desktop wallpaper file to the default SLiM theme:

root # mv /usr/share/slim/themes/default/background.jpg{,.bck} 
root # ln -s /path/to/mywallpaper.jpg /usr/share/slim/themes/default/background.jpg

That first command changes the current background file's extension (.jpg in this case) to .bak. SLiM won't know how to read a ,bak file. The second command make a symbolic link (the -s option) from the wallpaper you have in your directory to the place SLiM looks for a background! You could also try a .png if you have that type of file.