diff options
| author | Ja.KooLit <85185940+JaKooLit@users.noreply.github.com> | 2024-05-22 00:32:26 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-22 00:32:26 +0900 |
| commit | 388eb7277229bc6f9acf91b189f8a5ec23f13494 (patch) | |
| tree | 46ad75607b926cee32752da667eb5db634ab5532 /config | |
| parent | a8146419132991d2d7ee0b94ce01771fc83cdffa (diff) | |
| parent | 8f210ea75511af9fd019905fee6bdfd0c75010d2 (diff) | |
Merge pull request #293 from SherLock707/development
Swapped out xrandr to hyprctl monitors in ags overview
Diffstat (limited to 'config')
| -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 ec4aedec..803b9157 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 "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 |
