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
|
/*
* udt screenshot layout: a compact two-button card, whole screen or area.
* Copyright (C) 2026 Danilo M. <danix@danix.xyz>
* Licensed under the GNU General Public License v2 only.
*
* The window stays fullscreen for the scrim; the buttons sit on a fixed-size
* card centred on it, so they read the same on every monitor.
*/
@import "common.rasi"
/* Translucent like the power menu, so it reads as a layer over the session. */
window {
fullscreen: true;
background-color: @scrim;
border: 0;
border-radius: 0;
padding: 0;
}
/* rofi has no centring property, so spacers on both axes hold the card in
* the middle: mainbox centres a column horizontally, column centres the card
* vertically. */
mainbox {
orientation: horizontal;
children: [ dummy, column, dummy ];
}
/* A horizontal box sizes children by their own width, and listview reports
* none, so the card's width is spelled out: two 150px buttons, 16px apart,
* plus 24px padding and 2px border each side. */
column {
expand: false;
width: 368px;
orientation: vertical;
children: [ dummy, card, dummy ];
}
card {
expand: false;
orientation: vertical;
children: [ listview ];
spacing: 20px;
padding: 24px;
background-color: @base;
border: 2px;
border-color: @accent;
border-radius: 18px;
}
dummy {
expand: true;
}
listview {
expand: false;
columns: 2;
lines: 1;
fixed-height: true;
fixed-columns: true;
flow: horizontal;
spacing: 16px;
}
/* Text only: common.rasi's element spacing still reserves a gap for the
* icon, which pushed the glyph off centre. */
element {
children: [ element-text ];
width: 150px;
padding: 28px 0px;
border-radius: 12px;
background-color: @surface0;
}
element-text {
font: "Inconsolata Nerd Font Mono 72";
horizontal-align: 0.5;
vertical-align: 0.5;
text-color: inherit;
}
|