fix: some startup fixes

This commit is contained in:
2026-06-18 11:58:24 +02:00
parent 50e62a256d
commit 2ca734a5c9
2 changed files with 64 additions and 64 deletions
+23 -22
View File
@@ -1,27 +1,28 @@
return function(is_laptop) return function(is_laptop)
hl.env("QT_QPA_PLATFORM", "wayland") hl.env("QT_QPA_PLATFORM", "wayland")
hl.env("QT_QPA_PLATFORM_THEME", "qt6ct") hl.env("QT_QPA_PLATFORM_THEME", "qt6ct")
hl.on("hyprland.start", function() hl.on("hyprland.start", function()
-- Portal fixes -- Portal fixes
hl.exec_cmd("~/.config/hypr/xdg-portal-hyprland") hl.exec_cmd("~/.config/hypr/xdg-portal-hyprland")
-- Environment setup -- Environment setup
hl.exec_cmd( hl.exec_cmd(
"dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP XAUTHORITY DISPLAY" "dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP XAUTHORITY DISPLAY"
) )
hl.exec_cmd("systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP") hl.exec_cmd("systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP")
hl.exec_cmd("systemctl --user start hyprpolkitagent") hl.exec_cmd("systemctl --user start hyprpolkitagent")
-- Start bar and utilities -- Start bar and utilities
hl.exec_cmd("hypridle") hl.exec_cmd("hypridle")
hl.exec_cmd("nextcloud --background") hl.exec_cmd("nextcloud --background")
hl.exec_cmd("dms run") hl.exec_cmd("dms run")
hl.exec_cmd("wl-paste --watch cliphist store") hl.exec_cmd("wl-paste --watch cliphist store")
if is_laptop then
hl.exec_cmd("hyprctl setcursor oreo_spark_blue_cursors 36") if is_laptop then
else hl.exec_cmd("hyprctl setcursor oreo_spark_blue_cursors 36")
hl.exec_cmd("hyprctl setcursor oreo_spark_blue_cursors 24") else
end hl.exec_cmd("hyprctl setcursor oreo_spark_blue_cursors 24")
end) end
end)
end end
+41 -42
View File
@@ -1,44 +1,43 @@
return function(is_laptop, is_docked) return function(is_laptop, is_docked)
if is_laptop then if is_laptop then
hl.monitor({ hl.monitor({
output = "", output = "",
mode = "preferred", mode = "preferred",
position = "auto", position = "auto",
scale = 1, scale = 1,
}) })
if is_docked then if is_docked then
hl.monitor({ hl.monitor({
output = "eDP-1", output = "eDP-1",
disabled = true, disabled = true,
}) })
else hl.monitor({
hl.monitor({ output = "DP-1",
output = "eDP-1", mode = "1920x1080@144",
mode = "2880x1800@240", position = "0x0",
position = "0x0", scale = 1,
scale = 1.5, })
}) else
end hl.monitor({
elseif is_laptop and is_docked then output = "eDP-1",
hl.monitor({ mode = "2880x1800@240",
output = "DP-1", position = "0x0",
mode = "1920x1080@144", scale = 1.5,
position = "0x0", })
scale = 1, end
}) else
else hl.monitor({
hl.monitor({ output = "DP-1",
output = "DP-1", mode = "1920x1080@144",
mode = "1920x1080@144", position = "0x0",
position = "0x0", scale = 1,
scale = 1, vrr = 2,
vrr = 2 })
}) hl.monitor({
hl.monitor({ output = "DP-2",
output = "DP-2", mode = "1920x1080@75",
mode = "1920x1080@75", position = "1920x0",
position = "1920x0", scale = 1,
scale = 1, })
}) end
end
end end