~kris/dots

srice

srice/.config/rofi/config.rasi -rw-r--r-- 3.0 KiB
e98f3b03 — Kris Yotam chore: sync local state after restore (push updates, no pull) a month ago
                                                                                
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
145
146
147
148
149
configuration {
    modi: "drun,run,filebrowser";
    show-icons: true;
    display-drun: "  Apps";
    display-run: "  Run";
    display-filebrowser: "  Files";
    drun-display-format: "{name}";

    /* INTELLIGENCE UPGRADE */
    matching: "fuzzy";        /* Enables true fuzzy search */
    sort: true;               /* Sorts by relevance, not just alphabet */
    sorting-method: "fzf";    /* if supported, otherwise standard fuzzy */

    /* THE FIX: REMOVED 'drun-categories' SO WEB APPS SHOW UP */

    /* Performance */
    lazy-filter: true;
    filter-lines: 8;

    /* Behavior */
    scroll-method: 1;
    click-to-exit: true;
    hover-select: true;
    me-select-entry: "";
    me-accept-entry: "MousePrimary";

    /* Keybindings for Mode Switching */
    kb-mode-next: "Shift+Right,Control+Tab";
    kb-mode-previous: "Shift+Left,Control+ISO_Left_Tab";
}


@import "~/.config/rofi/colors.rasi"

* {
    font: "JetBrainsMono Nerd Font 13";
    background-color: transparent;
    text-color: @on-surface;
    margin: 0;
    padding: 0;
    spacing: 0;
}

window {
    background-color: @on-primary;
    border: 1px solid;
    border-color: @outline;
    border-radius: 0px;
    padding: 10px;
    width: 350px;
    transparency: "real";
    location: center;
    anchor: center;
}

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

inputbar {
    background-color: transparent;
    border: 1px solid;
    border-color: @outline;
    border-radius: 0px;
    padding: 12px 16px;
    spacing: 10px;
    children: [ entry ];
}

entry {
    placeholder: "Search...";
    placeholder-color: @outline-variant;
    text-color: @on-surface;
    cursor: text;
}

listview {
    columns: 1;
    lines: 6;
    fixed-height: true;
    fixed-columns: true;
    cycle: true;
    scrollbar: false;
    spacing: 8px;
    margin: 0;
    padding: 0;
    border: none;
}

element {
    padding: 10px 12px;
    spacing: 12px;
    border-radius: 0px;
    cursor: pointer;
    background-color: transparent;
    text-color: @on-surface;
    border: 1px solid;
    border-color: @outline-variant;
}

element normal.normal {
    background-color: transparent;
    text-color: @on-surface;
}

element alternate.normal {
    background-color: transparent;
    text-color: @on-surface;
}

element selected.normal {
    background-color: transparent;
    text-color: @on-primary-container;
    border-color: @primary;
    border: 2px solid;
}

element-icon {
    size: 28px;
    cursor: inherit;
    background-color: transparent;
}

element-text {
    cursor: inherit;
    highlight: @primary;
    vertical-align: 0.5;
    background-color: inherit;
    text-color: inherit;
}

scrollbar {
    handle-width: 4px;
    handle-color: @primary;
    background-color: @surface-container-high;
    border-radius: 3px;
    padding: 0;
    enabled: false;
}

error-message {
    padding: 12px;
    background-color: @error-container;
    text-color: @on-error-container;
    border: 1px solid;
    border-color: @error;
    border-radius: 8px;
}