From 33e22565a0c33d37f7547f1863cd4d4dc95f5106 Mon Sep 17 00:00:00 2001 From: SqrtMinusOne Date: Sun, 13 Feb 2022 14:30:27 +0300 Subject: [PATCH] feat(emacs): ivy-pass > password-store-ivy --- .emacs.d/desktop.el | 6 ++-- .profile | 2 +- Desktop.org | 81 +++++++++++++++++++++++++++++---------------- Emacs.org | 2 +- 4 files changed, 57 insertions(+), 34 deletions(-) diff --git a/.emacs.d/desktop.el b/.emacs.d/desktop.el index d8fb637..f8b2cf4 100644 --- a/.emacs.d/desktop.el +++ b/.emacs.d/desktop.el @@ -297,8 +297,8 @@ DIR is either 'left or 'right." (setq counsel-linux-app-format-function #'my/counsel-linux-app-format-function) -(use-package ivy-pass - :straight (:host github :repo "SqrtMinusOne/ivy-pass") +(use-package password-store-ivy + :straight (:host github :repo "SqrtMinusOne/password-store-ivy") :after (exwm)) (defun my/exwm-quit () @@ -441,7 +441,7 @@ _d_: Discord (,(kbd "s-p") . counsel-linux-app) (,(kbd "s-P") . async-shell-command) (,(kbd "s-;") . my/exwm-apps-hydra/body) - (,(kbd "s--") . ivy-pass) + (,(kbd "s--") . password-store-ivy) (,(kbd "s-=") . ,(my/app-command "rofimoji")) (,(kbd "s-i") . ,(my/app-command "copyq menu")) diff --git a/.profile b/.profile index da8b355..3ab0f09 100644 --- a/.profile +++ b/.profile @@ -12,7 +12,7 @@ export LEDGER_FILE=~/Documents/org-mode/ledger/ledger.journal # Environment:3 ends here # [[file:Console.org::*Environment][Environment:4]] -if command -v termux-setup-storage; then +if command -v termux-setup-storage > /dev/null; then export IS_ANDROID=true [[ -f ~/.android_profile ]] && . ~/.android_profile fi diff --git a/Desktop.org b/Desktop.org index dea42ac..9750a69 100644 --- a/Desktop.org +++ b/Desktop.org @@ -30,19 +30,36 @@ References: - [[#colors-in-xresources][Colors in Xresources]] - [[#fonts][Fonts]] - [[#themes][Themes]] + - [[#mime][MIME]] - [[#device-specific-settings][Device-specific settings]] - [[#exwm][EXWM]] - - [[#xsession][Xsession]] - - [[#startup-apps][Startup apps]] - - [[#moving-windows][Moving windows]] - - [[#resizing-windows][Resizing windows]] - - [[#app-shortcuts][App shortcuts]] - - [[#move-workspace-to-another-monitor][Move workspace to another monitor]] - - [[#switch-to-the-opposite-monitor][Switch to the opposite monitor]] - - [[#switching-buffers][Switching buffers]] + - [[#startup--ui][Startup & UI]] + - [[#xsession][Xsession]] + - [[#startup-apps][Startup apps]] + - [[#pinentry][Pinentry]] + - [[#modeline][Modeline]] + - [[#windows][Windows]] + - [[#moving-windows][Moving windows]] + - [[#resizing-windows][Resizing windows]] + - [[#improving-splitting-windows][Improving splitting windows]] + - [[#perspectives][Perspectives]] + - [[#workspaces-and-multi-monitor-setup][Workspaces and multi-monitor setup]] + - [[#tracking-recently-used-workspaces][Tracking recently used workspaces]] + - [[#the-monitor-list][The monitor list]] + - [[#switch-to-another-monitor][Switch to another monitor]] + - [[#move-the-workspace-to-another-monitor][Move the workspace to another monitor]] + - [[#windmove-between-monitors][Windmove between monitors]] + - [[#completions][Completions]] + - [[#ivy-posframe][ivy-posframe]] + - [[#linux-app][Linux app]] + - [[#ivy-pass][ivy-pass]] - [[#keybindings][Keybindings]] - - [[#pinentry][Pinentry]] - - [[#modeline][Modeline]] + - [[#exwm-keybindings][EXWM keybindings]] + - [[#app-shortcuts][App shortcuts]] + - [[#locking-up][Locking up]] + - [[#fixes][Fixes]] + - [[#catch-and-report-all-errors-raised-when-invoking-command-hooks][Catch and report all errors raised when invoking command hooks]] + - [[#improve-floating-windows-behavior][Improve floating windows behavior]] - [[#exwm-config][EXWM config]] - [[#i3wm][i3wm]] - [[#general-settings][General settings]] @@ -66,28 +83,33 @@ References: - [[#keyboard-layout][Keyboard Layout]] - [[#autostart][Autostart]] - [[#polybar][Polybar]] - - [[#launching][Launching]] - [[#general-settings][General settings]] - [[#colors][Colors]] - - [[#bar-config][Bar config]] - - [[#modules][Modules]] - - [[#ipstack-vpn][ipstack-vpn]] - - [[#weather][weather]] - - [[#aw-afk][aw-afk]] - - [[#pomm][pomm]] - - [[#sun][sun]] - - [[#sep][SEP]] - - [[#tsep][TSEP]] - - [[#i3][i3]] - - [[#xkeyboard][xkeyboard]] - - [[#mpd][mpd]] + - [[#glyph-settings][Glyph settings]] + - [[#defining-modules][Defining modules]] + - [[#generating-glyphs][Generating glyphs]] + - [[#generating-set-of-modules][Generating set of modules]] + - [[#global-bar-config][Global bar config]] + - [[#launch-script][Launch script]] + - [[#individual-modules][Individual modules]] - [[#pulseaudio][pulseaudio]] + - [[#mpd][mpd]] - [[#cpu][cpu]] - [[#ram-memory][ram-memory]] - [[#swap-memory][swap-memory]] - [[#network][network]] - - [[#date][date]] + - [[#ipstack-vpn][ipstack-vpn]] + - [[#openvpn][openvpn]] + - [[#xkeyboard][xkeyboard]] - [[#battery][battery]] + - [[#weather][weather]] + - [[#sun][sun]] + - [[#aw-afk][aw-afk]] + - [[#date][date]] + - [[#pomm][pomm]] + - [[#sep][SEP]] + - [[#tsep][TSEP]] + - [[#i3][i3]] - [[#rofi][Rofi]] - [[#theme][Theme]] - [[#scripts][Scripts]] @@ -126,6 +148,7 @@ References: - [[#xmodmap][Xmodmap]] - [[#vpn][VPN]] - [[#davmail][Davmail]] + - [[#sqrt-data][sqrt-data]] - [[#shepherd-config][Shepherd config]] - [[#sync][Sync]] - [[#guix-settings][Guix settings]] @@ -789,12 +812,12 @@ Also, by default it tries to launch stuff with =gtk-launch=, which is in the =gt | Category | Guix dependency | |--------------+-----------------| | desktop-misc | gtk+:bin | -*** ivy-pass -[[https://github.com/SqrtMinusOne/ivy-pass][ivy-pass]] is another package of mine, inspired by [[https://github.com/carnager/rofi-pass][rofi-pass]]. +*** password-store-ivy +[[https://github.com/SqrtMinusOne/password-store-ivy][password-store-ivy]] is another package of mine, inspired by [[https://github.com/carnager/rofi-pass][rofi-pass]]. #+begin_src emacs-lisp -(use-package ivy-pass - :straight (:host github :repo "SqrtMinusOne/ivy-pass") +(use-package password-store-ivy + :straight (:host github :repo "SqrtMinusOne/password-store-ivy") :after (exwm)) #+end_src ** Keybindings @@ -890,7 +913,7 @@ And keybindings that are available in both =char-mode= and =line-mode=: (,(kbd "s-p") . counsel-linux-app) (,(kbd "s-P") . async-shell-command) (,(kbd "s-;") . my/exwm-apps-hydra/body) - (,(kbd "s--") . ivy-pass) + (,(kbd "s--") . password-store-ivy) (,(kbd "s-=") . ,(my/app-command "rofimoji")) (,(kbd "s-i") . ,(my/app-command "copyq menu")) diff --git a/Emacs.org b/Emacs.org index b01c19a..805937a 100644 --- a/Emacs.org +++ b/Emacs.org @@ -6275,7 +6275,7 @@ Finally, there is also an Emacs plugin for [[https://devdocs.io][devdocs.io]]. *** pass I use [[https://www.passwordstore.org/][pass]] as my password manager. Expectedly, there is Emacs frontend for it. -Although I use [[https://github.com/carnager/rofi-pass][this rofi frontend]] for actually inserting passwords. +This package is pretty good to manage the password database. I use [[https://github.com/SqrtMinusOne/password-store-ivy][password-store-ivy]] (another package of mine) to actually type passwords. [[https://github.com/carnager/rofi-pass][rofi-pass]] is another good option. #+begin_src emacs-lisp (use-package pass