const.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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,
  26. * as "login command failed", in seconds
  27. */
  28. #define ERROR_DURATION 5
  29. // variables replaced in login_cmd
  30. #define SESSION_VAR "%session"
  31. #define THEME_VAR "%theme"
  32. /* variables replaced in pre-session_cmd and post-session_cmd */
  33. #define USER_VAR "%user"
  34. /* max height/width for images */
  35. #define MAX_DIMENSION 10000
  36. #endif