1
0
Fork 0
mirror of https://github.com/kastdeur/dotfiles.git synced 2024-11-18 01:13:31 +01:00
dotfiles/X11/xprofile

26 lines
633 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
numlockx on
# Caps Lock works as escape key: whoever uses CapsLock?
setxkbmap -option caps:escape
# 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