.xprofile: used to support all DM (LightDM, KDM, GDM, etc.)
parent
391ac7881e
commit
5dfb61deb2
21
.xinitrc
21
.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"
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue