# Env = LIBGL\_ALWAYS\_SOFTWARE, 1 in lua config

**URL:** <http://forum.hypr.land/t/env-libgl-always-software-1-in-lua-config/2175>\
**Category:** Bugs / FRs / Support\
**Tags:** question, help, hyprland, config\
**Created:** [October 27, 2026, 6:54pm UTC](http://forum.hypr.land/t/env-libgl-always-software-1-in-lua-config/2175 "2026-10-27T18:54:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kapple](http://forum.hypr.land/letter_avatar_proxy/v4/letter/k/57b2e6/32.png) [@kapple](http://forum.hypr.land/u/kapple)\
**Post date:** [October 27, 2026, 6:54pm UTC](http://forum.hypr.land/t/env-libgl-always-software-1-in-lua-config/2175/1 "2026-10-27T18:54:05Z")

</div>

env = LIBGL\_ALWAYS\_SOFTWARE, 1

I used to use this line in my hyprland.conf file so that hyprland would work properly in my vm but now that the hyprland config switched to lua, I cannot get this working.

I tried this:

hl.env(“LIBGL\_ALWAYS\_SOFTWARE”, “1”)

but it doesn’t work.

I also know I can just force software in /etc/environment and that works but for the sake of learning how things are done in lua, I was wondering if someone can help me get this line working directly in the hyprland.lua config file.

---

<div class="post-metadata">

**Author:** ![ajgringo619](http://forum.hypr.land/user_avatar/forum.hypr.land/ajgringo619/32/1240_2.png) [@ajgringo619](http://forum.hypr.land/u/ajgringo619)\
**Post date:** [October 27, 2026, 7:15pm UTC](http://forum.hypr.land/t/env-libgl-always-software-1-in-lua-config/2175/2 "2026-10-27T19:15:44Z")

</div>

> [@kapple](#):
>
> LIBGL\_ALWAYS\_SOFTWARE

_Maybe_ changing it to `hl.env(“LIBGL_ALWAYS_SOFTWARE”, true)` will work, although I’ve never had to do that with any other boolean env.

---

<div class="post-metadata">

**Author:** ![kapple](http://forum.hypr.land/letter_avatar_proxy/v4/letter/k/57b2e6/32.png) [@kapple](http://forum.hypr.land/u/kapple)\
**Post date:** [October 27, 2026, 10:39pm UTC](http://forum.hypr.land/t/env-libgl-always-software-1-in-lua-config/2175/3 "2026-10-27T22:39:08Z")

</div>

I had a typo in my lua code, instead of hl.env I was writing h1.env

That was causing the issue, the following code works now

hl.env(“LIBGL\_ALWAYS\_SOFTWARE”, “1”)
