aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.config/hypr/hyprland.lua45
-rw-r--r--.config/hypr/source/appearance.lua2
-rw-r--r--.config/hypr/source/window_rules.lua38
3 files changed, 41 insertions, 44 deletions
diff --git a/.config/hypr/hyprland.lua b/.config/hypr/hyprland.lua
index 689e6ac..b240a40 100644
--- a/.config/hypr/hyprland.lua
+++ b/.config/hypr/hyprland.lua
@@ -9,8 +9,8 @@ mainMod = "SUPER"
HOME = os.getenv("HOME")
--- Theme (pywal)
-dofile(HOME .. "/.cache/wal/hyprland-colors.lua")
+-- Theme (pywal16)
+wal = dofile(HOME .. "/.cache/wal/hyprland-colors.lua")
-- -----------------------------------------------------
-- Autostart
@@ -45,43 +45,4 @@ require("source.permissions")
require("source.appearance")
require("source.input")
require("source.keybinds")
-
-
---------------------------------------------------
--- Window rules
---------------------------------------------------
-hl.window_rule({
- name = "suppress-maximize-events",
-
- match = {
- class = ".*",
- },
-
- suppress_event = "maximize",
-})
-
-hl.window_rule({
- name = "fix-xwayland-drags",
-
- match = {
- class = "^$",
- title = "^$",
- xwayland = true,
- float = true,
- fullscreen = false,
- pin = false,
- },
-
- no_focus = true,
-})
-
-hl.window_rule({
- name = "move-hyprland-run",
-
- match = {
- class = "hyprland-run",
- },
-
- move = "20 monitor_h-120",
- float = true,
-})
+require("source.window_rules")
diff --git a/.config/hypr/source/appearance.lua b/.config/hypr/source/appearance.lua
index fc57878..c37ee44 100644
--- a/.config/hypr/source/appearance.lua
+++ b/.config/hypr/source/appearance.lua
@@ -1,5 +1,3 @@
-local wal = dofile(os.getenv("HOME") .. "/.cache/wal/hyprland-colors.lua")
-
hl.config({
--------------------------------------------------
-- General
diff --git a/.config/hypr/source/window_rules.lua b/.config/hypr/source/window_rules.lua
new file mode 100644
index 0000000..e82a3dc
--- /dev/null
+++ b/.config/hypr/source/window_rules.lua
@@ -0,0 +1,38 @@
+--------------------------------------------------
+-- Window rules
+--------------------------------------------------
+hl.window_rule({
+ name = "suppress-maximize-events",
+
+ match = {
+ class = ".*",
+ },
+
+ suppress_event = "maximize",
+})
+
+hl.window_rule({
+ name = "fix-xwayland-drags",
+
+ match = {
+ class = "^$",
+ title = "^$",
+ xwayland = true,
+ float = true,
+ fullscreen = false,
+ pin = false,
+ },
+
+ no_focus = true,
+})
+
+hl.window_rule({
+ name = "move-hyprland-run",
+
+ match = {
+ class = "hyprland-run",
+ },
+
+ move = "20 monitor_h-120",
+ float = true,
+})