aboutsummaryrefslogtreecommitdiffstats
path: root/rofi/udt/launcher.rasi
blob: 282889c288721e0be8c0c0d87495400fb12660da (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
/*
 * udt launcher layout: a searchable application list, anchored top-center.
 * The input area carries the current horizontal wallpaper as its background.
 * Copyright (C) 2026 Danilo M. <danix@danix.xyz>
 * Licensed under the GNU General Public License v2 only.
 */

@import "common.rasi"

window {
    width:    600px;
    anchor:   north;
    location: north;
    padding:  0;
}

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

/* The wallpaper banner. `width` scales the image to the element's width and
 * keeps its aspect ratio, so the banner height follows the padding below.
 *
 * The path is a placeholder: rofi does not expand `~` inside a url(), and a
 * real absolute path would bake a home directory into a committed file. The
 * installer rewrites this line with the concrete path to ~/.cache/wal/wpaper,
 * which is a symlink that wallp keeps pointed at the current horizontal
 * wallpaper. */
inputbar {
    background-image: url("@WPAPER@", width);
    background-color: @mantle;
    border-radius:    0;
    padding:          4em 2em;
}

/* The entry sits on a translucent plate so it stays legible over any
 * wallpaper, rather than depending on the image behind it being dark. */
entry {
    background-color: @base;
    border:           1px;
    border-color:     @accent;
    border-radius:    6px;
    padding:          10px 12px;
    text-color:       @text;
}

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