This repository has been archived by the owner on Jun 15, 2018. It is now read-only.
Permalink
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
tilde/.xprofile
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
executable file
59 lines (45 sloc)
1.09 KB
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 | |
| set -o errexit -o nounset | |
| exec 5>&1 6>&2 # Save stdout and stderr pointers | |
| exec > ~/.xprofile.log 2>&1 # Log stdout and stderr | |
| set -o noclobber | |
| # User settings | |
| user_resources=$HOME/.Xresources | |
| if [ -f "$user_resources" ] | |
| then | |
| xrdb -merge "$user_resources" | |
| fi | |
| unset user_resources | |
| # Keyboard settings | |
| xmodmap "${HOME}/.Xmodmap" | |
| # Machine specific settings | |
| local_xprofile=$HOME/.xprofile_local | |
| if [ -f "$local_xprofile" ] | |
| then | |
| . "$local_xprofile" | |
| fi | |
| unset local_xprofile | |
| monitor_color_profile="${HOME}/.color/icc/monitor.icc" | |
| if [ -f "$monitor_color_profile" ] | |
| then | |
| /usr/bin/dispwin "$monitor_color_profile" | |
| fi | |
| unset monitor_color_profile | |
| # GNOME Keyring Daemon | |
| eval $(/usr/bin/gnome-keyring-daemon --start --components=gpg,pkcs11,secrets,ssh) | |
| export GPG_AGENT_INFO SSH_AUTH_SOCK | |
| if which syndaemon | |
| then | |
| syndaemon -i 0.3 -m 50 -d -t -K | |
| fi | |
| exec 1>&5 5>&- 2>&6 6>&- # Restore stdout and stderr pointers | |
| /usr/bin/start-pulseaudio-x11 | |
| wicd-client --tray & | |
| xautolock -locker slock & | |
| for service in cbatticon numlockx | |
| do | |
| if which "$service" | |
| then | |
| "$service" & | |
| fi | |
| done |