| 1 | terminal = "foot" |
| 2 | menu = "aurora-run" -- aurora's runner |
| 3 | browser = "librewolf" |
| 4 | mainMod = "SUPER" |
| 5 | |
| 6 | -- ----------------------------------------------------- |
| 7 | -- Path to home |
| 8 | -- ----------------------------------------------------- |
| 9 | HOME = os.getenv("HOME") |
| 10 | |
| 11 | |
| 12 | -- Theme (pywal16) |
| 13 | wal = dofile(HOME .. "/.cache/wal/hyprland-colors.lua") |
| 14 | |
| 15 | -- ----------------------------------------------------- |
| 16 | -- Autostart |
| 17 | -- ----------------------------------------------------- |
| 18 | hl.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 |
| 31 | end) |
| 32 | |
| 33 | -------------------------------------------------- |
| 34 | -- Plugins |
| 35 | -------------------------------------------------- |
| 36 | package.path = package.path .. ";./?.lua;./?/init.lua" |
| 37 | smw = require("plugins.split-monitor-workspaces") |
| 38 | smw.setup({ |
| 39 | workspace_count = 10, |
| 40 | }) |
| 41 | |
| 42 | -- ----------------------------------------------------- |
| 43 | -- SOURCE FILES |
| 44 | -- ----------------------------------------------------- |
| 45 | require("source.monitors") |
| 46 | require("source.environment_variables") |
| 47 | require("source.permissions") |
| 48 | require("source.appearance") |
| 49 | require("source.input") |
| 50 | require("source.keybinds") |
| 51 | require("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. |
| 55 | local ok, overrides = pcall(dofile, HOME .. "/.config/aurora/hypr.lua") |
| 56 | if ok and type(overrides) == "table" then hl.config(overrides) end |