config/.config/x11/xprofile
2022-09-11 10:50:01 +09:30

40 lines
801 B
Bash
Executable File

#!/bin/sh
# keyboard layout
setxkbmap us &
# wallpaper
nitrogen --restore &
# compositor
picom --experimental-backend &
redshift-gtk -l 34.92866:138.59863 &
# cursor
xsetroot -cursor_name left_ptr
# modmap because xinit won't do it
xmodmap -pke "$HOME"/.config/x11/.Xmodmap
# start thunar daemon so it doesn't take years to load
thunar --daemon &
# 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-G0
xrandr --auto
fi
if [ "$HOST" = "archdesktop" ] ; then
"$HOME"/.screenlayout/normal_3_screen.sh
fi
autostart=""
for program in $autostart; do
pidof -s "$program" || "$program" &
done >/dev/null 2>&1