const.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /* SLiM - Simple Login Manager
  2. Copyright (C) 1997, 1998 Per Liden
  3. Copyright (C) 2004-05 Simone Rota <sip@varlock.com>
  4. Copyright (C) 2004-05 Johannes Winkelmann <jw@tks6.net>
  5. This program is free software; you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation; either version 2 of the License, or
  8. (at your option) any later version.
  9. */
  10. #ifndef _CONST_H_
  11. #define _CONST_H_
  12. #define APPNAME "slim"
  13. #define DISPLAY ":0.0"
  14. #define CONSOLE_STR "console"
  15. #define HALT_STR "halt"
  16. #define REBOOT_STR "reboot"
  17. #define EXIT_STR "exit"
  18. #define SUSPEND_STR "suspend"
  19. #define HIDE 0
  20. #define SHOW 1
  21. #define WAIT 0
  22. #define LOGIN 1
  23. #define FAIL 2
  24. #define CONSOLE 3
  25. #define REBOOT 4
  26. #define HALT 5
  27. #define EXIT 6
  28. #define SUSPEND 7
  29. #define GET_NAME 0
  30. #define GET_PASSWD 1
  31. #define OK_EXIT 0
  32. #define ERR_EXIT 1
  33. // duration for showing error messages, as "login command failed", in seconds
  34. #define ERROR_DURATION 5
  35. // variables replaced in login_cmd
  36. #define SESSION_VAR "%session"
  37. #define THEME_VAR "%theme"
  38. #endif