From e13521500eaebc66d656bc10252adec4a9f3ed58 Mon Sep 17 00:00:00 2001 From: Benjamin Palko Date: Wed, 20 May 2026 11:16:54 -0400 Subject: [PATCH] migrate base --- hypr/hyprland.lua | 110 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 110 insertions(+) create mode 100644 hypr/hyprland.lua diff --git a/hypr/hyprland.lua b/hypr/hyprland.lua new file mode 100644 index 0000000..23ef2e4 --- /dev/null +++ b/hypr/hyprland.lua @@ -0,0 +1,110 @@ +local M = require("colors") + +-- monitors https://wiki.hypr.land/Configuring/Basics/Monitors/ +hl.monitor({ + output = "DP-1", + mode = "2560x1440@144", + position = "auto", + scale = "auto", +}) + +hl.monitor({ + output = "eDP-1", + mode = "1920x1080@60", + position = "auto", + scale = 1.20, +}) + +-- environment +hl.env("XDG_SESSION_TYPE", "wayland") +hl.env("QT_QPA_PLATFORM", "wayland") + +hl.env("LIBVA_DRIVER_NAME", "nvidia") +hl.env("__GLX_VENDOR_LIBRARY_NAME", "nvidia") +hl.env("NVD_BACKEND", "direct") +hl.env("GBM_BACKEND", "nvidia-drm") +hl.env("__GL_VRR_ALLOWED", "1") + +hl.env("ELECTRON_OZONE_PLATFORM_HINT", "auto") + +hl.env("GTK_THEME", "WhiteSur-Dark") +hl.env("ICON_THEME", "WhiteSur-Dark") +hl.env("COLOR_SCHEME", "prefer-dark") + +hl.env("XCURSOR_PATH", "/usr/share/icons/:$XDG_DATA_HOME/icons") +hl.env("XCURSOR_THEME", "default") +hl.env("XCURSOR_SIZE", 24) +hl.env("HYPRCURSOR_THEME", "Volantes Cursors") +hl.env("HYPRCURSOR_SIZE", 24) + +hl.env("FONT_NAME", "JetBrainsMono Nerd Font 24") +hl.env("DOCUMENT_FONT_NAME", "Cantarell 24") +hl.env("MONOSPACE_FONT_NAME", "JetBrainsMono Nerd Font 24") +hl.env("FONT_ANTIALIASING", "rgba") +hl.env("FONT_HINTING", "full") + +-- bindings + +-- input https://wiki.hypr.land/Configuring/Basics/Variables/#input +-- hl.input({ +-- kb_layout = "us", +-- follow_mouse = 1, +-- sensitivity = 0, -- -1.0 - 1.0, 0 means no modification. +-- }) + +-- hl.input.touchpad({ +-- natural_scroll = "no", +-- }) + +-- general https://wiki.hypr.land/Configuring/Basics/Variables/#general +-- hl.general({ +-- gaps_in = 10, +-- gaps_out = 10, +-- border_size = 3, +-- layout = "dwindle", +-- allow_tearing = true, +-- }) + +-- layout https://wiki.hypr.land/Configuring/Layouts/Dwindle-Layout/ +hl.config({ + dwindle = { + preserve_split = true, + }, +}) + +-- animations https://wiki.hypr.land/Configuring/Advanced-and-Cool/Animations/ + +-- colour +-- hl.general.col.active_border = { colors = { color4, color13 }, angle = 45 } +-- hl.general.col.inactive_border = { colors = { color0 } } + +-- config https://wiki.hypr.land/Configuring/Basics/Variables +hl.config({ + general = { + col = { + active_border = { colors = { M.color4, M.color13 }, angle = 45 }, + inactive_border = { colors = { M.color0 } }, + }, + }, + decoration = { + rounding = 6, + blur = { + enabled = true, + size = 6, + passes = 1, + ignore_opacity = true, + }, + shadow = { + enabled = true, + range = 4, + render_power = 3, + color = "#1a1a1aee", + }, + }, + misc = { + force_default_wallpaper = 0, + }, + cursor = { + no_hardware_cursors = true, + }, +})