Skip to content

Instantly share code, notes, and snippets.

@Philonous
Created August 29, 2016 14:18
Show Gist options
  • Save Philonous/ea197d3a703e6e286706e103439c032f to your computer and use it in GitHub Desktop.
Save Philonous/ea197d3a703e6e286706e103439c032f to your computer and use it in GitHub Desktop.
xinitrc
#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)
if [ -d /etc/X11/xinit/xinitrc.d ]; then
for f in /etc/X11/xinit/xinitrc.d/*; do
[ -x "$f" ] && . "$f"
done
unset f
fi
#xrandr --output DVI-D-0 --mode 1920x1080 --output HDMI-0 --mode 3840x2160 --right-of DVI-D-0
xrandr --output DVI-D-0 --mode 1920x1080 --dpi 90 --output HDMI-0 --off
nvidia-settings --load-config-only
eval $(/usr/bin/gnome-keyring-daemon --start --components=pkcs11,secrets,ssh)
export SSH_AUTH_SOCK
exec xmonad
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment