feat(desktop): rofi-pass

This commit is contained in:
Pavel Korytov 2021-09-22 11:53:46 +03:00
parent 2dfa789d64
commit 9f226b54be
3 changed files with 22 additions and 4 deletions

View file

@ -33,6 +33,8 @@
"libnotify"
"dunst"
"flameshot"
"xset"
"rofi-pass"
"rofi"
"sunwait"
"dateutils"

View file

@ -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

View file

@ -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