Krolyxon
Commit 22933f7

Branches

Refs →

aurora.confighyprhyprland.lua

59 lines · 2.5 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 (matugen, run by aurora on every wallpaper change; fallback until it has run once)
13local ok, c = pcall(dofile, HOME .. "/.cache/matugen/hyprland-colors.lua")
14colors = ok and c or { primary = "rgba(80d5cbff)", outline_variant = "rgba(3f4947ff)" }
15
16-- -----------------------------------------------------
17-- Autostart
18-- -----------------------------------------------------
19hl.on("hyprland.start", function()
20 -- GTK3 on Wayland reads its theme from gsettings, not settings.ini (colours: gtk-3.0/gtk.css, matugen)
21 hl.exec_cmd("gsettings set org.gnome.desktop.interface gtk-theme adw-gtk3-dark")
22 hl.exec_cmd("wl-paste --type text --watch cliphist store")
23 hl.exec_cmd("wl-paste --type image --watch cliphist store")
24 hl.exec_cmd("hyprpm reload -n")
25 -- aurora is a systemd unit: hand it the login env (.zprofile: SUDO_ASKPASS, EDITOR, XDG dirs, ...)
26 hl.exec_cmd("dbus-update-activation-environment --systemd --all && systemctl --user start aurora")
27 -- hl.exec_cmd("waybar")
28 -- hl.exec_cmd("swaync")
29 hl.exec_cmd("gammastep")
30 hl.exec_cmd("hypridle")
31 -- hl.exec_cmd("blueman-applet")
32 hl.exec_cmd("hyprpaper") -- wallpaper is set by aurora (Wall.qml), it reads hyprpaper.conf
33 -- polkit agent: aurora (Agents.qml); it starts hyprpolkitagent itself if it can't register
34end)
35
36--------------------------------------------------
37-- Plugins
38--------------------------------------------------
39package.path = package.path .. ";./?.lua;./?/init.lua"
40smw = require("plugins.split-monitor-workspaces")
41smw.setup({
42 workspace_count = 10,
43})
44
45-- -----------------------------------------------------
46-- SOURCE FILES
47-- -----------------------------------------------------
48require("source.monitors")
49require("source.environment_variables")
50require("source.permissions")
51require("source.appearance")
52require("source.input")
53require("source.keybinds")
54require("source.window_rules")
55
56-- aurora's settings app: overrides on top of everything above (~/.config/aurora/hypr.lua, generated, not in the repo).
57-- Missing or broken file = the defaults from the files above.
58local ok, overrides = pcall(dofile, HOME .. "/.config/aurora/hypr.lua")
59if ok and type(overrides) == "table" then hl.config(overrides) end