.xprofile: used to support all DM (LightDM, KDM, GDM, etc.)

master
Pierre Neidhardt 2013-05-24 17:27:56 +02:00
parent 391ac7881e
commit 5dfb61deb2
2 changed files with 27 additions and 18 deletions

View File

@ -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"

24
.xprofile Normal file
View File

@ -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