Skip to content

Commit

Permalink
Merge pull request #434 from threehymns/AGS-scale
Browse files Browse the repository at this point in the history
fix: Make AGS respect monitor scale
  • Loading branch information
JaKooLit authored Sep 14, 2024
2 parents a7bd144 + 2408352 commit 2e0d127
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/ags/variables.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2e0d127

Please sign in to comment.