Krolyxon
Commit 7ed7c22

Branches

Refs →

aurora.confighyprhyprland.lua

87 lines · 2.0 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/hyprland-colors.lua")
14
15-- -----------------------------------------------------
16-- Autostart
17-- -----------------------------------------------------
18hl.on("hyprland.start", function()
19 hl.exec_cmd("wl-paste --type text --watch cliphist store")
20 hl.exec_cmd("wl-paste --type image --watch cliphist store")
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--------------------------------------------------
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--------------------------------------------------
53hl.window_rule({
54 name = "suppress-maximize-events",
55
56 match = {
57 class = ".*",
58 },
59
60 suppress_event = "maximize",
61})
62
63hl.window_rule({
64 name = "fix-xwayland-drags",
65
66 match = {
67 class = "^$",
68 title = "^$",
69 xwayland = true,
70 float = true,
71 fullscreen = false,
72 pin = false,
73 },
74
75 no_focus = true,
76})
77
78hl.window_rule({
79 name = "move-hyprland-run",
80
81 match = {
82 class = "hyprland-run",
83 },
84
85 move = "20 monitor_h-120",
86 float = true,
87})