Krolyxon
Commit a466635

Branches

Refs →

aurora.confighyprhyprland.lua

56 lines · 2.1 KB · Lua

1terminal = "foot"
2menu = "aurora-run" -- aurora's runner
3browser = "librewolf"
4mainMod = "SUPER"
5
6-- -----------------------------------------------------
7-- Path to home
8-- -----------------------------------------------------
9HOME = os.getenv("HOME")
10
11
12-- Theme (pywal16)
13wal = dofile(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 -- aurora is a systemd unit: hand it the login env (.zprofile: SUDO_ASKPASS, EDITOR, XDG dirs, ...)
23 hl.exec_cmd("dbus-update-activation-environment --systemd --all && systemctl --user start aurora")
24 -- hl.exec_cmd("waybar")
25 -- hl.exec_cmd("swaync")
26 hl.exec_cmd("gammastep")
27 hl.exec_cmd("hypridle")
28 -- hl.exec_cmd("blueman-applet")
29 hl.exec_cmd("hyprpaper") -- wallpaper is set by aurora (Wall.qml), it reads hyprpaper.conf
30 -- polkit agent: aurora (Agents.qml); it starts hyprpolkitagent itself if it can't register
31end)
32
33--------------------------------------------------
34-- Plugins
35--------------------------------------------------
36package.path = package.path .. ";./?.lua;./?/init.lua"
37smw = require("plugins.split-monitor-workspaces")
38smw.setup({
39 workspace_count = 10,
40})
41
42-- -----------------------------------------------------
43-- SOURCE FILES
44-- -----------------------------------------------------
45require("source.monitors")
46require("source.environment_variables")
47require("source.permissions")
48require("source.appearance")
49require("source.input")
50require("source.keybinds")
51require("source.window_rules")
52
53-- aurora's settings app: overrides on top of everything above (~/.config/aurora/hypr.lua, generated, not in the repo).
54-- Missing or broken file = the defaults from the files above.
55local ok, overrides = pcall(dofile, HOME .. "/.config/aurora/hypr.lua")
56if ok and type(overrides) == "table" then hl.config(overrides) end