aboutsummaryrefslogtreecommitdiff
path: root/flavors/linux-hyprland/.config/hypr/lookandfeel.lua
blob: 17fd476d27b419e147f3a533262734b77e0c5799 (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
local fallback_theme = {
    gaps_in = 5,
    gaps_out = 5,
    border_size = 3,
    active_border = { colors = {"rgba(33ccffee)", "rgba(00ff99ee)"}, angle = 45 },
    inactive_border = "rgba(595959aa)",
    rounding = 10,
    active_opacity = 1.0,
    inactive_opacity = 1.0,
    shadow_color = "0xee1a1a1a",
}
local loaded, theme = pcall(require, "generated-theme")
if not loaded then
    theme = fallback_theme
end

hl.config({
    general = {
        gaps_in = theme.gaps_in,
        gaps_out = theme.gaps_out,
        border_size = theme.border_size,

        col = {
            active_border = theme.active_border,
            inactive_border = theme.inactive_border,
        },

        resize_on_border = false,
        allow_tearing = false,
        locale = "en_US",
    },

    decoration = {
        rounding = theme.rounding,
        rounding_power = 2,
        active_opacity = theme.active_opacity,
        inactive_opacity = theme.inactive_opacity,

        shadow = {
            enabled = true,
            range = 4,
            render_power = 3,
            color = theme.shadow_color,
        },

        blur = {
            enabled = true,
            size = 3,
            passes = 1,
            vibrancy = 0.1696,
        },
    },

    cursor = {
        no_warps = true,
    },

    animations = {
        enabled = true,
    },
})