aboutsummaryrefslogtreecommitdiffstats
path: root/config/ags
diff options
context:
space:
mode:
authorJa.KooLit <85185940+JaKooLit@users.noreply.github.com>2024-05-24 13:52:30 +0900
committerGitHub <noreply@github.com>2024-05-24 13:52:30 +0900
commit5acf937b57fd0c25baf26cae45e0f15862ab7d52 (patch)
treedbcae5ec4d6c9199dcb482f313bef2bf461edb4f /config/ags
parent912f18dd534ea7244b7e453e65a84344b34b15b0 (diff)
parent06d66be192eeb6f844d7069d05ffc34653352791 (diff)
Merge pull request #300 from JaKooLit/development
Pre-release stage: Development to Main
Diffstat (limited to 'config/ags')
-rw-r--r--config/ags/modules/.configuration/user_options.js3
-rw-r--r--config/ags/variables.js4
2 files changed, 5 insertions, 2 deletions
diff --git a/config/ags/modules/.configuration/user_options.js b/config/ags/modules/.configuration/user_options.js
index ba8c5ab6..db194395 100644
--- a/config/ags/modules/.configuration/user_options.js
+++ b/config/ags/modules/.configuration/user_options.js
@@ -75,8 +75,11 @@ let configOptions = {
'Minecraft* 1.20.1': "minecraft",
'gnome-tweaks': "org.gnome.tweaks",
'pavucontrol-qt': "pavucontrol",
+ 'thunderbird-esr': "thunderbird",
'wps': "wps-office2019-kprometheus",
'wpsoffice': "wps-office2019-kprometheus",
+ 'firefox-esr': "firefox",
+ 'soffice' : "libreoffice",
'': "image-missing",
}
},
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
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage