summaryrefslogtreecommitdiff
path: root/config.ts
blob: cb9a56ba83607eec92b38d45c994f1ba09ec6a0a (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
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
import { Astal } from "astal/gtk3";

// Modules
export const bar = {
    vertical: true,
    modules: {
        osIcon: {
            enabled: true,
        },
        activeWindow: {
            enabled: true,
        },
        mediaPlaying: {
            enabled: true,
        },
        workspaces: {
            enabled: true,
            shown: 5,
        },
        tray: {
            enabled: true,
        },
        statusIcons: {
            enabled: true,
        },
        pkgUpdates: {
            enabled: true,
        },
        notifCount: {
            enabled: true,
        },
        battery: {
            enabled: true,
        },
        dateTime: {
            enabled: true,
            format: "%d/%m/%y %R",
            detailedFormat: "%c",
        },
        power: {
            enabled: true,
        },
    },
};

export const launcher = {
    maxResults: 15, // Max shown results at one time (i.e. max height of the launcher)
    apps: {
        maxResults: 30, // Actual max results, -1 for infinite
        pins: [
            ["firefox", "waterfox", "google-chrome", "chromium", "brave-browser", "vivaldi-stable", "vivaldi-snapshot"],
            ["foot", "alacritty", "kitty", "wezterm"],
            ["thunar", "nemo", "nautilus"],
            ["codium", "code", "clion", "intellij-idea-ultimate-edition"],
            ["spotify-adblock", "spotify", "audacious", "elisa"],
        ],
    },
    files: {
        maxResults: 40, // Actual max results, -1 for infinite
        fdOpts: ["-a", "-t", "f"], // Options to pass to `fd`
    },
    math: {
        maxResults: 40, // Actual max results, -1 for infinite
    },
    windows: {
        maxResults: -1, // Actual max results, -1 for infinite
        weights: {
            // Weights for fuzzy sort
            title: 1,
            class: 1,
            initialTitle: 0.5,
            initialClass: 0.5,
        },
    },
    todo: {
        notify: true,
    },
};

export const notifpopups = {
    maxPopups: -1,
    expire: false,
    agoTime: true, // Whether to show time in ago format, e.g. 10 mins ago, or raw time, e.g. 10:42
};

export const osds = {
    volume: {
        position: Astal.WindowAnchor.RIGHT,
        margin: 20,
        hideDelay: 1500,
        showValue: true,
    },
    brightness: {
        position: Astal.WindowAnchor.LEFT,
        margin: 20,
        hideDelay: 1500,
        showValue: true,
    },
    lock: {
        spacing: 5,
        caps: {
            hideDelay: 1000,
        },
        num: {
            hideDelay: 1000,
        },
    },
};

// Services
export const math = {
    maxHistory: 100,
};

export const updates = {
    interval: 900000,
};

export const weather = {
    interval: 600000,
    key: "assets/weather-api-key.txt", // Path to file containing api key relative to the base directory. To get a key, visit https://weatherapi.com/
    location: "", // Location as a string or empty to autodetect
    imperial: false,
};

export const cpu = {
    interval: 2000,
};

export const gpu = {
    interval: 2000,
};

export const memory = {
    interval: 5000,
};

export const storage = {
    interval: 5000,
};