2020-04-16 00:30:47 +02:00
|
|
|
#~/bin/sh
|
|
|
|
|
|
|
|
# This file is the equivalent of .profile when using X.
|
|
|
|
# It is hopefully sourced by the DE.
|
|
|
|
# It is definitely sourced from .xinitrc
|
|
|
|
|
|
|
|
# Merge the Main Xresources
|
|
|
|
[ -f ~/.Xresources ] && xrdb -merge $HOME/.Xresources
|
|
|
|
|
|
|
|
# Turn on numlock
|
2022-03-21 21:59:47 +01:00
|
|
|
if [[ $(command -v numlockx) ]]; then
|
|
|
|
numlockx on
|
|
|
|
fi
|
2020-04-16 00:30:47 +02:00
|
|
|
|
|
|
|
# Caps Lock works as escape key: whoever uses CapsLock?
|
2022-03-21 21:59:47 +01:00
|
|
|
if [[ $(command -v setxkbmap) ]]; then
|
|
|
|
setxkbmap -option caps:escape
|
|
|
|
fi
|
2020-04-16 00:30:47 +02:00
|
|
|
|
|
|
|
# Start redshift if it exists
|
|
|
|
if [[ $(command -v redshift) ]]; then
|
|
|
|
redshift &
|
|
|
|
fi
|
|
|
|
# See if we can set the background using feh
|
|
|
|
[ -x ~/.fehbg ] && ~/.fehbg
|
|
|
|
|
|
|
|
# Source the local xprofiles
|
|
|
|
[ -r ~/.xprofile.local ] && . ~/.xprofile.local
|
|
|
|
[ -r ~/.local/.xprofile ] && . ~/.local/.xprofile
|