This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!

xview xinitrc

By: ponce on Apr 10th, 2014  |  syntax: None  |  size: 0.58 KB  |  views: 52  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. #!/bin/sh
  2.  
  3. userresources=$HOME/.Xresources
  4. usermodmap=$HOME/.Xmodmap
  5. sysresources=/etc/X11/xinit/.Xresources
  6. sysmodmap=/etc/X11/xinit/.Xmodmap
  7.  
  8. # Merge in defaults and keymaps
  9. [ -f $sysresources ] && /usr/bin/xrdb -merge $sysresources
  10. [ -f $sysmodmap ] && /usr/bin/xmodmap $sysmodmap
  11. [ -f $userresources ] && /usr/bin/xrdb -merge $userresources
  12. [ -f $usermodmap ] && /usr/bin/xmodmap $usermodmap
  13.  
  14. # Start olvwm
  15. if [ -z "$DESKTOP_SESSION" -a -x /usr/bin/ck-launch-session ]; then
  16.     exec ck-launch-session dbus-launch --exit-with-session /usr/bin/olvwm
  17. else
  18.     exec olvwm
  19. fi
clone this paste RAW Paste Data