aboutsummaryrefslogtreecommitdiffstats
path: root/config/hypr/lua
diff options
context:
space:
mode:
authorDon Williams <don.e.williams@gmail.com>2026-07-22 14:20:00 -0400
committerPinapelz <yukais@pinapelz.com>2026-08-29 21:40:35 -0700
commit5ad8ad3b4c94d50c5020beb7552282d3376ee2d0 (patch)
tree0e110faa454397bc8f851b22415afb0a716b41a6 /config/hypr/lua
parent3c7a84396dc18c315d328c40c392aa27387afd46 (diff)
Fixed hyprland-gui module not found
Signed-off-by: Don Williams <don.e.williams@gmail.com> On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: config/hypr/lua/user_overrides.lua modified: scripts/lib_copy.sh modified: scripts/lib_detect.sh
Diffstat (limited to 'config/hypr/lua')
-rw-r--r--config/hypr/lua/user_overrides.lua31
1 files changed, 20 insertions, 11 deletions
diff --git a/config/hypr/lua/user_overrides.lua b/config/hypr/lua/user_overrides.lua
index 149962d5..8117012a 100644
--- a/config/hypr/lua/user_overrides.lua
+++ b/config/hypr/lua/user_overrides.lua
@@ -21,24 +21,33 @@ local function has_kvantum_qml_module()
pipe:close()
return output:match("%S") ~= nil
end
+local function has_hyprland_qml_style_module()
+ local cmd = "find /usr/lib /usr/lib64 /usr/share -type d -path '*/qml/*/org/hyprland/style' -print -quit 2>/dev/null"
+ local pipe = io.popen(cmd, "r")
+ if not pipe then
+ return false
+ end
+ local output = pipe:read("*a") or ""
+ pipe:close()
+ return output:match("%S") ~= nil
+end
local function apply_qt_style_fallbacks()
if not hl or not hl.env then
return
end
- if has_kvantum_qml_module() then
- return
- end
-
- local style_override = (os.getenv("QT_STYLE_OVERRIDE") or ""):lower()
- if style_override == "kvantum" or style_override == "kvantum-dark" then
- hl.env("QT_STYLE_OVERRIDE", "Fusion")
+ if not has_kvantum_qml_module() then
+ local style_override = (os.getenv("QT_STYLE_OVERRIDE") or ""):lower()
+ if style_override == "kvantum" or style_override == "kvantum-dark" then
+ hl.env("QT_STYLE_OVERRIDE", "Fusion")
+ end
end
-
- local quick_controls = (os.getenv("QT_QUICK_CONTROLS_STYLE") or ""):lower()
- if quick_controls == "kvantum" then
- hl.env("QT_QUICK_CONTROLS_STYLE", "Basic")
+ if not has_hyprland_qml_style_module() then
+ local quick_controls = (os.getenv("QT_QUICK_CONTROLS_STYLE") or ""):lower()
+ if quick_controls == "" or quick_controls == "org.hyprland.style" then
+ hl.env("QT_QUICK_CONTROLS_STYLE", "Basic")
+ end
end
end
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage