aboutsummaryrefslogtreecommitdiffstats
path: root/rofi/udt/list.rasi
blob: f9d31731da990585d36fd367a3a49d5c108d0745 (plain)
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
/*
 * udt list layout: a tall, searchable, single-column list.
 * For ssh hosts, passwords, emoji, VMs, repos, windows, clipboard.
 * Copyright (C) 2026 Danilo M. <danix@danix.xyz>
 * Licensed under the GNU General Public License v2 only.
 */

@import "common.rasi"
@import "header.rasi"

window {
    width:    680px;
    anchor:   center;
    location: center;
    padding:  0;
}

/* `message` must be listed, or a `-mesg` passed by a script is silently
 * dropped. rofi hides the widget when there is no message, so listing it
 * costs nothing when unused. rofipass relies on this for its keybinding
 * cheatsheet. */
mainbox {
    children: [ header, message, listview ];
    spacing:  0;
}

/* The window has no padding, for the banner, so the body is inset here. */
message {
    margin: 12px 16px 0;
}

listview {
    columns: 1;
    lines:   12;
    fixed-height: false;
    padding: 12px 16px 16px;
}