You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
79 lines
1.5 KiB
Bash
79 lines
1.5 KiB
Bash
#!/bin/sh
|
|
# x.org xinit stuff
|
|
|
|
userresources=$HOME/.Xresources
|
|
usermodmap=$HOME/.Xmodmap
|
|
sysresources=/etc/X11/xinit/.Xresources
|
|
sysmodmap=/etc/X11/xinit/.Xmodmap
|
|
|
|
# merge in defaults and keymaps
|
|
|
|
if [ -f $sysresources ]; then
|
|
xrdb -merge $sysresources
|
|
fi
|
|
|
|
if [ -f $sysmodmap ]; then
|
|
xmodmap $sysmodmap
|
|
fi
|
|
|
|
if [ -f "$userresources" ]; then
|
|
xrdb -merge "$userresources"
|
|
fi
|
|
|
|
if [ -f "$usermodmap" ]; then
|
|
xmodmap "$usermodmap"
|
|
fi
|
|
|
|
# start some nice programs
|
|
|
|
if [ -d /etc/X11/xinit/xinitrc.d ] ; then
|
|
for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
|
|
[ -x "$f" ] && . "$f"
|
|
done
|
|
unset f
|
|
fi
|
|
|
|
# optimus-manager
|
|
# sudo prime-switch
|
|
# prime-offload
|
|
|
|
# nouveau prime
|
|
# xrandr --setprovideroffloadsink nouveau Intel
|
|
|
|
# eDP's dpi
|
|
xrandr --dpi 119 --output eDP-1 --mode 1920x1080 --rate 60
|
|
|
|
# lang exports
|
|
export LANG=en_US.UTF-8
|
|
export LC_CTYPE="en_US.UTF-8"
|
|
export LC_NUMERIC="en_US.UTF-8"
|
|
export LC_TIME="en_US.UTF-8"
|
|
export LC_COLLATE="en_US.UTF-8"
|
|
export LC_MONETARY="en_US.UTF-8"
|
|
export LC_MESSAGES="en_US.UTF-8"
|
|
export LC_PAPER="en_US.UTF-8"
|
|
export LC_NAME="en_US.UTF-8"
|
|
export LC_ADDRESS="en_US.UTF-8"
|
|
export LC_TELEPHONE="en_US.UTF-8"
|
|
export LC_MEASUREMENT="en_US.UTF-8"
|
|
export LC_IDENTIFICATION="en_US.UTF-8"
|
|
export LC_ALL=en_US.UTF-8
|
|
|
|
# merge Xr
|
|
xrdb -merge .Xresources
|
|
|
|
# gnome keyring
|
|
# eval $(/usr/bin/gnome-keyring-daemon --start --components=pkcs11,secrets,ssh)
|
|
# export SSH_AUTH_SOCK
|
|
# source /etc/X11/xinit/xinitrc.d/50-systemd-user.sh
|
|
|
|
# start tlp
|
|
# sudo tlp start
|
|
|
|
# start i3
|
|
exec i3
|
|
|
|
# Plasma
|
|
#export DESKTOP_SESSION=plasma
|
|
#exec startplasma-x11
|