-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathexitscript.html
144 lines (125 loc) · 2.64 KB
/
exitscript.html
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
<!DOCTYPE html>
<html lang=en>
<head>
<title>jgmenu</title>
<meta charset="utf-8" />
<meta name="description" content="jgmenu"/>
<meta name="viewport" content="width=device-width">
<style>
body {
overflow-y: scroll;
font-family: sans-serif;
background-color: #fff;
color: black;
max-width: 600px;
padding: 20px;
line-height: 1.5;
word-wrap: break-word;
margin: auto;
}
pre {
padding: 20px;
white-space: pre-wrap;
border: 1px dotted gray;
display: block;
margin: 20px auto;
background-color: #eee;
color: #111;
}
code {
font-family: monospace;
background-color: #eee;
color: #111;
}
img {
margin: 20px auto;
max-width: 100%;
}
table {
border-collapse: collapse;
}
table,th,td {
border: 1px solid black;
}
th,td {
padding: 15px;
text-align: left;
}
h1 a, h2 a, h3 a, h4 a, h5 a {
text-decoration: none;
}
h1, h2, h3, h4, h5 {
font-family: sans-serif;
font-weight: bold;
}
h1 {
font-size: 130%;
}
h2 {
font-size: 110%;
}
h3 {
font-size: 95%;
}
h4 {
font-size: 90%;
font-style: italic;
}
h5 {
font-size: 90%;
font-style: italic;
}
dt code {
font-weight: bold;
}
dd p {
margin-top: 0;
}
</style>
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-162822348-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-162822348-1');
</script>
</head>
<body>
<main>
<a href='index.html'>Home</a><pre><code>#!/bin/sh
#
# This script launches jgmenu in short-lived mode.
# It can be run with a parallel with a long-running invocation of jgmenu
#
config_file=$(mktemp)
trap "rm -f ${config_file}" EXIT
cat <<'EOF' >${config_file}
menu_radius = 1
menu_halign = center
menu_valign = center
item_margin_x = 0
item_margin_y = 0
item_height = 34
font = Sans 10
icon_size = 24
color_menu_bg = #C8CFCB 100
color_menu_border = #C8CFCB 8
color_norm_bg = #C8CFCB 00
color_norm_fg = #13071B 100
color_sel_bg = #74998B 100
color_sel_fg = #101010 100
color_sel_border = #74998B 8
EOF
(
printf "%b
" "logout,openbox --exit,/usr/share/images/bunsen/exit/light/logout-sm.png"
printf "%b
" "poweroff,systemctl -i poweroff,/usr/share/images/bunsen/exit/light/poweroff-sm.png"
printf "%b
" "reboot,systemctl -i reboot,/usr/share/images/bunsen/exit/light/reboot-sm.png"
printf "%b
" "sleep,systemctl -i suspend,/usr/share/images/bunsen/exit/light/sleep-sm.png"
) | jgmenu --simple --config-file=${config_file}</code></pre>
</main>
</body>
</html>