From 9f226b54be2e926c8957937259c1ae292d0199aa Mon Sep 17 00:00:00 2001 From: SqrtMinusOne Date: Wed, 22 Sep 2021 11:53:46 +0300 Subject: [PATCH] feat(desktop): rofi-pass --- .config/guix/manifests/desktop.scm | 2 ++ .config/i3/config | 3 ++- Desktop.org | 21 ++++++++++++++++++--- 3 files changed, 22 insertions(+), 4 deletions(-) diff --git a/.config/guix/manifests/desktop.scm b/.config/guix/manifests/desktop.scm index 164c6f1..5b4c7c3 100644 --- a/.config/guix/manifests/desktop.scm +++ b/.config/guix/manifests/desktop.scm @@ -33,6 +33,8 @@ "libnotify" "dunst" "flameshot" + "xset" + "rofi-pass" "rofi" "sunwait" "dateutils" diff --git a/.config/i3/config b/.config/i3/config index 66d0470..e054749 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -283,6 +283,7 @@ bindsym $mod+m mode "move" focus floating # [[file:../../Desktop.org::*Integration with rofi][Integration with rofi:1]] bindsym $mod+d exec "rofi -modi 'drun,run' -show drun" bindsym $mod+b exec --no-startup-id rofi-buku-mine +bindsym $mod+minus exec rofi-pass; mode default bindsym $mod+apostrophe mode "rofi" @@ -290,7 +291,7 @@ mode "rofi" { bindsym d exec "rofi -modi 'drun,run' -show drun" bindsym m exec rofi-man; mode default bindsym b exec rofi-buku-mine; mode default - bindsym k exec rofi-keepassxc -d ~/MEGAsync/Passwords.kdbx; mode default + bindsym k exec rofi-pass; mode default bindsym Escape mode "default" } # Integration with rofi:1 ends here diff --git a/Desktop.org b/Desktop.org index 32dacf5..b42a33b 100644 --- a/Desktop.org +++ b/Desktop.org @@ -520,7 +520,7 @@ bindsym $mod+Shift+g mode "outer gaps" ** Move & resize windows A more or less standard set of keybindings to move & resize floating windows. -Just be careful to always make a way to return from these new modes, otherwise, you'd end up in a rather precarious position. +Just be careful to always make a way to return from these new modes, otherwise you'd end up in a rather precarious situation. #+begin_src conf-space # resize window (you can also use the mouse for that) mode "resize" { @@ -600,6 +600,7 @@ Keybindings to launch [[https://github.com/davatorium/rofi][rofi]]. For more det #+begin_src conf-space bindsym $mod+d exec "rofi -modi 'drun,run' -show drun" bindsym $mod+b exec --no-startup-id rofi-buku-mine +bindsym $mod+minus exec rofi-pass; mode default bindsym $mod+apostrophe mode "rofi" @@ -607,7 +608,7 @@ mode "rofi" { bindsym d exec "rofi -modi 'drun,run' -show drun" bindsym m exec rofi-man; mode default bindsym b exec rofi-buku-mine; mode default - bindsym k exec rofi-keepassxc -d ~/MEGAsync/Passwords.kdbx; mode default + bindsym k exec rofi-pass; mode default bindsym Escape mode "default" } #+end_src @@ -1538,6 +1539,20 @@ if [[ ! -z $SELECTED ]]; then man -Tpdf $SELECTED | zathura - fi #+end_src +*** pass +| Guix dependency | +|-----------------| +| rofi-pass | +| xset | + +A nice [[https://github.com/carnager/rofi-pass][pass frontend for Rofi]], which is even packaged for Guix. + +#+begin_src bash :tangle ~/.config/rofi-pass/config +USERNAME_field='username' +EDITOR=vim +default_autotype='username :tab pass' +clip=both +#+end_src * Flameshot | Guix dependency | |-----------------| @@ -1631,7 +1646,7 @@ References: # Show how many messages are currently hidden (because of geometry). indicate_hidden = yes - # Shrink window if it's smaller than the width. Will be ignored if + # Shrink window if its smaller than the width. Will be ignored if # width is 0. shrink = no