]> Freerunner's - dotfiles.git/commitdiff
hypr: bars
authorAndre Ramnitz <andre.ramnitz@mail.de>
Tue, 15 Sep 2026 00:43:37 +0000 (02:43 +0200)
committerAndre Ramnitz <andre.ramnitz@mail.de>
Tue, 15 Sep 2026 00:43:37 +0000 (02:43 +0200)
dot-config/hypr/fragments/windowrules.lua
dot-config/hypr/hyprland.lua
dot-config/hypr/noctalia.lua [new file with mode: 0644]

index 37eb2c75fefcb59ba5e3d0a8099e72a4d8a5756c..c36d7be77794f1b692dade34ab5ff00d15213768 100644 (file)
@@ -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).*)$",
     },
 })
 
index e5bf499f5b9bd0e7fbf1054aca7134a671a66748..c84f284e7c4f97efc35b003607b1c233e7331021 100644 (file)
@@ -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 = "<U+F05AD>",
---     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 = "<U+F004C>",
---     action = "hyprctl dispatch fullscreen 1",
--- })
+hl.plugin.hyprbars.add_button({
+    bg_color = "rgb(aa5555)",
+    fg_color = "rgb(151515)",
+    size = 19,
+    -- icon = "<U+F05AD>",
+    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 = "<U+F05AD>",
---     action = "hyprctl dispatch killactive",
--- })
+hl.plugin.hyprbars.add_button({
+    bg_color = "rgb(aaaa66)",
+    fg_color = "rgb(151515)",
+    size = 19,
+    -- icon = "<U+F004C>",
+    icon = "+",
+    action = [[hyprctl dispatch 'hl.dsp.window.fullscreen({ mode = "maximized", action = "toggle" })']],
+})
 
--- add_button = { colors = {primary}}, 18, <U+F004C>, hyprctl dispatch fullscreen 1,
--- add_button = { colors = {secondary}}, 18, <U+EF3E>, hyprctl dispatch movetoworkspacesilent special:min,
+hl.plugin.hyprbars.add_button({
+    bg_color = "rgb(66aa66)",
+    fg_color = "rgb(151515)",
+    size = 19,
+    -- icon = "<U+EF3E>",
+    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 (file)
index 0000000..8e0395f
--- /dev/null
@@ -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
+}