From b64a2711b2bcfb4c2bbe811f22c6942919c1665e Mon Sep 17 00:00:00 2001 From: Scott Wallace Date: Sat, 2 Mar 2019 12:34:23 +0000 Subject: [PATCH] Configure Albert --- .../linux_desktop/files/albert/albert.conf | 68 +++++++++++++++++++ .../engines.json | 38 +++++++++++ .../roles/linux_desktop/tasks/config.yaml | 8 +++ 3 files changed, 114 insertions(+) create mode 100644 .ansible/roles/linux_desktop/files/albert/albert.conf create mode 100644 .ansible/roles/linux_desktop/files/albert/org.albert.extension.websearch/engines.json diff --git a/.ansible/roles/linux_desktop/files/albert/albert.conf b/.ansible/roles/linux_desktop/files/albert/albert.conf new file mode 100644 index 0000000..0aa6ddb --- /dev/null +++ b/.ansible/roles/linux_desktop/files/albert/albert.conf @@ -0,0 +1,68 @@ +[General] +frontendId=org.albert.frontend.widgetboxmodel +hotkey=Alt+Space +showTray=false +telemetry=false + +[org.albert.extension.applications] +enabled=true +fuzzy=true +use_generic_name=true +use_keywords=true +use_non_localized_name=true + +[org.albert.extension.calculator] +enabled=true + +[org.albert.extension.externalextensions] +enabled=true + +[org.albert.extension.files] +enabled=true +follow_symlinks=true +fuzzy=true +indexhidden=true + +[org.albert.extension.hashgenerator] +enabled=false + +[org.albert.extension.mpris] +enabled=false + +[org.albert.extension.python] +enabled=true +enabled_modules=ip, locate, base_converter, units, genpw, pasteboard + +[org.albert.extension.ssh] +enabled=true + +[org.albert.extension.system] +enabled=false + +[org.albert.extension.terminal] +enabled=true + +[org.albert.extension.websearch] +enabled=true + +[org.albert.frontend.qmlboxmodel] +alwaysOnTop=true +clearOnHide=false +hideOnClose=false +hideOnFocusLoss=true +showCentered=true +stylePath=/usr/share/albert/org.albert.frontend.qmlboxmodel/styles/BoxModel/MainComponent.qml +windowPosition=@Point(609 357) + +[org.albert.frontend.widgetboxmodel] +alwaysOnTop=true +clearOnHide=false +displayIcons=true +displayScrollbar=false +displayShadow=true +hideOnClose=false +hideOnFocusLoss=true +itemCount=10 +showCentered=true +theme=Dark +windowPosition=@Point(664 651) diff --git a/.ansible/roles/linux_desktop/files/albert/org.albert.extension.websearch/engines.json b/.ansible/roles/linux_desktop/files/albert/org.albert.extension.websearch/engines.json new file mode 100644 index 0000000..2d7a308 --- /dev/null +++ b/.ansible/roles/linux_desktop/files/albert/org.albert.extension.websearch/engines.json @@ -0,0 +1,38 @@ +[ + { + "iconPath": ":duckduckgo", + "name": "DuckDuckGo", + "trigger": "dd ", + "url": "https://duckduckgo.com/?q=%s" + }, + { + "iconPath": "/home/scott/.config/albert/org.albert.extension.websearch/{a94b5f49-76c2-43fb-9ddf-50c62224ff9c}.png", + "name": "Wikipedia", + "trigger": "wiki", + "url": "https://en.wikipedia.org/w/index.php?search=%s" + }, + { + "iconPath": ":google", + "name": "Google", + "trigger": "gg ", + "url": "https://www.google.com/search?q=%s" + }, + { + "iconPath": ":youtube", + "name": "Youtube", + "trigger": "yt ", + "url": "https://www.youtube.com/results?search_query=%s" + }, + { + "iconPath": "/home/scott/.config/albert/org.albert.extension.websearch/{68017180-2a33-4978-b8e3-08ec64bcc65e}.", + "name": "Amazon", + "trigger": "ama ", + "url": "http://www.amazon.co.uk/s/?field-keywords=%s" + }, + { + "iconPath": ":github", + "name": "GitHub", + "trigger": "gh ", + "url": "https://github.com/search?utf8=✓&q=%s" + } +] diff --git a/.ansible/roles/linux_desktop/tasks/config.yaml b/.ansible/roles/linux_desktop/tasks/config.yaml index b9d0688..197f530 100644 --- a/.ansible/roles/linux_desktop/tasks/config.yaml +++ b/.ansible/roles/linux_desktop/tasks/config.yaml @@ -51,3 +51,11 @@ name: 'wg-quick@wg0' enabled: true state: started + +- name: 'Abert' + tags: + - config + - albert + copy: + dest: '~/.config' + src: files/albert