Krolyxon
Commit 79fb5e7

Branches

Refs →

aurora.confighyprhyprland.lua

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