summaryrefslogtreecommitdiff
path: root/src/config/defaults.ts
blob: cc52a5ecec56d08ec3113a60381f6b2baf73a129 (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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
import { Astal } from "astal/gtk3";

export default {
    style: {
        transparency: "normal", // One of "off", "normal", "high"
        borders: true,
        vibrant: false, // Extra saturation
    },
    config: {
        notifyOnError: true,
    },
    // Modules
    bar: {
        vertical: true,
        style: "gaps", // One of "gaps", "panel", "embedded"
        layout: {
            type: "centerbox", // One of "centerbox", "flowbox"
            centerbox: {
                start: ["osIcon", "activeWindow", "mediaPlaying", "brightnessSpacer"],
                center: ["workspaces"],
                end: [
                    "volumeSpacer",
                    "tray",
                    "statusIcons",
                    "pkgUpdates",
                    "notifCount",
                    "battery",
                    "dateTime",
                    "power",
                ],
            },
            flowbox: [
                "osIcon",
                "workspaces",
                "brightnessSpacer",
                "activeWindow",
                "volumeSpacer",
                "dateTime",
                "tray",
                "battery",
                "statusIcons",
                "notifCount",
                "power",
            ],
        },
        modules: {
            workspaces: {
                shown: 5,
                showLabels: false,
                labels: ["󰮯", "󰮯", "󰮯", "󰮯", "󰮯"],
                xalign: -1,
                showWindows: false,
            },
            dateTime: {
                format: "%d/%m/%y %R",
                detailedFormat: "%c",
            },
        },
    },
    launcher: {
        style: "lines", // One of "lines", "round"
        actionPrefix: ">", // Prefix for launcher actions
        apps: {
            maxResults: 30, // Actual max results, -1 for infinite
        },
        files: {
            maxResults: 40, // Actual max results, -1 for infinite
            fdOpts: ["-a", "-t", "f"], // Options to pass to `fd`
            shortenThreshold: 30, // Threshold to shorten paths in characters
        },
        math: {
            maxResults: 40, // Actual max results, -1 for infinite
        },
        todo: {
            notify: true,
        },
        wallpaper: {
            maxResults: 20, // Actual max results, -1 for infinite
            showAllEmpty: true, // Show all wallpapers when search is empty
            style: "medium", // One of "compact", "medium", "large"
        },
        disabledActions: ["logout", "shutdown", "reboot", "hibernate"], // Actions to hide, see launcher/actions.tsx for available actions
    },
    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
    },
    osds: {
        volume: {
            position: Astal.WindowAnchor.RIGHT, // Top = 2, Right = 4, Left = 8, Bottom = 16
            margin: 20,
            hideDelay: 1500,
            showValue: true,
        },
        brightness: {
            position: Astal.WindowAnchor.LEFT, // Top = 2, Right = 4, Left = 8, Bottom = 16
            margin: 20,
            hideDelay: 1500,
            showValue: true,
        },
        lock: {
            spacing: 5,
            caps: {
                hideDelay: 1000,
            },
            num: {
                hideDelay: 1000,
            },
        },
    },
    sidebar: {
        showOnStartup: false,
        modules: {
            headlines: {
                enabled: true,
            },
        },
    },
    navbar: {
        persistent: false, // Whether to show all the time or only on hover
        appearWidth: 10, // The width in pixels of the hover area for the navbar to show up
    },
    // Services
    math: {
        maxHistory: 100,
    },
    updates: {
        interval: 900000,
    },
    weather: {
        interval: 600000,
        apiKey: "", // An API key from https://weatherapi.com for accessing weather data
        location: "", // Location as a string or empty to autodetect
        imperial: false,
    },
    cpu: {
        interval: 2000,
    },
    gpu: {
        interval: 2000,
    },
    memory: {
        interval: 5000,
    },
    storage: {
        interval: 5000,
    },
    wallpapers: {
        paths: [
            {
                recursive: true, // Whether to search recursively
                path: "~/Pictures/Wallpapers", // Path to search
                threshold: 0.8, // The threshold to filter wallpapers by size (e.g. 0.8 means wallpaper must be at least 80% of the screen size), 0 to disable
            },
        ],
    },
    calendar: {
        webcals: [] as string[], // An array of urls to ICS files which you can curl
        upcomingDays: 7, // Number of days which count as upcoming
        notify: true,
    },
    thumbnailer: {
        maxAttempts: 5,
        timeBetweenAttempts: 300,
        defaults: {
            width: 100,
            height: 100,
            exact: true,
        },
    },
    news: {
        apiKey: "", // An API key from https://newsdata.io for accessing news
        countries: ["current"], // A list of country codes or "current" for the current location
        categories: ["business", "top", "technology", "world"], // A list of news categories to filter by
        languages: ["en"], // A list of languages codes to filter by
        domains: [] as string[], // A list of news domains to pull from, see https://newsdata.io/news-sources for available domains
        timezone: "", // A timezone to filter by, e.g. "America/New_York", see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
        pages: 3, // Number of pages to pull (each page is 10 articles)
    },
};