diff --git a/.config/ags/modules/overview/searchbuttons.js b/.config/ags/modules/overview/searchbuttons.js index 8fb40a23a..e90957d14 100644 --- a/.config/ags/modules/overview/searchbuttons.js +++ b/.config/ags/modules/overview/searchbuttons.js @@ -153,11 +153,11 @@ export const CustomCommandButton = ({ text = '' }) => searchItem({ export const SearchButton = ({ text = '' }) => searchItem({ materialIconName: 'travel_explore', - name: 'Search Google', + name: 'Search the web', actionName: 'Go', content: `${text}`, onActivate: () => { App.closeWindow('overview'); - execAsync(['bash', '-c', `xdg-open 'https://www.google.com/search?q=${text} ${['', ...userOptions.search.excludedSites].join(' -site:')}' &`]).catch(print); + execAsync(['bash', '-c', `xdg-open '${userOptions.search.engineBaseUrl}${text} ${['', ...userOptions.search.excludedSites].join(' -site:')}' &`]).catch(print); }, }); \ No newline at end of file diff --git a/.config/ags/modules/overview/windowcontent.js b/.config/ags/modules/overview/windowcontent.js index 179739a7e..606c7c4eb 100644 --- a/.config/ags/modules/overview/windowcontent.js +++ b/.config/ags/modules/overview/windowcontent.js @@ -140,7 +140,7 @@ export const SearchAndWindows = () => { else { App.closeWindow('overview'); - execAsync(['bash', '-c', `xdg-open 'https://www.google.com/search?q=${text} ${['', ...userOptions.search.excludedSites].join(' -site:')}' &`]).catch(print); + execAsync(['bash', '-c', `xdg-open '${userOptions.search.engineBaseUrl}${text} ${['', ...userOptions.search.excludedSites].join(' -site:')}' &`]).catch(print); } }, onChange: (entry) => { // this is when you type diff --git a/.config/ags/user_options.js b/.config/ags/user_options.js index 68fed973e..943de4686 100644 --- a/.config/ags/user_options.js +++ b/.config/ags/user_options.js @@ -26,6 +26,7 @@ let userConfigOptions = { 'wsNumMarginScale': 0.07, }, 'search': { + 'engineBaseUrl': 'https://www.google.com/search?q=', 'excludedSites': ['quora.com'], }, 'weather': {