User Tools

Site Tools


linux:lxdm_login_theming_setup

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
linux:lxdm_login_theming_setup [2014/09/15 21:49]
walter [Setup]
linux:lxdm_login_theming_setup [2017/09/03 21:39]
wtoher Updated scripts while working on dvorak keyboard fix
Line 1: Line 1:
 +====== LXDM Login Theming Setup ======
 +
 ====== Introduction ====== ====== Introduction ======
  
 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.+====== Setup ======
  
-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.+<WRAP center round info 60%> 
 +Setup the [[linux:​acm_custom_repo|ACM custom repo]] on the workstation first 
 +</​WRAP>​
  
-====== Setup ======+Install themes with this command and follow the post install instructions 
 +<​code|bash>​ 
 +pacman -S acm-lug-lxdm-themes 
 +</​code>​ 
 + 
 +Unpack {{:​acm-themes.tar.gz|this archive with the ACM and LUG themes}} into /​usr/​share/​lxdm/​themes
  
-This is setup by three files:+This is setup by several ​files:
  
   * /​etc/​lxdm/​LoginReady   * /​etc/​lxdm/​LoginReady
-  * /​etc/​lxdm/​PreLogin+  * /​etc/​lxdm/​PreLogin ​(unused) 
 +  * /​etc/​lxdm/​PostLogin 
 +  * /​etc/​lxdm/​PostLogout 
 +  * /​etc/​lxdm/​PreReboot (unused) 
 +  * /​etc/​lxdm/​PreShutdown (unused) 
 +  * /​etc/​lxdm/​lxdm.conf
   * /​etc/​lxdm/​SetLogo   * /​etc/​lxdm/​SetLogo
  
-** LoginReady ** - This is exicuted ​as root when LXDM is ready to show the screen.+The directory also contains the Xsession file, which should not be edited manually 
 + 
 +** LoginReady ** - This is executed ​as root when LXDM is ready to show the screen.
  
 ** PreLogin ** - Executed by LXDM as root. ** PreLogin ** - Executed by LXDM as root.
Line 22: Line 38:
  
 ====== Scripts ====== ====== Scripts ======
-Up to date as of **September ​192014**.+Up to date as of **September ​32017**. 
 ==== /​etc/​lxdm/​LoginReady | (Executed as root) ==== ==== /​etc/​lxdm/​LoginReady | (Executed as root) ====
 <code bash> <code bash>
 #!/bin/sh #!/bin/sh
 /​etc/​lxdm/​SetLogo /​etc/​lxdm/​SetLogo
 +#/​usr/​bin/​xsetroot -solid black
 +/​usr/​bin/​mount 172.29.0.6:/​acm-home /home
 +/​usr/​bin/​mount 172.29.0.7:/​pkgs-64 /​var/​cache/​pacman/​pkg
 +/​usr/​bin/​localectl set-keymap us
 </​code>​ </​code>​
-==== /etc/lxdm/PreLogin ​| (Executed as root) ====+ 
 +==== /etc/lxdm/PostLogin ​| (Executed as logged-in user) ====
 <code bash> <code bash>
 #!/bin/sh #!/bin/sh
-# +xset dpms 0 0 0 
-# Note: this is a sample and will not be run as is. +</​code>​ 
-#!/bin/sh + 
-# +==== /​etc/​lxdm/​PostLogout | (Executed ​as logged-in user) ==== 
-Note: this is a sample and will not be run as is. +<code bash> 
-#loltask > /dev/null & +#!/bin/bash 
-#mount -/opt/Steam /home/$USER/Steam + 
-#​mount ​-/opt/Steamlocal ​$HOME/.local/share/Steam +#umount $HOME/.local/share/Steam 
-#if [ "​$?" ​-ne "​0"​ ]+xsetroot -solid black 
 + 
 +##Reset guest directory 
 +sudo -/usr/bin/guestd ​$USER 
 + 
 +test -/usr/bin/​pax11publish && /​usr/​bin/​pax11publish -r 
 +# Terminate current user session 
 +#killall --user ​$USER -TERM 
 +#/usr/bin/loginctl terminate-session $XDG_SESSION_ID 
 +xset dpms 300 330 360 
 +#if ! pgrep lxdm-greeter >> /dev/null
 #then #then
-# mkdir -p $HOME/.local/share/Stean +# /usr/bin/systemctl restart lxdm
-# mount -B /​opt/​Steamlocal $HOME/​.local/​share/​Steam+
 #fi #fi
-#chown -R $USER:users $HOME/​.local/​share/​Steam 
-#/bin/bash /​etc/​lxdm/​SetLogo 
 </​code>​ </​code>​
  
Line 56: Line 85:
 # Description:​ Determines and sets the login theming based on modulus 2 op on last segment of IPv4 address. # Description:​ Determines and sets the login theming based on modulus 2 op on last segment of IPv4 address.
 # Dependencies: ​ # Dependencies: ​
-#               ​- ​Sed (sed >= 4.2.2)+#               ​- ​Awk (Awk >= 4.1.0)
 #               - Bash (GNU Bash >= 4.2) (;-P) #               - Bash (GNU Bash >= 4.2) (;-P)
  
linux/lxdm_login_theming_setup.txt · Last modified: 2021/05/02 21:36 (external edit)