diff --git a/config/hypr/hyprland/execs.lua b/config/hypr/hyprland/execs.lua index a4d7208..8ef1346 100644 --- a/config/hypr/hyprland/execs.lua +++ b/config/hypr/hyprland/execs.lua @@ -1,27 +1,28 @@ return function(is_laptop) - hl.env("QT_QPA_PLATFORM", "wayland") - hl.env("QT_QPA_PLATFORM_THEME", "qt6ct") + hl.env("QT_QPA_PLATFORM", "wayland") + hl.env("QT_QPA_PLATFORM_THEME", "qt6ct") - hl.on("hyprland.start", function() - -- Portal fixes - hl.exec_cmd("~/.config/hypr/xdg-portal-hyprland") + hl.on("hyprland.start", function() + -- Portal fixes + hl.exec_cmd("~/.config/hypr/xdg-portal-hyprland") - -- Environment setup - hl.exec_cmd( - "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 start hyprpolkitagent") + -- Environment setup + hl.exec_cmd( + "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 start hyprpolkitagent") - -- Start bar and utilities - hl.exec_cmd("hypridle") - hl.exec_cmd("nextcloud --background") - hl.exec_cmd("dms run") - hl.exec_cmd("wl-paste --watch cliphist store") - if is_laptop then - hl.exec_cmd("hyprctl setcursor oreo_spark_blue_cursors 36") - else - hl.exec_cmd("hyprctl setcursor oreo_spark_blue_cursors 24") - end - end) + -- Start bar and utilities + hl.exec_cmd("hypridle") + hl.exec_cmd("nextcloud --background") + hl.exec_cmd("dms run") + hl.exec_cmd("wl-paste --watch cliphist store") + + if is_laptop then + hl.exec_cmd("hyprctl setcursor oreo_spark_blue_cursors 36") + else + hl.exec_cmd("hyprctl setcursor oreo_spark_blue_cursors 24") + end + end) end diff --git a/config/hypr/hyprland/monitors.lua b/config/hypr/hyprland/monitors.lua index b88e026..ee0253d 100644 --- a/config/hypr/hyprland/monitors.lua +++ b/config/hypr/hyprland/monitors.lua @@ -1,44 +1,43 @@ return function(is_laptop, is_docked) - if is_laptop then - hl.monitor({ - output = "", - mode = "preferred", - position = "auto", - scale = 1, - }) - if is_docked then - hl.monitor({ - output = "eDP-1", - disabled = true, - }) - else - hl.monitor({ - output = "eDP-1", - mode = "2880x1800@240", - position = "0x0", - scale = 1.5, - }) - end - elseif is_laptop and is_docked then - hl.monitor({ - output = "DP-1", - mode = "1920x1080@144", - position = "0x0", - scale = 1, - }) - else - hl.monitor({ - output = "DP-1", - mode = "1920x1080@144", - position = "0x0", - scale = 1, - vrr = 2 - }) - hl.monitor({ - output = "DP-2", - mode = "1920x1080@75", - position = "1920x0", - scale = 1, - }) - end + if is_laptop then + hl.monitor({ + output = "", + mode = "preferred", + position = "auto", + scale = 1, + }) + if is_docked then + hl.monitor({ + output = "eDP-1", + disabled = true, + }) + hl.monitor({ + output = "DP-1", + mode = "1920x1080@144", + position = "0x0", + scale = 1, + }) + else + hl.monitor({ + output = "eDP-1", + mode = "2880x1800@240", + position = "0x0", + scale = 1.5, + }) + end + else + hl.monitor({ + output = "DP-1", + mode = "1920x1080@144", + position = "0x0", + scale = 1, + vrr = 2, + }) + hl.monitor({ + output = "DP-2", + mode = "1920x1080@75", + position = "1920x0", + scale = 1, + }) + end end