.xprofile: used to support all DM (LightDM, KDM, GDM, etc.)
parent
391ac7881e
commit
5dfb61deb2
21
.xinitrc
21
.xinitrc
|
@ -1,22 +1,11 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
################################################################################
|
################################################################################
|
||||||
## XINITRC
|
## XINITRC
|
||||||
## 2012-10-29
|
## 2013-05-23
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
## Config (for URxvt)
|
## Source environment config.
|
||||||
[ -f "${HOME}/.Xresources" ] && xrdb -merge "${HOME}/.Xresources"
|
[ -f ~/.xprofile ] && . ~/.xprofile
|
||||||
|
|
||||||
## 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
|
|
||||||
|
|
||||||
##==============================================================================
|
##==============================================================================
|
||||||
## Launch session
|
## Launch session
|
||||||
|
@ -29,7 +18,3 @@ exec awesome
|
||||||
# exec startlxde
|
# exec startlxde
|
||||||
# exec gnome-session
|
# 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