diff --git a/dots/.config/matugen/config.toml b/dots/.config/matugen/config.toml index 1f47d1565..4c4449a3b 100644 --- a/dots/.config/matugen/config.toml +++ b/dots/.config/matugen/config.toml @@ -6,8 +6,8 @@ input_path = '~/.config/matugen/templates/colors.json' output_path = '~/.local/state/quickshell/user/generated/colors.json' [templates.hyprland] -input_path = '~/.config/matugen/templates/hyprland/colors.conf' -output_path = '~/.config/hypr/hyprland/colors.conf' +input_path = '~/.config/matugen/templates/hyprland/colors.lua' +output_path = '~/.config/hypr/hyprland/colors.lua' [templates.hyprlock] input_path = '~/.config/matugen/templates/hyprland/hyprlock-colors.conf' diff --git a/dots/.config/matugen/templates/hyprland/colors.conf b/dots/.config/matugen/templates/hyprland/colors.conf deleted file mode 100644 index 6c11ce26a..000000000 --- a/dots/.config/matugen/templates/hyprland/colors.conf +++ /dev/null @@ -1,32 +0,0 @@ -general { - col.active_border = rgba({{colors.outline_variant.default.hex_stripped}}77) - col.inactive_border = rgba({{colors.surface_container_low.default.hex_stripped}}33) -} - -misc { - background_color = rgba({{colors.surface.dark.hex_stripped}}FF) -} - -plugin { - hyprbars { - # Honestly idk if it works like css, but well, why not - bar_text_font = Google Sans Flex Medium, Rubik, Geist, AR One Sans, Reddit Sans, Inter, Roboto, Ubuntu, Noto Sans, sans-serif - bar_height = 30 - bar_padding = 10 - bar_button_padding = 5 - bar_precedence_over_border = true - bar_part_of_window = true - - bar_color = rgba({{colors.background.default.hex_stripped}}FF) - col.text = rgba({{colors.on_background.default.hex_stripped}}FF) - - - # example buttons (R -> L) - # hyprbars-button = color, size, on-click - hyprbars-button = rgb({{colors.on_background.default.hex_stripped}}), 13, 󰖭, hyprctl dispatch killactive - hyprbars-button = rgb({{colors.on_background.default.hex_stripped}}), 13, 󰖯, hyprctl dispatch fullscreen 1 - hyprbars-button = rgb({{colors.on_background.default.hex_stripped}}), 13, 󰖰, hyprctl dispatch movetoworkspacesilent special - } -} - -windowrule = border_color rgba({{colors.primary.default.hex_stripped}}AA) rgba({{colors.primary.default.hex_stripped}}77), match:pin 1 diff --git a/dots/.config/matugen/templates/hyprland/colors.lua b/dots/.config/matugen/templates/hyprland/colors.lua new file mode 100644 index 000000000..0175f2d47 --- /dev/null +++ b/dots/.config/matugen/templates/hyprland/colors.lua @@ -0,0 +1,16 @@ +hl.config({ + general = { + col = { + active_border = "rgba({{colors.outline_variant.default.hex_stripped}}77)", + inactive_border = "rgba({{colors.surface_container_low.default.hex_stripped}}33)", + }, + }, + misc = { + background_color = "rgba({{colors.surface.dark.hex_stripped}}FF)", + }, +}) + +hl.window_rule({ + match = { pin = 1 }, + border_color = "rgba({{colors.primary.default.hex_stripped}}AA) rgba({{colors.primary.default.hex_stripped}}77)", +})