aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJa.KooLit <85185940+JaKooLit@users.noreply.github.com>2024-09-14 12:46:40 +0900
committerGitHub <noreply@github.com>2024-09-14 12:46:40 +0900
commit2e0d127796ab94fe58657b3050d6da3609e81e38 (patch)
tree6842291948c32583ad32396e9b1bc1346043bb5f
parenta7bd1440a1a00c4884f507afd3cc2bcc848d38bd (diff)
parent24083523f4841f6b0b1357bd09a2bf34945293b0 (diff)
Merge pull request #434 from threehymns/AGS-scale
fix: Make AGS respect monitor scale
-rw-r--r--config/ags/variables.js4
1 files 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
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage