Krolyxon
Commit 36149c1

Branches

Refs →

aurora.confighyprhyprland.lua

60 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 + icons 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("gsettings set org.gnome.desktop.interface icon-theme Papirus-Dark")
23 hl.exec_cmd("wl-paste --type text --watch cliphist store")
24 hl.exec_cmd("wl-paste --type image --watch cliphist store")
25 hl.exec_cmd("hyprpm reload -n")
26 -- aurora is a systemd unit: hand it the login env (.zprofile: SUDO_ASKPASS, EDITOR, XDG dirs, ...)
27 hl.exec_cmd("dbus-update-activation-environment --systemd --all && systemctl --user start aurora")
28 -- hl.exec_cmd("waybar")
29 -- hl.exec_cmd("swaync")
30 hl.exec_cmd("gammastep")
31 hl.exec_cmd("hypridle")
32 -- hl.exec_cmd("blueman-applet")
33 hl.exec_cmd("hyprpaper") -- wallpaper is set by aurora (Wall.qml), it reads hyprpaper.conf
34 -- polkit agent: aurora (Agents.qml); it starts hyprpolkitagent itself if it can't register
35end)
36
37--------------------------------------------------
38-- Plugins
39--------------------------------------------------
40package.path = package.path .. ";./?.lua;./?/init.lua"
41smw = require("plugins.split-monitor-workspaces")
42smw.setup({
43 workspace_count = 10,
44})
45
46-- -----------------------------------------------------
47-- SOURCE FILES
48-- -----------------------------------------------------
49require("source.monitors")
50require("source.environment_variables")
51require("source.permissions")
52require("source.appearance")
53require("source.input")
54require("source.keybinds")
55require("source.window_rules")
56
57-- aurora's settings app: overrides on top of everything above (~/.config/aurora/hypr.lua, generated, not in the repo).
58-- Missing or broken file = the defaults from the files above.
59local ok, overrides = pcall(dofile, HOME .. "/.config/aurora/hypr.lua")
60if ok and type(overrides) == "table" then hl.config(overrides) end