aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkrolyxon <me@krolyxon.com>2026-08-16 11:59:44 +0530
committerkrolyxon <me@krolyxon.com>2026-08-16 11:59:44 +0530
commita090c360f18acb4e2dac46a9d53e146c87e8ab38 (patch)
tree9a88bf978f41a829b16b44eeae44ff2f61f16493
parent7ed7c220755162ef321e07eaf6634af27674e6e7 (diff)
hyprland: add hyprland-colors.lua pywal template for appearance
-rw-r--r--.config/hypr/source/appearance.lua31
-rw-r--r--.config/wal/templates/hyprland-colors.lua26
2 files changed, 42 insertions, 15 deletions
diff --git a/.config/hypr/source/appearance.lua b/.config/hypr/source/appearance.lua
index 8ec1a9a..fc57878 100644
--- a/.config/hypr/source/appearance.lua
+++ b/.config/hypr/source/appearance.lua
@@ -1,5 +1,4 @@
--- source/appearance.lua
-
+local wal = dofile(os.getenv("HOME") .. "/.cache/wal/hyprland-colors.lua")
hl.config({
--------------------------------------------------
@@ -15,13 +14,15 @@ hl.config({
layout = "master",
- -- active_border = "$color14 $color14 $color14 $color14 45deg",
- -- inactive_border = "$color0 $color0 $color0 $color0 45deg",
+ ["col.active_border"] = {
+ colors = { wal.colors.color14, wal.colors.color12 },
+ angle = 45,
+ },
- ["col.inactive_border"] = color0, -- Border color for inactive windows
- ["col.active_border"] = color14, -- Border color for the active window
- ["col.nogroup_border"] = color0 , -- Inactive border color for window that cannot be added to a group
- ["col.nogroup_border_active"] = color0, -- Active border color for window that cannot be added to a group
+ ["col.inactive_border"] = {
+ colors = { wal.colors.color0, wal.colors.color0 },
+ angle = 45,
+ },
},
--------------------------------------------------
@@ -49,17 +50,17 @@ hl.config({
bezier = {
{
name = "myBezier",
- points = {0.05, 0.9, 0.1, 1.05},
+ points = { 0.05, 0.9, 0.1, 1.05 },
},
},
animation = {
- {"windows", 1, 2, "myBezier"},
- {"windowsOut", 1, 2, "default", "popin 80%"},
- {"border", 1, 10, "default"},
- {"borderangle", 1, 8, "default"},
- {"fade", 1, 7, "default"},
- {"workspaces", 1, 1, "default"},
+ { "windows", 1, 2, "myBezier" },
+ { "windowsOut", 1, 2, "default", "popin 80%" },
+ { "border", 1, 10, "default" },
+ { "borderangle", 1, 8, "default" },
+ { "fade", 1, 7, "default" },
+ { "workspaces", 1, 1, "default" },
},
},
diff --git a/.config/wal/templates/hyprland-colors.lua b/.config/wal/templates/hyprland-colors.lua
new file mode 100644
index 0000000..c087a56
--- /dev/null
+++ b/.config/wal/templates/hyprland-colors.lua
@@ -0,0 +1,26 @@
+-- Auto-generated by pywal16 — do not edit, edit the template instead
+return {
+ special = {
+ background = "rgba({background.strip}ff)",
+ foreground = "rgba({foreground.strip}ff)",
+ cursor = "rgba({cursor.strip}ff)",
+ },
+ colors = {
+ color0 = "rgba({color0.strip}ff)",
+ color1 = "rgba({color1.strip}ff)",
+ color2 = "rgba({color2.strip}ff)",
+ color3 = "rgba({color3.strip}ff)",
+ color4 = "rgba({color4.strip}ff)",
+ color5 = "rgba({color5.strip}ff)",
+ color6 = "rgba({color6.strip}ff)",
+ color7 = "rgba({color7.strip}ff)",
+ color8 = "rgba({color8.strip}ff)",
+ color9 = "rgba({color9.strip}ff)",
+ color10 = "rgba({color10.strip}ff)",
+ color11 = "rgba({color11.strip}ff)",
+ color12 = "rgba({color12.strip}ff)",
+ color13 = "rgba({color13.strip}ff)",
+ color14 = "rgba({color14.strip}ff)",
+ color15 = "rgba({color15.strip}ff)",
+ },
+}