.xinitrc 839 B

1234567891011121314151617181920212223242526272829303132333435
  1. # Nvidia Optimus Config
  2. xrandr --setprovideroutputsource modesetting NVIDIA-0
  3. xrandr --auto
  4. #if [ -e /sbin/prime-offload ]; then
  5. # echo running NVIDIA Prime setup /sbin/prime-offload
  6. # /sbin/prime-offload
  7. #fi
  8. # dbus
  9. # dbus-launch --exit-with-x11
  10. # Load Xresources
  11. [[ -f ~/.Xresources ]] && xrdb ~/.Xresources
  12. # Use QT5CT Settings for QT Themes
  13. export QT_QPA_PLATFORMTHEME=qt5ct
  14. # Others
  15. #bash -c 'xset m 70/10 1 r rate 500 30 b on'
  16. # SLiM Select Sessions login command
  17. #dbus-launch --exit-with-session awesome
  18. session=${1:-openbox}
  19. case $session in
  20. openbox ) dbus-launch --exit-with-session openbox-session;;
  21. pekwm ) dbus-launch --exit-with-session pekwm;;
  22. awesome|awm ) dbus-launch --exit-with-session awesome;;
  23. i3wm ) dbus-launch --exit-with-session i3;;
  24. * ) exec $1;;
  25. esac