Krolyxon
Commit f130f7e

Branches

Refs →

aurora.confighyprhyprland.lua

100 lines · 2.2 KB · Lua

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