xinitrc.fvwm95 735 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. #!/bin/sh
  2. # Slackware FVWM95 xinitrc script
  3. userresources=$HOME/.Xresources
  4. usermodmap=$HOME/.Xmodmap
  5. sysresources=/etc/X11/xinit/.Xresources
  6. sysmodmap=/etc/X11/xinit/.Xmodmap
  7. # Uncomment this if you would like fvwm95 to launch in a dbus session.
  8. #dbus_cmd="dbus-launch --exit-with-session"
  9. # merge in defaults and keymaps
  10. if [ -f $sysresources ]; then
  11. xrdb -merge $sysresources
  12. fi
  13. if [ -f $sysmodmap ]; then
  14. xmodmap $sysmodmap
  15. fi
  16. if [ -f $userresources ]; then
  17. xrdb -merge $userresources
  18. fi
  19. if [ -f $usermodmap ]; then
  20. xmodmap $usermodmap
  21. fi
  22. # start fvwm95
  23. if [ -z "$DESKTOP_SESSION" -a -x /usr/bin/ck-launch-session ]; then
  24. ck-launch-session $dbus_cmd /usr/bin/fvwm95
  25. else
  26. $dbus_cmd /usr/bin/fvwm95
  27. fi