2013-05-24 17:27:56 +02:00
|
|
|
#!/bin/sh
|
|
|
|
################################################################################
|
|
|
|
## XPROFILE
|
|
|
|
## 2013-05-23
|
|
|
|
################################################################################
|
|
|
|
## This file is sourced by some DM and should not contain any desktop execution.
|
|
|
|
|
2013-06-04 08:51:17 +02:00
|
|
|
## Env vars and general config.
|
|
|
|
[ -f "$HOME/.profile" ] && . "$HOME/.profile"
|
|
|
|
|
2013-05-24 20:01:46 +02:00
|
|
|
## X config (for URxvt, etc.)
|
2013-05-24 17:27:56 +02:00
|
|
|
[ -f "${HOME}/.Xresources" ] && xrdb -merge "${HOME}/.Xresources"
|
|
|
|
|
|
|
|
## Numlock
|
|
|
|
numlockx on
|
|
|
|
|
2013-05-28 10:17:43 +02:00
|
|
|
## Keymap. Only useful on multi-user environment.
|
|
|
|
# setxkbmap frex
|
|
|
|
|
2013-05-24 17:27:56 +02:00
|
|
|
if [ "$OSTYPE" = "linux-gnu" ] ; then
|
|
|
|
## Set sound volume.
|
|
|
|
[ -n "$(amixer 2>/dev/null | grep PCM)" ] && amixer set PCM 80%
|
|
|
|
|
|
|
|
## External device auto-mounting.
|
2013-05-26 20:51:52 +02:00
|
|
|
[ -n "$(command -v udiskie)" ] && udiskie &
|
2013-05-24 17:27:56 +02:00
|
|
|
fi
|
2013-06-03 20:18:14 +02:00
|
|
|
|
|
|
|
[ -d "$HOME/temp" ] && export TEMP="$HOME/temp"
|