Move 1pw to an optional install since we need to install the chrome extension anyway as well as login
This commit is contained in:
Executable
+34
@@ -0,0 +1,34 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# omarchy:summary=Install 1Password and its Chromium extension.
|
||||||
|
# omarchy:requires-sudo=true
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
EXTENSION_ID="aeblfdkhhhdcdjpifhhbdiojplfjncoa"
|
||||||
|
EXTENSION_DIR="/usr/share/chromium/extensions"
|
||||||
|
EXTENSION_FILE="$EXTENSION_DIR/$EXTENSION_ID.json"
|
||||||
|
WEBSTORE_UPDATE_URL="https://clients2.google.com/service/update2/crx"
|
||||||
|
|
||||||
|
install_chromium_extension() {
|
||||||
|
if omarchy-cmd-missing chromium; then
|
||||||
|
echo "Chromium is not installed; skipping 1Password Chromium extension."
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
|
||||||
|
sudo mkdir -p "$EXTENSION_DIR"
|
||||||
|
printf '{ "external_update_url": "%s" }\n' "$WEBSTORE_UPDATE_URL" | sudo tee "$EXTENSION_FILE" >/dev/null
|
||||||
|
sudo chmod 644 "$EXTENSION_FILE"
|
||||||
|
}
|
||||||
|
|
||||||
|
echo "Installing 1Password..."
|
||||||
|
omarchy-pkg-add 1password 1password-cli
|
||||||
|
|
||||||
|
echo "Installing 1Password extension for Chromium..."
|
||||||
|
install_chromium_extension
|
||||||
|
|
||||||
|
echo "Opening 1Password..."
|
||||||
|
uwsm-app -- 1password >/dev/null 2>&1 &
|
||||||
|
|
||||||
|
echo ""
|
||||||
|
echo "1Password has been installed. Restart Chromium to load the browser extension."
|
||||||
@@ -23,6 +23,7 @@ if gum confirm "Are you sure you want to remove all preinstalled web apps, TUI w
|
|||||||
typora \
|
typora \
|
||||||
spotify \
|
spotify \
|
||||||
libreoffice-fresh \
|
libreoffice-fresh \
|
||||||
|
1password \
|
||||||
1password-beta \
|
1password-beta \
|
||||||
1password-cli \
|
1password-cli \
|
||||||
xournalpp \
|
xournalpp \
|
||||||
|
|||||||
Executable
+13
@@ -0,0 +1,13 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# omarchy:summary=Remove 1Password and its Chromium extension.
|
||||||
|
# omarchy:requires-sudo=true
|
||||||
|
|
||||||
|
EXTENSION_ID="aeblfdkhhhdcdjpifhhbdiojplfjncoa"
|
||||||
|
EXTENSION_FILE="/usr/share/chromium/extensions/$EXTENSION_ID.json"
|
||||||
|
|
||||||
|
sudo rm -f "$EXTENSION_FILE"
|
||||||
|
omarchy-pkg-drop 1password 1password-cli
|
||||||
|
|
||||||
|
echo ""
|
||||||
|
echo "1Password has been removed."
|
||||||
@@ -170,6 +170,7 @@
|
|||||||
"install.browser.brave-origin": {"icon":"","label":"Brave Origin","action":"omarchy-launch-floating-terminal-with-presentation 'omarchy-install-browser brave-origin'"},
|
"install.browser.brave-origin": {"icon":"","label":"Brave Origin","action":"omarchy-launch-floating-terminal-with-presentation 'omarchy-install-browser brave-origin'"},
|
||||||
"install.browser.firefox": {"icon":"","label":"Firefox","action":"omarchy-launch-floating-terminal-with-presentation 'omarchy-install-browser firefox'"},
|
"install.browser.firefox": {"icon":"","label":"Firefox","action":"omarchy-launch-floating-terminal-with-presentation 'omarchy-install-browser firefox'"},
|
||||||
"install.browser.zen": {"icon":"","label":"Zen","action":"omarchy-launch-floating-terminal-with-presentation 'omarchy-install-browser zen'"},
|
"install.browser.zen": {"icon":"","label":"Zen","action":"omarchy-launch-floating-terminal-with-presentation 'omarchy-install-browser zen'"},
|
||||||
|
"install.service.1password": {"icon":"","label":"1Password","keywords":"password","action":"omarchy-launch-floating-terminal-with-presentation omarchy-install-service-1password"},
|
||||||
"install.service.dropbox": {"icon":"","label":"Dropbox","action":"omarchy-launch-floating-terminal-with-presentation omarchy-install-dropbox"},
|
"install.service.dropbox": {"icon":"","label":"Dropbox","action":"omarchy-launch-floating-terminal-with-presentation omarchy-install-dropbox"},
|
||||||
"install.service.tailscale": {"icon":"","label":"Tailscale","keywords":"vpn","action":"omarchy-launch-floating-terminal-with-presentation omarchy-install-tailscale"},
|
"install.service.tailscale": {"icon":"","label":"Tailscale","keywords":"vpn","action":"omarchy-launch-floating-terminal-with-presentation omarchy-install-tailscale"},
|
||||||
"install.service.nordvpn": {"icon":"","label":"NordVPN [AUR]","keywords":"vpn","action":"omarchy-launch-floating-terminal-with-presentation omarchy-install-nordvpn"},
|
"install.service.nordvpn": {"icon":"","label":"NordVPN [AUR]","keywords":"vpn","action":"omarchy-launch-floating-terminal-with-presentation omarchy-install-nordvpn"},
|
||||||
|
|||||||
@@ -1,8 +1,6 @@
|
|||||||
# Omarchy core package list installed via install/packaging/base.sh
|
# Omarchy core package list installed via install/packaging/base.sh
|
||||||
# This file is also used by the ISO builder when determining needs
|
# This file is also used by the ISO builder when determining needs
|
||||||
|
|
||||||
1password
|
|
||||||
1password-cli
|
|
||||||
aether
|
aether
|
||||||
alsa-utils
|
alsa-utils
|
||||||
asdcontrol
|
asdcontrol
|
||||||
|
|||||||
Reference in New Issue
Block a user