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-07-25 21:12:09 +02:00
|
|
|
## Env vars and general config. The .profile file should be automatically
|
|
|
|
## sourced by the login manager.
|
|
|
|
# [ -f "$HOME/.profile" ] && . "$HOME/.profile"
|
2013-06-04 08:51:17 +02:00
|
|
|
|
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-06-16 16:57:12 +02:00
|
|
|
## Keymap. Only useful on multi-user environment where users have different
|
|
|
|
## keymaps.
|
|
|
|
if [ "$(setxkbmap -v 7 | awk '/^layout/ {print $2}')" != "usex" ]; then
|
2013-06-17 10:24:32 +02:00
|
|
|
setxkbmap usex basic
|
2013-06-16 16:57:12 +02:00
|
|
|
fi
|
|
|
|
# xmodmap ~/.xmodmap
|
2013-05-28 10:17:43 +02:00
|
|
|
|
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"
|
2013-06-14 11:13:25 +02:00
|
|
|
|
|
|
|
## This env variable is used by some programs (like ranger and awesome) to get
|
|
|
|
## terminal executable name.
|
|
|
|
export TERMCMD="urxvt"
|