Skip to content

Commit

Permalink
feat(packages): add proton pass
Browse files Browse the repository at this point in the history
  • Loading branch information
spywhere committed Jan 12, 2024
1 parent 384733b commit f6850f8
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/protonmail.sh → packages/proton-mail.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ then
exit 1
fi

has_app 'ProtonMail'
has_app 'Proton Mail'

SUPPORT_DIR="$HOME/$DOTFILES/supports/protonmail"

use_nativefier 'ProtonMail' 'https://mail.proton.me' --conceal --background-color '#1C1B23' --icon "$SUPPORT_DIR/icon.icns" --inject "$SUPPORT_DIR/inject.css" --inject "$SUPPORT_DIR/inject.js" --counter --title-bar-style hidden --disable-context-menu --darwin-dark-mode-support
use_nativefier 'Proton Mail' 'https://mail.proton.me' --conceal --background-color '#1C1B23' --icon "$SUPPORT_DIR/icon.icns" --inject "$SUPPORT_DIR/inject.css" --inject "$SUPPORT_DIR/inject.js" --counter --title-bar-style hidden --disable-context-menu --darwin-dark-mode-support
# use_pake 'https://mail.proton.me' --name ProtonMail --icon "$SUPPORT_DIR/icon.icns" --inject "$SUPPORT_DIR/inject.css" --transparent --safe-domain proton.me
18 changes: 18 additions & 0 deletions packages/proton-pass.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/sh

set -e

if
! (command -v force_print >/dev/null 2>&1) ||
! (force_print 3 a b >/dev/null 2>&1) ||
test "$(force_print 3 a b)" != "a b";
then
printf "Please run this script through \"install.sh\" instead"
exit 1
fi

has_app 'Proton Pass'

SUPPORT_DIR="$HOME/$DOTFILES/supports/protonpass"

use_nativefier 'Proton Pass' 'https://pass.proton.me' --fast-quit --conceal --background-color '#1C1B23' --icon "$SUPPORT_DIR/icon.icns" --inject "$SUPPORT_DIR/inject.css" --title-bar-style hidden --disable-context-menu --darwin-dark-mode-support
Binary file added supports/protonpass/icon.icns
Binary file not shown.
3 changes: 3 additions & 0 deletions supports/protonpass/inject.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
div.logo-container {
justify-content: center;
}

0 comments on commit f6850f8

Please sign in to comment.