diff --git a/.xinitrc b/.xinitrc index c95fec9a..6417a51b 100644 --- a/.xinitrc +++ b/.xinitrc @@ -1,22 +1,11 @@ #!/bin/sh ################################################################################ ## XINITRC -## 2012-10-29 +## 2013-05-23 ################################################################################ -## Config (for URxvt) -[ -f "${HOME}/.Xresources" ] && xrdb -merge "${HOME}/.Xresources" - -## Useful tools -numlockx on - - if [ "$OSTYPE" = "linux-gnu" ] ; then - [ -n "$(amixer | grep PCM)" ] && amixer set PCM 80% - udiskie & -fi - -## Environment -[ -f ~/.shell.d/main_rc ] && . ~/.shell.d/main_rc +## Source environment config. +[ -f ~/.xprofile ] && . ~/.xprofile ##============================================================================== ## Launch session @@ -29,7 +18,3 @@ exec awesome # exec startlxde # exec gnome-session -##============================================================================== -## Wallpaper -##============================================================================== -# feh --bg-fill "$HOME/pictures/arch_linux_wallpaper_by_mokkujin-d3j1se0.png" diff --git a/.xprofile b/.xprofile new file mode 100644 index 00000000..79551ece --- /dev/null +++ b/.xprofile @@ -0,0 +1,24 @@ +#!/bin/sh +################################################################################ +## XPROFILE +## 2013-05-23 +################################################################################ + +## This file is sourced by some DM and should not contain any desktop execution. + +## Config (for URxvt) +[ -f "${HOME}/.Xresources" ] && xrdb -merge "${HOME}/.Xresources" + +## Numlock +numlockx on + +if [ "$OSTYPE" = "linux-gnu" ] ; then + ## Set sound volume. + [ -n "$(amixer 2>/dev/null | grep PCM)" ] && amixer set PCM 80% + + ## External device auto-mounting. + [ -n "$(comand -v udiskie)" ] && udiskie & +fi + +## Environment +[ -f ~/.shell.d/main_rc ] && . ~/.shell.d/main_rc