repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

hypr/modules/rules.lua

Raw
local nugu = require("generated.nugu")
local t = nugu.current()

hl.window_rule({
  name = "suppress-maximize-events",
  match = { class = ".*" },
  suppress_event = "maximize",
})

hl.window_rule({ match = { class = "^(firefox|org.mozilla.firefox)$" }, workspace = "1" })
hl.window_rule({ match = { class = "^(firefox|org.mozilla.firefox)$" }, opacity = "0.98 0.96" })

hl.window_rule({ match = { class = "^(wezterm|org.wezfurlong.wezterm)$" }, workspace = "3" })
hl.window_rule({ match = { class = "^yazi$" }, workspace = "3" })

hl.window_rule({ match = { class = "^(mpv|com.github.celluloid_player.Celluloid)$" }, workspace = "5" })
hl.window_rule({ match = { class = "^(mpv|com.github.celluloid_player.Celluloid)$" }, immediate = true })

hl.window_rule({ match = { class = "^(pavucontrol|blueman-manager|nm-connection-editor)$" }, float = true, center = true })
hl.window_rule({ match = { class = "^(org.gnome.Nautilus|thunar)$", title = "^(Open|Save).*" }, float = true, center = true })
hl.window_rule({ match = { class = "(pinentry-)(.*)" }, stay_focused = true })

hl.window_rule({ match = { float = true }, border_color = nugu.rgba(t.ui.accent, "dd") })
hl.window_rule({ match = { fullscreen = true }, border_size = 0, rounding = 0 })
hl.window_rule({ match = { float = false, workspace = "w[tv1]s[false]" }, border_size = 0, rounding = 0 })
hl.window_rule({ match = { float = false, workspace = "f[1]s[false]" }, border_size = 0, rounding = 0 })