Doors/configs/x11/xinitrc
2023-12-28 04:30:12 -05:00

22 lines
410 B
Bash
Executable file

#!/bin/sh
# startx/xinit run this script
# Run xprofile
if [ -f "${XDG_CONFIG_HOME:-$HOME/.config}/x11/xprofile" ]; then
. "${XDG_CONFIG_HOME:-$HOME/.config}/x11/xprofile"
else
. "$HOME/.xprofile"
fi
# Set up optimus on some laptops if optimus-manager exists
if [ -x $(command -v optimus-manager) ]; then
sudo prime-switch
prime-offload
fi
# Set system colors
wal -R
# Start awesome
ssh-agent awesome