-- ~/.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",
})
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).*)$",
},
})
-- ░█▀█░░█░░█▀▀░█▀▄░█░░░█▀█░█░█░█░█░░░█░░░█░█░█░█░█▀▀░░█░░█░█
-- ░▀░▀░░▀░░▀░░░▀░▀░▀▀▀░▀░▀░▀░▀░▀▀░░░░▀▀▀░▀▀▀░▀░▀░▀░░░▀▀▀░▀▀▀
+--------------------
+---- DEBUGGING ----
+--------------------
+
+hl.config({
+ debug = {
+ error_position = 1,
+ disable_logs = true,
+ enable_stdout_logs = false,
+ suppress_errors = false,
+ },
+})
+
------------------
---- MONITORS ----
------------------
blur = {
enabled = true,
+ -- variant = "frost",
size = 3,
passes = 1,
vibrancy = 0.1696,
noise = 0.0696,
},
+ -- wobble = {
+ -- enabled = true,
+ -- },
+
motion_blur = {
enabled = true,
samples = 7,
------- 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",
+})
--------------------------------
require("fragments.windowrules")
require("noctalia.noctalia-colors")
+
+-- For Noctalia Color templates
+require("noctalia").apply_theme()
--- /dev/null
+-- 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
+}