s243a

/usr/bin/startx_jwm

Apr 9th, 2019
115
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/sh
  2. #
  3. # Start X session on SliTaz GNU/Linux.
  4. #
  5. export EXIT_IN_XINITRC=0
  6. if [ ! -f "$HOME/.xsession" ]; then
  7.   tazx
  8. fi
  9. echo "jwm" > /etc/windowmanager
  10. export CURRENTWM=jwm
  11. Xorg &
  12. #rox &
  13. ~/.xinitrc_puppy
  14.  
  15. [ -f /tmp/wmexitmode.txt ] || exit
  16.  
  17. # Shutdown menu calls wmreboot, wmpoweroff, wmexit or restartwm, which create this file...
  18. WMEXITMODE="`cat /tmp/wmexitmode.txt`"
  19. if [ "$WMEXITMODE" = "exit" ];then #see /usr/bin/wmexit.
  20.     rm -f /tmp/wmexitmode.txt
  21.     exit
  22. fi
  23. [ "$WMEXITMODE" = "poweroff" ] && exec /sbin/poweroff #see /usr/bin/wmpoweroff
  24. [ "$WMEXITMODE" = "reboot" ] && exec /sbin/reboot #see /usr/bin/wmreboot
RAW Paste Data