config/.config/x11/xprofile

32 lines
712 B
Bash
Executable File

#!/bin/sh
# start universal things here like keyboard map, cursor, and default screenlayout
# keyboard layout
setxkbmap -layout dvorak -option ctrl:nocaps &
# cursor
xsetroot -cursor_name left_ptr
# numlock
numlockx
# set default desktop window layout
"$HOME/.screenlayout/default.sh"
# handle some nvidia stuff for archmetabox
HOST=$(cat /etc/hostname)
if [ "$HOST" = "archmetabox" ] ; then
# this is specifically for the laptop so check hostname
xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto
fi
# I don't use the following but I like it so I'll leave it for now.
autostart=""
for program in $autostart; do
pidof -s "$program" || "$program" &
done >/dev/null 2>&1