diff options
| author | Ja.KooLit <85185940+JaKooLit@users.noreply.github.com> | 2024-09-14 23:11:18 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-14 23:11:18 +0900 |
| commit | f5f8bd520161d6e11e2f0cd2e4291d7c09f2fe9d (patch) | |
| tree | df47914810780d547649f6199f2eda9f69fa89ab /config/ags | |
| parent | e099788a2743502fd960ddebfb294f275d7e603e (diff) | |
| parent | be1a509ab0d637206b295b3d20e478aa033497dc (diff) | |
Merge pull request #436 from JaKooLit/development
Development to Main
Diffstat (limited to 'config/ags')
| -rw-r--r-- | config/ags/variables.js | 4 |
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 |
