From f130f7e92715d76633e6739ca02d67aadd49cc3b Mon Sep 17 00:00:00 2001 From: krolyxon Date: Thu, 13 Aug 2026 21:12:42 +0530 Subject: Hyprland: switch to .lua files since .conf is getting deprecated For the most part everything has been ported to .lua smoothly, the screen rotation keybind doesn't work for now, i'll fix that later. But everything else seems to be working fine. Have gotten rid of split-monitor-workspaces for now to see if i really need it in my current workflow, if need occurs, install this: https://github.com/zjeffer/split-monitor-workspaces --- .config/hypr/source/environment_variables.lua | 34 +++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .config/hypr/source/environment_variables.lua (limited to '.config/hypr/source/environment_variables.lua') diff --git a/.config/hypr/source/environment_variables.lua b/.config/hypr/source/environment_variables.lua new file mode 100644 index 0000000..4335859 --- /dev/null +++ b/.config/hypr/source/environment_variables.lua @@ -0,0 +1,34 @@ +-- source/environment_variables.lua + +-------------------------------------------------- +-- Environment Variables +-------------------------------------------------- +local envs = { + HYPRSHOT_DIR = "/home/krolyxon/pix/ss/", + XCURSOR_SIZE = "24", + HYPRCURSOR_SIZE = "24", + + XDG_CURRENT_DESKTOP = "Hyprland", + XDG_SESSION_TYPE = "wayland", + XDG_SESSION_DESKTOP = "Hyprland", + + GDK_BACKEND = "wayland,x11,*", + QT_QPA_PLATFORM = "wayland;xcb", + SDL_VIDEODRIVER = "Wayland", + CLUTTER_BACKEND = "wayland", +} + +for k, v in pairs(envs) do + hl.env(k, v) +end + +-------------------------------------------------- +-- NVIDIA (uncomment if needed) +-------------------------------------------------- + +-- hl.env("__NV_PRIME_RENDER_OFFLOAD", "1") +-- hl.env("__GLX_VENDOR_LIBRARY_NAME", "nvidia") +-- hl.env("__VK_LAYER_NV_optimus", "NVIDIA_only") +-- hl.env("GBM_BACKEND", "nvidia-drm") +-- hl.env("WLR_NO_HARDWARE_CURSORS", "1") +-- hl.env("LIBVA_DRIVER_NAME", "nvidia") -- cgit v1.2.3