2017-02-07 16:16:45 -06:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
if [[ -z "$XDG_CONFIG_HOME" ]]; then
|
|
|
|
export XDG_CONFIG_HOME="$HOME/.config"
|
|
|
|
fi
|
|
|
|
if [[ -z "$DOTFILES_PATH" ]]; then
|
|
|
|
export DOTFILES_PATH="$XDG_CONFIG_HOME/dotfiles"
|
|
|
|
fi
|
|
|
|
|
2019-03-13 07:36:53 -05:00
|
|
|
if command -v autorandr >/dev/null 2>&1; then
|
|
|
|
autorandr -c
|
|
|
|
fi
|
|
|
|
|
2017-02-08 11:54:30 -06:00
|
|
|
echo "xprofile ($DOTFILES_PATH)" >> "$HOME/.xstartup_log"
|
2017-02-07 16:16:45 -06:00
|
|
|
|
|
|
|
# keyrepeat settings
|
|
|
|
xset r rate 250 80 &
|
|
|
|
|
|
|
|
# no screen blanking
|
|
|
|
# xset -dpms &
|
|
|
|
# xset s noblank &
|
|
|
|
# xset s off &
|
|
|
|
|
2017-04-03 15:32:36 -05:00
|
|
|
if command -v xss-lock >/dev/null 2>&1; then
|
2017-04-14 07:43:57 -05:00
|
|
|
if command -v dm-tool >/dev/null 2>&1; then
|
|
|
|
# xss-lock -- dm-tool switch-to-greeter &
|
|
|
|
:
|
|
|
|
fi
|
2017-04-03 15:32:36 -05:00
|
|
|
fi
|
2017-04-03 14:38:53 -05:00
|
|
|
|
2017-05-05 01:28:48 -05:00
|
|
|
if command -v redshift >/dev/null 2>&1; then
|
2018-11-03 14:05:58 -05:00
|
|
|
redshift -r -l 39.0997:-94.5786 -t 6500K:3000K &
|
2017-05-05 01:28:48 -05:00
|
|
|
fi
|
|
|
|
|
2018-11-19 13:25:18 -06:00
|
|
|
if [ -f "$HOME/.xmodmap" ]; then
|
|
|
|
xmodmap "$HOME/.xmodmap"
|
|
|
|
fi
|
|
|
|
|
2019-03-13 22:12:37 -05:00
|
|
|
if [ -f "$DOTFILES_PATH/de/x/loadresources" ]; then
|
|
|
|
"$DOTFILES_PATH/de/x/loadresources"
|
2017-02-07 16:16:45 -06:00
|
|
|
fi
|
2018-11-19 13:25:18 -06:00
|
|
|
|
2018-12-10 13:55:19 -06:00
|
|
|
if command -v xcape >/dev/null 2>&1; then
|
|
|
|
xcape -e 'Control_L=Escape' &
|
|
|
|
fi
|
2018-11-19 13:25:18 -06:00
|
|
|
|
2018-12-10 13:55:19 -06:00
|
|
|
if command -v autocutsel >/dev/null 2>&1; then
|
|
|
|
autocutsel -fork &
|
|
|
|
autocutsel -selection PRIMARY -fork &
|
|
|
|
fi
|
2019-03-13 22:12:37 -05:00
|
|
|
|
|
|
|
if [ -f "$HOME/.env_xprofile" ]; then
|
|
|
|
source "$HOME/.env_xprofile"
|
|
|
|
fi
|