const.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /* SLiM - Simple Login Manager
  2. Copyright (C) 1997, 1998 Per Liden
  3. Copyright (C) 2004-06 Simone Rota <sip@varlock.com>
  4. Copyright (C) 2004-06 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 GET_NAME 0
  22. #define GET_PASSWD 1
  23. #define OK_EXIT 0
  24. #define ERR_EXIT 1
  25. // duration for showing error messages, as "login command failed", in seconds
  26. #define ERROR_DURATION 5
  27. // variables replaced in login_cmd
  28. #define SESSION_VAR "%session"
  29. #define THEME_VAR "%theme"
  30. // variables replaced in pre-session_cmd and post-session_cmd
  31. #define USER_VAR "%user"
  32. #endif