Krolyxon
Commit 1f888d7

Branches

Refs →

aurora.confighyprhyprland.lua

56 lines · 2.0 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 hl.exec_cmd("kanshi")
23 -- aurora is a systemd unit: hand it the login env (.zprofile: SUDO_ASKPASS, EDITOR, XDG dirs, ...)
24 hl.exec_cmd("dbus-update-activation-environment --systemd --all && systemctl --user start aurora")
25 -- hl.exec_cmd("waybar")
26 -- hl.exec_cmd("swaync")
27 hl.exec_cmd("gammastep")
28 hl.exec_cmd("hypridle")
29 -- hl.exec_cmd("blueman-applet")
30 hl.exec_cmd("hyprpaper") -- wallpaper is set by aurora (Wall.qml), it reads hyprpaper.conf
31 hl.exec_cmd("systemctl --user start hyprpolkitagent")
32end)
33
34--------------------------------------------------
35-- Plugins
36--------------------------------------------------
37package.path = package.path .. ";./?.lua;./?/init.lua"
38smw = require("plugins.split-monitor-workspaces")
39smw.setup({
40 workspace_count = 10,
41})
42
43-- -----------------------------------------------------
44-- SOURCE FILES
45-- -----------------------------------------------------
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