This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
linux:lxdm_login_theming_setup [2014/09/15 21:41] walter [/etc/lxdm/SetLogo | (Inherently run as root be previous script.)] |
linux:lxdm_login_theming_setup [2014/09/15 21:57] walter |
||
---|---|---|---|
Line 2: | Line 2: | ||
The ArchLinux Workstations are themed with either the ACM Logo or LUG logo. They are set to alternate between workstations. | The ArchLinux Workstations are themed with either the ACM Logo or LUG logo. They are set to alternate between workstations. | ||
- | |||
- | I(clee231)(Chase Lee) have written a script to determine and switch the logos based on hostname. | ||
- | |||
- | Currently, the script is setup to run once before logging in the user as root. This means that there needs to be at least one login for the script to run. | ||
====== Setup ====== | ====== Setup ====== | ||
- | This is setup by two files: | + | Unpack {{:acm-themes.tar.gz|this archive with the ACM and LUG themes}} into /usr/share/lxdm/themes |
+ | This is setup by three files: | ||
+ | |||
+ | * /etc/lxdm/LoginReady | ||
* /etc/lxdm/PreLogin | * /etc/lxdm/PreLogin | ||
* /etc/lxdm/SetLogo | * /etc/lxdm/SetLogo | ||
- | ** PreLogin ** - This calls the SetLogo script. Executed by LXDM as root. | + | ** LoginReady ** - This is exicuted as root when LXDM is ready to show the screen. |
+ | |||
+ | ** PreLogin ** - Executed by LXDM as root. | ||
- | ** SetLogo ** - Contains a set of all six workstation hostnames, and detects which theme to use. | + | ** SetLogo ** - Contains the sed regex for the link and IP, the 'even' and 'odd' themes settings, and detects which theme to use. |
====== Scripts ====== | ====== Scripts ====== | ||
Up to date as of **September 19, 2014**. | Up to date as of **September 19, 2014**. | ||
+ | ==== /etc/lxdm/LoginReady | (Executed as root) ==== | ||
+ | <code bash> | ||
+ | #!/bin/sh | ||
+ | /etc/lxdm/SetLogo | ||
+ | </code> | ||
==== /etc/lxdm/PreLogin | (Executed as root) ==== | ==== /etc/lxdm/PreLogin | (Executed as root) ==== | ||
<code bash> | <code bash> |