ambevar-dotfiles/.xprofile

34 lines
1.1 KiB
Plaintext
Raw Normal View History

#!/bin/sh
################################################################################
## XPROFILE
################################################################################
## This file is sourced by some DM and should not contain any desktop execution.
## 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
2013-12-22 12:44:53 +01:00
## keymaps. The map file can be generated from current layout with
## xmodmap -pke > ~/.xmodmap
2013-06-16 16:57:12 +02:00
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-11-05 20:25:26 +01:00
command -v udiskie >/dev/null && udiskie &
fi
## 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