1
0
Fork 0
mirror of https://github.com/kastdeur/dotfiles.git synced 2024-10-18 05:14:41 +02:00
dotfiles/X11/xprofile

29 lines
718 B
Text

#~/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
if [[ $(command -v numlockx) ]]; then
numlockx on
fi
# Caps Lock works as escape key: whoever uses CapsLock?
if [[ $(command -v setxkbmap) ]]; then
setxkbmap -option caps:escape
fi
# 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