https://github.com/gfarrell/rofi-khard
https://github.com/gfarrell/rofi-khard
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/gfarrell/rofi-khard
- Owner: gfarrell
- License: mit
- Created: 2021-01-31T00:43:06.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-01-31T00:45:13.000Z (over 5 years ago)
- Last Synced: 2025-01-17T07:09:16.653Z (over 1 year ago)
- Language: Python
- Size: 1.95 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Simple khard integration for rofi
This provides a really simple modus for [rofi][rofi] to integrate
contacts from [khard][khard]. The motivation for this is that, coming
from macOS I was spoilt by the contacts integration [Alfred][alfred]
had. I'm forever looking up phone numbers and email addresses and just
wanted them to be easily accessible (and copyable).
## TODO
- [x] Basic script with emails and phone numbers
- [ ] Package the modus so it is installable
- [ ] Create a PKGBUILD so it is `pacman` installable
- [ ] Make it possible to include addresses as well as emails and phones
## Requirements
* `X11` and `xclip` for copying to the clipboard
* `python3` and `pyyaml` to interpret the `khard` output
* `zsh` for the main script
* `khard`, obviously, otherwise there's not much point
## Installation
TODO
## Usage
When the modus first runs it provides a list of all contact names (as
per the `formatted_name`). When you hit `enter` on one of your contacts,
it will show phone numbers and email addresses (using the labels in your
contacts). If you hit `enter` on one of those then it will copy to the
clipboard using `xclip`.
rofi -modi contacts:/path/to/rofi-khard/rofi_khard.sh -show contacts
[rofi]: https://github.com/davatorium/rofi
[khard]: https://github.com/scheibler/khard/
[alfred]: https://www.alfredapp.com/