added colors.lua

This commit is contained in:
Hannes
2026-08-21 23:47:02 +02:00
parent 8deb311047
commit 50e7c7a9aa
5 changed files with 13 additions and 3 deletions
+1
View File
@@ -3,3 +3,4 @@
hyprlock.conf hyprlock.conf
hyprpaper.conf hyprpaper.conf
scripts/autostart/workspace scripts/autostart/workspace
config/color.lua
+3 -2
View File
@@ -6,8 +6,9 @@ hl.config({
float_gaps = 0, float_gaps = 0,
gaps_workspaces = 0, gaps_workspaces = 0,
col = { col = {
inactive_border = 0xff00B7EB, inactive_border = INACTIVE_COLOR,
active_border = { colors = { "rgba(ff0000ff)", "rgba(ffff00ff)", "rgba(00ff00ff)", "rgba(00ffffff)", "rgba(0000ffff)", "rgba(ff00ffff)" }, angle = 45 }, -- active_border = { colors = { "rgba(ff0000ff)", "rgba(ffff00ff)", "rgba(00ff00ff)", "rgba(00ffffff)", "rgba(0000ffff)", "rgba(ff00ffff)" }, angle = 45 },
active_border = ACTIVE_COLOR,
nogroup_border = 0xffffaaff, nogroup_border = 0xffffaaff,
nogroup_border_active = 0xffff00ff, nogroup_border_active = 0xffff00ff,
}, },
+2
View File
@@ -0,0 +1,2 @@
ACTIVE_COLOR = 0xFFFF0000
INACTIVE_COLOR = 0xFF0000FF
+1
View File
@@ -1,4 +1,5 @@
require("config/hostname") require("config/hostname")
require("config/color")
require("config/bind") require("config/bind")
require("config/env") require("config/env")
require("config/theme") require("config/theme")
+5
View File
@@ -90,6 +90,11 @@ mkdir -p "$SCRIPT_DIR/scripts/autostart"
ok "hyprpaper config created" ok "hyprpaper config created"
} }
[[ ! -f "$SCRIPT_DIR/config/color.lua" ]] && {
cp "$SCRIPT_DIR/examples/color.lua.example" "$SCRIPT_DIR/config/color.lua"
ok "color config created"
}
# ---------------------------- # ----------------------------
# Install # Install
# ---------------------------- # ----------------------------