From 4750beca87617d592559414f3e870138a73b6909 Mon Sep 17 00:00:00 2001 From: Andre Ramnitz Date: Tue, 15 Sep 2026 02:43:37 +0200 Subject: [PATCH] hypr: bars --- dot-config/hypr/fragments/windowrules.lua | 37 ++++----- dot-config/hypr/hyprland.lua | 95 ++++++++++++++--------- dot-config/hypr/noctalia.lua | 54 +++++++++++++ 3 files changed, 131 insertions(+), 55 deletions(-) create mode 100644 dot-config/hypr/noctalia.lua diff --git a/dot-config/hypr/fragments/windowrules.lua b/dot-config/hypr/fragments/windowrules.lua index 37eb2c7..c36d7be 100644 --- a/dot-config/hypr/fragments/windowrules.lua +++ b/dot-config/hypr/fragments/windowrules.lua @@ -6,23 +6,24 @@ -- ~/.config/hypr/fragments/windowrules.lua -- hide hyprbars on non-floating windows --- hl.window_rule({ --- name = "nobar1", --- match = { --- float = false, --- }, --- no_shadow = true, --- ["hyprbars:no_bar"] = true --- }) +hl.window_rule({ + name = "nobar1", + match = { + float = false, + }, + no_shadow = true, + ["hyprbars:no_bar"] = true +}) -- hide hyprbars on specific windows --- hl.window_rule({ --- name = "nobar2", --- match = { --- class = "^((org.kde.*|steam|io.github.ilya_zlobintsev.LACT).*)$", --- }, --- ["hyprbars:no_bar"] = true --- }) +hl.window_rule({ + name = "nobar2", + match = { + float = true, + class = "^((org.kde.*|steam|io.github.ilya_zlobintsev.LACT).*)$", + }, + ["hyprbars:no_bar"] = true +}) hl.window_rule({ name = "floating_enable", @@ -33,11 +34,11 @@ hl.window_rule({ }) hl.window_rule({ - name = "floating_enable_with_hint", + name = "floating_enable_size_1200", float = true, - size = "1280 800", + size = "1200 1200", match = { - class = "^((qalculate|clipse).*)$", + class = "^((com.system76.CosmicMonitor|qalculate|clipse).*)$", }, }) diff --git a/dot-config/hypr/hyprland.lua b/dot-config/hypr/hyprland.lua index e5bf499..c84f284 100644 --- a/dot-config/hypr/hyprland.lua +++ b/dot-config/hypr/hyprland.lua @@ -3,6 +3,19 @@ -- ░█▀█░░█░░█▀▀░█▀▄░█░░░█▀█░█░█░█░█░░░█░░░█░█░█░█░█▀▀░░█░░█░█ -- ░▀░▀░░▀░░▀░░░▀░▀░▀▀▀░▀░▀░▀░▀░▀▀░░░░▀▀▀░▀▀▀░▀░▀░▀░░░▀▀▀░▀▀▀ +-------------------- +---- DEBUGGING ---- +-------------------- + +hl.config({ + debug = { + error_position = 1, + disable_logs = true, + enable_stdout_logs = false, + suppress_errors = false, + }, +}) + ------------------ ---- MONITORS ---- ------------------ @@ -121,12 +134,17 @@ hl.config({ blur = { enabled = true, + -- variant = "frost", size = 3, passes = 1, vibrancy = 0.1696, noise = 0.0696, }, + -- wobble = { + -- enabled = true, + -- }, + motion_blur = { enabled = true, samples = 7, @@ -282,46 +300,46 @@ hl.device({ ------- HYPRLAND PLUGINS ------ -------------------------------- --- hl.config({ --- plugin = { --- hyprbars = { --- bar_text_font = "ZedMono NFP", --- bar_text_size = 11, --- bar_height = 21, --- bar_color = "rgb(101010)", --- text_color = "rgb(efefef)", --- bar_part_of_window = 1, --- bar_precedence_over_border = 1, --- }, --- }, --- }) - --- hl.plugin.hyprbars.add_button({ --- bg_color = "rgb(aa3333)", --- fg_color = "rgb(aaaaaa)", --- size = 18, --- icon = "", --- action = "hyprctl dispatch killactive", --- }) +hl.config({ + plugin = { + hyprbars = { + bar_text_font = "ZedMono NFP", + bar_text_size = 16, + bar_height = 24, + bar_color = "rgb(101010)", + -- title_color = "rgb(efefef)", + bar_part_of_window = 1, + bar_precedence_over_border = 1, + }, + }, +}) --- hl.plugin.hyprbars.add_button({ --- bg_color = "rgb(3333aa)", --- fg_color = "rgb(aaaaaa)", --- size = 18, --- icon = "", --- action = "hyprctl dispatch fullscreen 1", --- }) +hl.plugin.hyprbars.add_button({ + bg_color = "rgb(aa5555)", + fg_color = "rgb(151515)", + size = 19, + -- icon = "", + icon = "X", + action = "hyprctl dispatch 'hl.dsp.window.close()'", +}) --- hl.plugin.hyprbars.add_button({ --- bg_color = "rgb(333333)", --- fg_color = "rgb(aa3333)", --- size = 18, --- icon = "", --- action = "hyprctl dispatch killactive", --- }) +hl.plugin.hyprbars.add_button({ + bg_color = "rgb(aaaa66)", + fg_color = "rgb(151515)", + size = 19, + -- icon = "", + icon = "+", + action = [[hyprctl dispatch 'hl.dsp.window.fullscreen({ mode = "maximized", action = "toggle" })']], +}) --- add_button = { colors = {primary}}, 18, , hyprctl dispatch fullscreen 1, --- add_button = { colors = {secondary}}, 18, , hyprctl dispatch movetoworkspacesilent special:min, +hl.plugin.hyprbars.add_button({ + bg_color = "rgb(66aa66)", + fg_color = "rgb(151515)", + size = 19, + -- icon = "", + icon = "-", + action = "hyprctl dispatch movetoworkspacesilent special:min", +}) -------------------------------- @@ -387,3 +405,6 @@ require("fragments.animations") require("fragments.windowrules") require("noctalia.noctalia-colors") + +-- For Noctalia Color templates +require("noctalia").apply_theme() diff --git a/dot-config/hypr/noctalia.lua b/dot-config/hypr/noctalia.lua new file mode 100644 index 0000000..8e0395f --- /dev/null +++ b/dot-config/hypr/noctalia.lua @@ -0,0 +1,54 @@ +-- Generated by Noctalia + +local primary = "rgb(ffc799)" +local surface = "rgb(0c0c0c)" +local on_surface = "rgb(ffffff)" +local secondary = "rgb(99ffe4)" +local on_secondary = "rgb(000000)" +local error = "rgb(ff8080)" +local on_error = "rgb(000000)" + +local function apply_theme() + hl.config({ + general = { + col = { + active_border = primary, + inactive_border = surface, + }, + }, + group = { + col = { + border_active = secondary, + border_inactive = surface, + border_locked_active = error, + border_locked_inactive = surface, + }, + + groupbar = { + col = { + active = secondary, + inactive = surface, + locked_active = error, + locked_inactive = surface, + }, + text_color = on_secondary, + text_color_inactive = on_surface, + text_color_locked_active = on_error, + text_color_locked_inactive = on_surface, + }, + }, + }) +end + +return { + colors = { + primary = primary, + surface = surface, + on_surface = on_surface, + secondary = secondary, + on_secondary = on_secondary, + error = error, + on_error = on_error, + }, + apply_theme = apply_theme +} -- 2.55.0