This repository has been archived on 2024-03-28. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles/de/xprofile
2017-07-25 19:14:34 -05:00

37 lines
732 B
Bash

#!/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
echo "xprofile ($DOTFILES_PATH)" >> "$HOME/.xstartup_log"
if [ -f "$DOTFILES_PATH/de/xloadresources" ]; then
source "$DOTFILES_PATH/de/xloadresources"
fi
# keyrepeat settings
xset r rate 250 80 &
# no screen blanking
# xset -dpms &
# xset s noblank &
# xset s off &
if command -v xss-lock >/dev/null 2>&1; then
if command -v dm-tool >/dev/null 2>&1; then
# xss-lock -- dm-tool switch-to-greeter &
:
fi
fi
if command -v redshift >/dev/null 2>&1; then
redshift &
fi
if [ -f "$HOME/.env_xprofile" ]; then
source "$HOME/.env_xprofile"
fi