dotfiles/.config/hypr/config/environment.lua

82 lines
2 KiB
Lua
Raw Normal View History

2026-08-04 11:15:48 +02:00
-----------------
---- PROGRAMS ---
-----------------
terminal = "foot"
fileManager = "nautilus"
menu = "rofi -show drun"
notificationManager = "swaync-client -t"
------------------
---- AUTOSTART ---
------------------
-- Autostart necessary processes (like notifications daemons, status bars, etc.)
hl.on("hyprland.start", function()
hl.exec_cmd("~/.config/hypr/scripts/autostart.sh")
-- Testing clipboard managers
hl.exec_cmd("wl-paste --type text --watch cliphist store") -- Stores only text data
hl.exec_cmd("wl-paste --type image --watch cliphist store") -- Stores only image data
-- SSH Agent
hl.exec_cmd("ssh-agent")
end)
--------------------
---- PERMISSIONS ---
--------------------
-- See https://wiki.hypr.land/Configuring/Advanced-and-Cool/Permissions/
-- Please note permission changes here require a Hyprland restart and are not applied on-the-fly
-- for security reasons
hl.config({
ecosystem = {
enforce_permissions = true,
},
})
------------------------------
---- ENVIRONMENT VARIABLES ---
------------------------------
-- See https://wiki.hyprland.org/Configuring/Environment-variables/
-- HyprCursor
hl.env("HYPRCURSOR_THEME", "VolantesCursors")
hl.env("XCURSOR_THEME", "VolantesCursors")
hl.env("XCURSOR_SIZE", 24)
hl.env("HYPRCURSOR_SIZE", 24)
-- XDG Desktop Portal
hl.env("XDG_SESSION_DESKTOP", "Hyprland")
hl.env("XDG_CURRENT_DESKTOP", "Hyprland")
-- Experimental
-- GTK
-- env = GTK_USE_PORTAL,1
-- env = GDK_SCALE,2 - Xwayland scale
-- Qt
-- env = QT_WAYLAND_DISABLE_WINDOWDECORATION,
-- Firefox
-- env = MOZ_ENABLE_WAYLAND,1
-- env = MOZ_USE_XINPUT2,1
-- WLRoots
-- env = WLR_NO_HARDWARE_CURSORS,1
-- env = WLR_RENDERER,vulkan
-- SDL
-- env = SDL_VIDEODRIVER,wayland
-- env = QT_QPA_PLATFORMTHEME,hyprqt6engine
hl.env("QT_QPA_PLATFORMTHEME", "qt6ct")
-- Nvidia
-- GBM backend
-- env = GBM_BACKEND,nvidia-drm
-- env = __GLX_VENDOR_LIBRARY_NAME,nvidia
-- Hardware acceleration
-- env = LIBVA_DRIVER_NAME,nvidia
-- env = NVD_BACKEND,direct