Krolyxon
Commit cf3613e

Branches

Refs →

aurora.confighyprhyprland.lua

88 lines · 1.9 KB · Lua

1terminal = "foot"
2menu = "fuzzel"
3browser = "librewolf"
4mainMod = "SUPER"
5
6-- -----------------------------------------------------
7-- Path to home
8-- -----------------------------------------------------
9HOME = os.getenv("HOME")
10
11
12-- Theme (pywal)
13dofile(HOME .. "/.cache/wal/colors.lua")
14
15-- -----------------------------------------------------
16-- Autostart
17-- -----------------------------------------------------
18
19hl.on("hyprland.start", function()
20 hl.exec_cmd("hyprpm reload -n")
21 hl.exec_cmd("kanshi")
22 hl.exec_cmd("waybar")
23 hl.exec_cmd("swaync")
24 hl.exec_cmd("gammastep")
25 hl.exec_cmd("hypridle")
26 hl.exec_cmd(os.getenv("HOME") .. "/.local/bin/setwall -n")
27 hl.exec_cmd("systemctl --user start hyprpolkitagent")
28end)
29
30--------------------------------------------------
31-- Plugins
32--------------------------------------------------
33
34package.path = package.path .. ";./?.lua;./?/init.lua"
35smw = require("plugins.split-monitor-workspaces")
36smw.setup({
37 workspace_count = 10,
38})
39
40-- -----------------------------------------------------
41-- SOURCE FILES
42-- -----------------------------------------------------
43require("source.environment_variables")
44require("source.permissions")
45require("source.appearance")
46require("source.input")
47require("source.keybinds")
48
49
50--------------------------------------------------
51-- Window rules
52--------------------------------------------------
53
54hl.window_rule({
55 name = "suppress-maximize-events",
56
57 match = {
58 class = ".*",
59 },
60
61 suppress_event = "maximize",
62})
63
64hl.window_rule({
65 name = "fix-xwayland-drags",
66
67 match = {
68 class = "^$",
69 title = "^$",
70 xwayland = true,
71 float = true,
72 fullscreen = false,
73 pin = false,
74 },
75
76 no_focus = true,
77})
78
79hl.window_rule({
80 name = "move-hyprland-run",
81
82 match = {
83 class = "hyprland-run",
84 },
85
86 move = "20 monitor_h-120",
87 float = true,
88})