auroraa090c36
hyprland: add hyprland-colors.lua pywal template for appearance
+42 −15
2 files changed
- M .config/hypr/source/appearance.lua +16 −15
- A .config/wal/templates/hyprland-colors.lua +26 −0
| @@ -1,5 +1,4 @@ | |||
| 1 | − | -- source/appearance.lua | |
| 2 | − | ||
| 1 | + | local wal = dofile(os.getenv("HOME") .. "/.cache/wal/hyprland-colors.lua") | |
| 3 | 2 | ||
| 4 | 3 | hl.config({ | |
| 5 | 4 | -------------------------------------------------- | |
| @@ -15,13 +14,15 @@ hl.config({ | |||
| 15 | 14 | ||
| 16 | 15 | layout = "master", | |
| 17 | 16 | ||
| 18 | − | -- active_border = "$color14 $color14 $color14 $color14 45deg", | |
| 19 | − | -- inactive_border = "$color0 $color0 $color0 $color0 45deg", | |
| 17 | + | ["col.active_border"] = { | |
| 18 | + | colors = { wal.colors.color14, wal.colors.color12 }, | |
| 19 | + | angle = 45, | |
| 20 | + | }, | |
| 20 | 21 | ||
| 21 | − | ["col.inactive_border"] = color0, -- Border color for inactive windows | |
| 22 | − | ["col.active_border"] = color14, -- Border color for the active window | |
| 23 | − | ["col.nogroup_border"] = color0 , -- Inactive border color for window that cannot be added to a group | |
| 24 | − | ["col.nogroup_border_active"] = color0, -- Active border color for window that cannot be added to a group | |
| 22 | + | ["col.inactive_border"] = { | |
| 23 | + | colors = { wal.colors.color0, wal.colors.color0 }, | |
| 24 | + | angle = 45, | |
| 25 | + | }, | |
| 25 | 26 | }, | |
| 26 | 27 | ||
| 27 | 28 | -------------------------------------------------- | |
| @@ -49,17 +50,17 @@ hl.config({ | |||
| 49 | 50 | bezier = { | |
| 50 | 51 | { | |
| 51 | 52 | name = "myBezier", | |
| 52 | − | points = {0.05, 0.9, 0.1, 1.05}, | |
| 53 | + | points = { 0.05, 0.9, 0.1, 1.05 }, | |
| 53 | 54 | }, | |
| 54 | 55 | }, | |
| 55 | 56 | ||
| 56 | 57 | animation = { | |
| 57 | − | {"windows", 1, 2, "myBezier"}, | |
| 58 | − | {"windowsOut", 1, 2, "default", "popin 80%"}, | |
| 59 | − | {"border", 1, 10, "default"}, | |
| 60 | − | {"borderangle", 1, 8, "default"}, | |
| 61 | − | {"fade", 1, 7, "default"}, | |
| 62 | − | {"workspaces", 1, 1, "default"}, | |
| 58 | + | { "windows", 1, 2, "myBezier" }, | |
| 59 | + | { "windowsOut", 1, 2, "default", "popin 80%" }, | |
| 60 | + | { "border", 1, 10, "default" }, | |
| 61 | + | { "borderangle", 1, 8, "default" }, | |
| 62 | + | { "fade", 1, 7, "default" }, | |
| 63 | + | { "workspaces", 1, 1, "default" }, | |
| 63 | 64 | }, | |
| 64 | 65 | }, | |
| 65 | 66 | ||
| @@ -0,0 +1,26 @@ | |||
| 1 | + | -- Auto-generated by pywal16 — do not edit, edit the template instead | |
| 2 | + | return { | |
| 3 | + | special = { | |
| 4 | + | background = "rgba({background.strip}ff)", | |
| 5 | + | foreground = "rgba({foreground.strip}ff)", | |
| 6 | + | cursor = "rgba({cursor.strip}ff)", | |
| 7 | + | }, | |
| 8 | + | colors = { | |
| 9 | + | color0 = "rgba({color0.strip}ff)", | |
| 10 | + | color1 = "rgba({color1.strip}ff)", | |
| 11 | + | color2 = "rgba({color2.strip}ff)", | |
| 12 | + | color3 = "rgba({color3.strip}ff)", | |
| 13 | + | color4 = "rgba({color4.strip}ff)", | |
| 14 | + | color5 = "rgba({color5.strip}ff)", | |
| 15 | + | color6 = "rgba({color6.strip}ff)", | |
| 16 | + | color7 = "rgba({color7.strip}ff)", | |
| 17 | + | color8 = "rgba({color8.strip}ff)", | |
| 18 | + | color9 = "rgba({color9.strip}ff)", | |
| 19 | + | color10 = "rgba({color10.strip}ff)", | |
| 20 | + | color11 = "rgba({color11.strip}ff)", | |
| 21 | + | color12 = "rgba({color12.strip}ff)", | |
| 22 | + | color13 = "rgba({color13.strip}ff)", | |
| 23 | + | color14 = "rgba({color14.strip}ff)", | |
| 24 | + | color15 = "rgba({color15.strip}ff)", | |
| 25 | + | }, | |
| 26 | + | } | |