Created
November 12, 2014 11:26
-
-
Save checko/dce3a30371a9cebfe8df to your computer and use it in GitHub Desktop.
Xsession copied from http://bazaar.launchpad.net/~ubuntu-branches/ubuntu/oneiric/lightdm/oneiric/revision/10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# LightDM wrapper to run around X sessions. | |
echo "Running X session wrapper" | |
# Load profile | |
for file in "/etc/profile" "$HOME/.profile" "/etc/xprofile" "$HOME/.xprofile"; do | |
if [ -f "$file" ]; then | |
echo "Loading profile from $file"; | |
. "$file" | |
fi | |
done | |
# Load resources | |
for file in "/etc/X11/Xresources" "$HOME/.Xresources"; do | |
if [ -f "$file" ]; then | |
echo "Loading resource: $file" | |
xrdb -nocpp -merge "$file" | |
fi | |
done | |
# Load keymaps | |
for file in "/etc/X11/Xkbmap" "$HOME/.Xkbmap"; do | |
if [ -f "$file" ]; then | |
echo "Loading keymap: $file" | |
setxkbmap `cat "$file"` | |
XKB_IN_USE=yes | |
fi | |
done | |
# Load xmodmap if not using XKB | |
if [ -z "$XKB_IN_USE" ]; then | |
for file in "/etc/X11/Xmodmap" "$HOME/.Xmodmap"; do | |
if [ -f "$file" ]; then | |
echo "Loading modmap: $file" | |
xmodmap "$file" | |
fi | |
done | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment