Krolyxon
Commit 11182a7

Branches

Refs →

aurora.confighyprhyprland.lua

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