-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathexitdwm.h
36 lines (30 loc) · 1.06 KB
/
exitdwm.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#ifndef EXITDWM_H
#define EXITDWM_H
#include "dwm.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#if defined S_LOCK || defined S_RESTART_DWM || defined S_OFFSCREEN || \
defined S_EXIT || defined S_REBOOT || defined S_SHUTDOWN || \
defined S_LOCK_ICON || defined S_RESTART_DWM_ICON || \
defined S_OFFSCREEN_ICON || defined S_EXIT_ICON || \
defined S_REBOOT_ICON || defined S_SHUTDOWN_ICON || defined S_FORMAT || \
defined S_FORMAT_CLEAR
#error("Conflicting macro names")
#endif
#define S_LOCK "Lock"
#define S_RESTART_DWM "Restart Dwm"
#define S_OFFSCREEN "Off-screen"
#define S_EXIT "Exit"
#define S_REBOOT "Reboot"
#define S_SHUTDOWN "Shutdown"
#define S_LOCK_ICON "\uf023"
#define S_RESTART_DWM_ICON "\uf01e"
#define S_OFFSCREEN_ICON "\uf108"
#define S_EXIT_ICON "\uf2f5"
#define S_REBOOT_ICON "\uf021"
#define S_SHUTDOWN_ICON "\uf011"
#define S_FORMAT(ACTION) S_##ACTION##_ICON " " S_##ACTION
#define S_FORMAT_CLEAR "sed 's/^..//'"
void exitdwm(void);
#endif // EXITDWM_H