Guest User

/etc/X11/xinit/xinitrc

a guest
Sep 18th, 2020
124
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/sh
  2. xrandr --setprovideroutputsource modesetting NVIDIA-0
  3. xrandr --auto
  4. userresources=$HOME/.Xresources
  5. usermodmap=$HOME/.Xmodmap
  6. sysresources=/etc/X11/xinit/.Xresources
  7. sysmodmap=/etc/X11/xinit/.Xmodmap
  8.  
  9. # merge in defaults and keymaps
  10.  
  11. if [ -f $sysresources ]; then
  12.  
  13.     xrdb -merge $sysresources
  14.  
  15. fi
  16.  
  17. if [ -f $sysmodmap ]; then
  18.     xmodmap $sysmodmap
  19. fi
  20.  
  21. if [ -f "$userresources" ]; then
  22.  
  23.     xrdb -merge "$userresources"
  24.  
  25. fi
  26.  
  27. if [ -f "$usermodmap" ]; then
  28.     xmodmap "$usermodmap"
  29. fi
  30.  
  31. # start some nice programs
  32.  
  33. if [ -d /etc/X11/xinit/xinitrc.d ] ; then
  34.  for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
  35.   [ -x "$f" ] && . "$f"
  36.  done
  37.  unset f
  38. fi
  39.  
  40. twm &
  41. xclock -geometry 50x50-1+1 &
  42. xterm -geometry 80x50+494+51 &
  43. xterm -geometry 80x20+494-0 &
  44. exec xterm -geometry 80x66+0+0 -name login
  45.  
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×