diff --git a/.gitignore b/.gitignore index 05db3ac..75a8c97 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,5 @@ *.log hyprlock.conf hyprpaper.conf -scripts/autostart/workspace \ No newline at end of file +scripts/autostart/workspace +config/color.lua \ No newline at end of file diff --git a/config/theme.lua b/config/theme.lua index d665a39..748b553 100644 --- a/config/theme.lua +++ b/config/theme.lua @@ -6,8 +6,9 @@ hl.config({ float_gaps = 0, gaps_workspaces = 0, col = { - inactive_border = 0xff00B7EB, - active_border = { colors = { "rgba(ff0000ff)", "rgba(ffff00ff)", "rgba(00ff00ff)", "rgba(00ffffff)", "rgba(0000ffff)", "rgba(ff00ffff)" }, angle = 45 }, + inactive_border = INACTIVE_COLOR, + -- 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_active = 0xffff00ff, }, diff --git a/examples/color.lua.example b/examples/color.lua.example new file mode 100644 index 0000000..78d9608 --- /dev/null +++ b/examples/color.lua.example @@ -0,0 +1,2 @@ +ACTIVE_COLOR = 0xFFFF0000 +INACTIVE_COLOR = 0xFF0000FF \ No newline at end of file diff --git a/hyprland.lua b/hyprland.lua index 035a4de..eb90c45 100644 --- a/hyprland.lua +++ b/hyprland.lua @@ -1,4 +1,5 @@ require("config/hostname") +require("config/color") require("config/bind") require("config/env") require("config/theme") diff --git a/install.sh b/install.sh index 1ac88a7..6da68b0 100755 --- a/install.sh +++ b/install.sh @@ -90,6 +90,11 @@ mkdir -p "$SCRIPT_DIR/scripts/autostart" 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 # ----------------------------