Browse Source

Merge pull request #293 from SherLock707/development

Swapped out xrandr to hyprctl monitors in ags overview
pull/296/head
Ja.KooLit 2 years ago committed by GitHub
parent
commit
388eb72772
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      config/ags/variables.js

4
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 "xrandr --current | grep '*' | uniq | awk '{print $1}' | cut -d 'x' -f1 | head -1" | awk '{print $1}'`));
export const SCREEN_HEIGHT = Number(exec(`bash -c "xrandr --current | grep '*' | uniq | awk '{print $1}' | cut -d 'x' -f2 | head -1" | awk '{print $1}'`));
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'"`));
// Mode switching
export const currentShellMode = Variable('normal', {}) // normal, focus

Loading…
Cancel
Save