Krolyxon
Commit db36078

Branches

Refs →

aurora.confighyprhyprland.lua

65 lines · 3.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 (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 -- tty1 autologs in, so hyprlock is the login screen: its password unlocks the GNOME keyring
22 -- (/etc/pam.d/login has pam_gnome_keyring, hyprlock includes it; system/etc/pam.d)
23 hl.exec_cmd("pidof hyprlock || hyprlock")
24 -- GTK3 on Wayland reads its theme + icons from gsettings, not settings.ini (colours: gtk-3.0/gtk.css, matugen)
25 hl.exec_cmd("gsettings set org.gnome.desktop.interface gtk-theme adw-gtk3-dark")
26 hl.exec_cmd("gsettings set org.gnome.desktop.interface icon-theme Papirus-Dark")
27 hl.exec_cmd("gsettings set org.gnome.desktop.interface font-name 'JetBrainsMonoNL Nerd Font Mono 11'") -- Space fonts are aurora's only
28 hl.exec_cmd("wl-paste --type text --watch cliphist store")
29 hl.exec_cmd("wl-paste --type image --watch cliphist store")
30 hl.exec_cmd("hyprpm reload -n")
31 -- aurora is a systemd unit: hand it the login env (.zprofile: SUDO_ASKPASS, EDITOR, XDG dirs, ...)
32 hl.exec_cmd("dbus-update-activation-environment --systemd --all && systemctl --user start aurora-shell")
33 -- hl.exec_cmd("waybar")
34 -- hl.exec_cmd("swaync")
35 hl.exec_cmd("gammastep")
36 hl.exec_cmd("hypridle")
37 -- hl.exec_cmd("blueman-applet")
38 -- no hyprpaper: aurora draws the wallpaper itself (Back.qml / WallView.qml)
39 -- polkit agent: aurora (Agents.qml); it starts hyprpolkitagent itself if it can't register
40end)
41
42--------------------------------------------------
43-- Plugins
44--------------------------------------------------
45package.path = package.path .. ";./?.lua;./?/init.lua"
46smw = require("plugins.split-monitor-workspaces")
47smw.setup({
48 workspace_count = 10,
49})
50
51-- -----------------------------------------------------
52-- SOURCE FILES
53-- -----------------------------------------------------
54require("source.monitors")
55require("source.environment_variables")
56require("source.permissions")
57require("source.appearance")
58require("source.input")
59require("source.keybinds")
60require("source.window_rules")
61
62-- aurora's settings app: overrides on top of everything above (~/.config/aurora/hypr.lua, generated, not in the repo).
63-- Missing or broken file = the defaults from the files above.
64local ok, overrides = pcall(dofile, HOME .. "/.config/aurora/hypr.lua")
65if ok and type(overrides) == "table" then hl.config(overrides) end