mirror of
https://github.com/kastdeur/dotfiles.git
synced 2025-05-14 20:09:26 +02:00
[X11]: rewrote xinitrc, moved to xprofile instead of xsession
This commit is contained in:
parent
4a1ee2deb0
commit
08ae066a7a
4 changed files with 47 additions and 59 deletions
25
X11/xprofile
Normal file
25
X11/xprofile
Normal file
|
@ -0,0 +1,25 @@
|
|||
#~/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
|
Loading…
Add table
Add a link
Reference in a new issue