aboutsummaryrefslogtreecommitdiffstats
path: root/rofi/udt/ssh.rasi
blob: c40ac056fd169e6ff23ffb187ea548b8b84b69c8 (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
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
/*
 * udt ssh layout: the hosts as a searchable 4x3 grid of cards.
 * Copyright (C) 2026 Danilo M. <danix@danix.xyz>
 * Licensed under the GNU General Public License v2 only.
 *
 * Fed by blackpearl-sshmenu.sh, two lines a card: the alias in bold, then
 * "user · address" dimmed with fgalpha rather than a colour, so it still
 * reads on the accent when selected.
 */

@import "common.rasi"

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

mainbox {
    children: [ header, listview ];
    spacing:  0;
}

/* The wallpaper banner, as in launcher.rasi: the header and the search bar
 * share it. @WPAPER@ is rewritten by the installer, which is why this file
 * is generated rather than linked. */
header {
    expand:           false;
    orientation:      vertical;
    children:         [ headrow, inputbar ];
    spacing:          12px;
    padding:          2.5em 2em;
    background-image: url("@WPAPER@", width);
    background-color: @mantle;
}

/* The prompt is lifted out of the inputbar to sit above it, and kept to its
 * own width by the spacer so its plate does not span the banner. */
headrow {
    expand:      false;
    orientation: horizontal;
    children:    [ prompt, dummy ];
}

dummy {
    expand: true;
}

/* Both sit on plates so they stay legible over any wallpaper. */
prompt {
    font:             "Noto Sans Bold 15";
    text-color:       @text;
    background-color: @base;
    border-radius:    6px;
    padding:          6px 12px;
}

inputbar {
    background-color: @base;
    border:           1px;
    border-color:     @accent;
}

entry {
    placeholder: "Search hosts, users, addresses";
}

listview {
    columns:      4;
    lines:        3;
    fixed-height: true;
    spacing:      12px;
    flow:         horizontal;
    padding:      20px;
}

/* Text only: the element spacing otherwise reserves a gap for the icon. */
element {
    children:         [ element-text ];
    padding:          20px 12px;
    border-radius:    12px;
    background-color: @surface0;
}

element-text {
    font:             "Noto Sans 13";
    horizontal-align: 0.5;
    vertical-align:   0.5;
}