From f60e66cfdf237aeb6cb2c33045e61c5e90f37509 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sun, 20 Jul 2025 21:51:46 -0500 Subject: [PATCH] Move Dropbox to a setup script --- bin/omarchy | 3 ++- bin/omarchy-setup-dropbox | 8 ++++++++ install/xtras.sh | 3 --- 3 files changed, 10 insertions(+), 4 deletions(-) create mode 100755 bin/omarchy-setup-dropbox diff --git a/bin/omarchy b/bin/omarchy index 1f62ebb..ec03e2e 100755 --- a/bin/omarchy +++ b/bin/omarchy @@ -105,8 +105,9 @@ remove_theme_prompt() { setup_menu() { show_ascii_art - local menu=("Add fingerprint sensor" "Remove fingerprint sensor" "Add Fido2 device" "Remove Fido2 device" "Back") + local menu=("Dropbox" "Add fingerprint sensor" "Remove fingerprint sensor" "Add Fido2 device" "Remove Fido2 device" "Back") local commands=( + "omarchy-setup-dropbox" "omarchy-setup-fingerprint" "omarchy-setup-fingerprint --remove" "omarchy-setup-fido2" diff --git a/bin/omarchy-setup-dropbox b/bin/omarchy-setup-dropbox new file mode 100755 index 0000000..2c4e692 --- /dev/null +++ b/bin/omarchy-setup-dropbox @@ -0,0 +1,8 @@ +#!/bin/bash + +echo "Installing all dependencies..." +yay -S --noconfirm --needed \ + dropbox dropbox-cli libappindicator-gtk3 python-gpgme nautilus-dropbox + +echo "Starting Dropbox and asking for identification..." +uwsm app -- dropbox start -i &>/dev/null & diff --git a/install/xtras.sh b/install/xtras.sh index cc4f136..36c88e9 100644 --- a/install/xtras.sh +++ b/install/xtras.sh @@ -12,9 +12,6 @@ if [ -z "$OMARCHY_BARE" ]; then echo -e "\e[31mFailed to install $pkg. Continuing without!\e[0m" done - yay -S --noconfirm --needed dropbox libappindicator-gtk3 python-gpgme nautilus-dropbox || - echo -e "\e[31mFailed to install Dropbox. Continuing without!\e[0m" - yay -S --noconfirm --needed 1password-beta 1password-cli || echo -e "\e[31mFailed to install 1password. Continuing without!\e[0m" fi