Compare commits

...
2 Commits
Author SHA1 Message Date
chris 480ef3b5f4 Let steam pick a size 2026-06-12 11:27:10 +01:00
chris b05099be72 Fix 2026-06-09 22:15:47 +01:00
3 changed files with 15 additions and 16 deletions
-1
View File
@@ -245,7 +245,6 @@ hl.window_rule({
hl.window_rule({ hl.window_rule({
name = "steam-app-size", name = "steam-app-size",
center = true, center = true,
size = { 1100, 700 },
match = { match = {
class = "steam", class = "steam",
title = "Steam", title = "Steam",
+1 -1
View File
@@ -4,7 +4,7 @@ hl.on("hyprland.start", function()
hl.exec_cmd("uwsm-app -- hyprsunset") hl.exec_cmd("uwsm-app -- hyprsunset")
hl.exec_cmd("uwsm-app -- fcitx5 --disable notificationitem") hl.exec_cmd("uwsm-app -- fcitx5 --disable notificationitem")
hl.exec_cmd("uwsm-app -- Enpass -minimize") hl.exec_cmd("uwsm-app -- Enpass -minimize")
hl.exec_cmd("uwsm-app -- Steam") hl.exec_cmd("uwsm-app -- steam")
hl.exec_cmd("nextcloud") hl.exec_cmd("nextcloud")
hl.exec_cmd("station-bg-random") hl.exec_cmd("station-bg-random")
hl.exec_cmd("/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1") hl.exec_cmd("/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1")
+14 -14
View File
@@ -87,17 +87,17 @@ hl.window_rule({
-- action = "workspace", -- action = "workspace",
-- }) -- })
for _, tablet in ipairs({ "wacom-intuos-pro-s-pen", "wacom-intuos-pro-s-(wl)-pen" }) do -- for _, tablet in ipairs({ "wacom-intuos-pro-s-pen", "wacom-intuos-pro-s-(wl)-pen" }) do
local monitor_id = "DP-1" -- local monitor_id = "DP-1"
local monitor = hl.get_monitor(monitor_id) -- local monitor = hl.get_monitor(monitor_id)
local ratio = monitor.width / monitor.height -- local ratio = monitor.width / monitor.height
local tablet_size = { width = 157.48, height = 98.425 } -- local tablet_size = { width = 157.48, height = 98.425 }
local new_tablet_height = tablet_size.width / ratio -- local new_tablet_height = tablet_size.width / ratio
--
hl.device({ -- hl.device({
name = tablet, -- name = tablet,
output = monitor_id, -- output = monitor_id,
active_area_size = { tablet_size.width, new_tablet_height }, -- active_area_size = { tablet_size.width, new_tablet_height },
active_area_position = { 0.0, (tablet_size.height - new_tablet_height) / 2 }, -- active_area_position = { 0.0, (tablet_size.height - new_tablet_height) / 2 },
}) -- })
end -- end