ambevar-dotfiles/.xprofile

37 lines
1.1 KiB
Plaintext
Raw Normal View History

#!/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
## X config (for URxvt, etc.)
[ -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-08-26 14:49:41 +02:00
xmodmap ~/.xmodmap_usex
2013-06-16 16:57:12 +02:00
fi
2013-05-28 10:17:43 +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 &
fi
[ -d "$HOME/temp" ] && export TEMP="$HOME/temp"
## This env variable is used by some programs (like ranger and awesome) to get
## terminal executable name.
export TERMCMD="urxvt"