aboutsummaryrefslogtreecommitdiffstats
path: root/config/ags/modules/.configuration/user_options.js
diff options
context:
space:
mode:
authorKiran George <kirangeorge1995@gmail.com>2024-04-24 22:19:05 +0530
committerKiran George <kirangeorge1995@gmail.com>2024-05-04 11:00:00 +0530
commitdc9f0cd58454b4cb33a704b11e4cc8a7c6594e67 (patch)
tree02aff524a96c620f2f603dbb45f7017256981148 /config/ags/modules/.configuration/user_options.js
parent425df5f3a17a72ba41973dedf0673bd8dd607385 (diff)
Added ags overview widget
Updated search iscon for overview search result suggested action Removed excluded site from overview web search Updated calculator icon for overview Updated overview search action icon spacing Added initial pywal integration to overview search and updated seach icon
Diffstat (limited to 'config/ags/modules/.configuration/user_options.js')
-rw-r--r--config/ags/modules/.configuration/user_options.js121
1 files changed, 121 insertions, 0 deletions
diff --git a/config/ags/modules/.configuration/user_options.js b/config/ags/modules/.configuration/user_options.js
new file mode 100644
index 00000000..0c76a549
--- /dev/null
+++ b/config/ags/modules/.configuration/user_options.js
@@ -0,0 +1,121 @@
+
+import userOverrides from '../../user_options.js';
+
+// Defaults
+let configOptions = {
+ // General stuff
+ 'ai': {
+ 'defaultGPTProvider': "openai",
+ 'defaultTemperature': 0.9,
+ 'enhancements': true,
+ 'useHistory': true,
+ 'writingCursor': " ...", // Warning: Using weird characters can mess up Markdown rendering
+ },
+ 'animations': {
+ 'choreographyDelay': 35,
+ 'durationSmall': 110,
+ 'durationLarge': 180,
+ },
+ 'appearance': {
+ 'keyboardUseFlag': false, // Use flag emoji instead of abbreviation letters
+ },
+ 'apps': {
+ 'imageViewer': "loupe",
+ 'terminal': "foot", // This is only for shell actions
+ },
+ 'battery': {
+ 'low': 20,
+ 'critical': 10,
+ },
+ 'music': {
+ 'preferredPlayer': "plasma-browser-integration",
+ },
+ 'onScreenKeyboard': {
+ 'layout': "qwerty_full", // See modules/onscreenkeyboard/onscreenkeyboard.js for available layouts
+ },
+ 'overview': {
+ 'scale': 0.18, // Relative to screen size
+ 'numOfRows': 2,
+ 'numOfCols': 5,
+ 'wsNumScale': 0.09,
+ 'wsNumMarginScale': 0.07,
+ },
+ 'sidebar': {
+ 'imageColumns': 2,
+ 'imageBooruCount': 20,
+ 'imageAllowNsfw': false,
+ },
+ 'search': {
+ 'engineBaseUrl': "https://www.google.com/search?q=",
+ 'excludedSites': [], //add site to exclude from result. eg: "quora.com"
+ },
+ 'time': {
+ // See https://docs.gtk.org/glib/method.DateTime.format.html
+ // Here's the 12h format: "%I:%M%P"
+ // For seconds, add "%S" and set interval to 1000
+ 'format': "%H:%M",
+ 'interval': 5000,
+ 'dateFormatLong': "%A, %d/%m", // On bar
+ 'dateInterval': 5000,
+ 'dateFormat': "%d/%m", // On notif time
+ },
+ 'weather': {
+ 'city': "",
+ },
+ 'workspaces': {
+ 'shown': 10,
+ },
+ // Longer stuff
+ 'icons': {
+ substitutions: {
+ 'code-url-handler': "visual-studio-code",
+ 'Code': "visual-studio-code",
+ 'GitHub Desktop': "github-desktop",
+ 'Minecraft* 1.20.1': "minecraft",
+ 'gnome-tweaks': "org.gnome.tweaks",
+ 'pavucontrol-qt': "pavucontrol",
+ 'wps': "wps-office2019-kprometheus",
+ 'wpsoffice': "wps-office2019-kprometheus",
+ '': "image-missing",
+ }
+ },
+ 'keybinds': {
+ // Format: Mod1+Mod2+key. CaSe SeNsItIvE!
+ // Modifiers: Shift Ctrl Alt Hyper Meta
+ // See https://docs.gtk.org/gdk3/index.html#constants for the other keys (they are listed as KEY_key)
+ 'overview': {
+ 'altMoveLeft': "Ctrl+b",
+ 'altMoveRight': "Ctrl+f",
+ 'deleteToEnd': "Ctrl+k",
+ },
+ 'sidebar': {
+ 'apis': {
+ 'nextTab': "Page_Down",
+ 'prevTab': "Page_Up",
+ },
+ 'options': { // Right sidebar
+ 'nextTab': "Page_Down",
+ 'prevTab': "Page_Up",
+ },
+ 'pin': "Ctrl+p",
+ 'cycleTab': "Ctrl+Tab",
+ 'nextTab': "Ctrl+Page_Down",
+ 'prevTab': "Ctrl+Page_Up",
+ },
+ },
+}
+
+// Override defaults with user's options
+function overrideConfigRecursive(userOverrides, configOptions = {}) {
+ for (const [key, value] of Object.entries(userOverrides)) {
+ if (typeof value === 'object') {
+ overrideConfigRecursive(value, configOptions[key]);
+ } else {
+ configOptions[key] = value;
+ }
+ }
+}
+overrideConfigRecursive(userOverrides, configOptions);
+
+globalThis['userOptions'] = configOptions;
+export default configOptions; \ No newline at end of file
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage