From 24083523f4841f6b0b1357bd09a2bf34945293b0 Mon Sep 17 00:00:00 2001 From: threehymns <70611435+threehymns@users.noreply.github.com> Date: Fri, 13 Sep 2024 16:43:15 -0400 Subject: fix: Make AGS respect monitor scale --- config/ags/variables.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/ags/variables.js b/config/ags/variables.js index 803b9157..645a5807 100644 --- a/config/ags/variables.js +++ b/config/ags/variables.js @@ -6,8 +6,8 @@ const { exec, execAsync } = Utils; Gtk.IconTheme.get_default().append_search_path(`${App.configDir}/assets/icons`); // Screen size -export const SCREEN_WIDTH = Number(exec(`bash -c "hyprctl monitors -j | jq '.[0].width'"`)); -export const SCREEN_HEIGHT = Number(exec(`bash -c "hyprctl monitors -j | jq '.[0].height'"`)); +export const SCREEN_WIDTH = Number(exec(`bash -c "hyprctl monitors -j | jq '.[0].width / .[0].scale'"`)); +export const SCREEN_HEIGHT = Number(exec(`bash -c "hyprctl monitors -j | jq '.[0].height / .[0].scale'"`)); // Mode switching export const currentShellMode = Variable('normal', {}) // normal, focus -- cgit v1.2.3