2013-05-24 17:27:56 +02:00
|
|
|
#!/bin/sh
|
|
|
|
## This file is sourced by some DM and should not contain any desktop execution.
|
|
|
|
|
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
|
|
|
|
|
2014-01-11 18:02:57 +01:00
|
|
|
## Keymap
|
2014-03-16 21:49:34 +01:00
|
|
|
xkbcomp -I"$HOME/.xkb" "$HOME/.xkb/usim.xkb" $DISPLAY
|
2013-05-28 10:17:43 +02:00
|
|
|
|
2014-11-25 09:41:12 +01:00
|
|
|
## Disable Touchpad
|
|
|
|
synclient TouchpadOff=1
|
|
|
|
|
2013-05-24 17:27:56 +02:00
|
|
|
if [ "$OSTYPE" = "linux-gnu" ] ; then
|
2014-11-12 18:00:08 +01:00
|
|
|
## Set sound volume.
|
2014-11-25 09:41:12 +01:00
|
|
|
[ -n "$(amixer 2>/dev/null | grep PCM)" ] && amixer set PCM 100%
|
2013-05-24 17:27:56 +02:00
|
|
|
|
2014-11-12 18:00:08 +01:00
|
|
|
## External device auto-mounting.
|
|
|
|
command -v udiskie >/dev/null 2>&1 && udiskie &
|
2013-05-24 17:27:56 +02:00
|
|
|
fi
|
2013-06-03 20:18:14 +02:00
|
|
|
|
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"
|
2013-09-07 19:18:14 +02:00
|
|
|
|
|
|
|
## Hook. Should be sourced last
|
|
|
|
[ -f ~/.xprofile_hook ] && . ~/.xprofile_hook
|