1
0
Fork 0
mirror of https://github.com/kastdeur/dotfiles.git synced 2024-12-22 09:13:33 +01:00
dotfiles/X11/xprofile

30 lines
718 B
Text
Raw Normal View History

#~/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