Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jubnzv/anki-tray
Anki add-on: system tray minimization; with i3wm support.
https://github.com/jubnzv/anki-tray
anki anki-addon i3wm tray
Last synced: 4 months ago
JSON representation
Anki add-on: system tray minimization; with i3wm support.
- Host: GitHub
- URL: https://github.com/jubnzv/anki-tray
- Owner: jubnzv
- Created: 2019-12-16T19:06:21.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-01-14T11:48:11.000Z (about 1 year ago)
- Last Synced: 2024-10-05T23:16:08.746Z (4 months ago)
- Topics: anki, anki-addon, i3wm, tray
- Language: Python
- Homepage: https://ankiweb.net/shared/info/1072672680
- Size: 67.4 KB
- Stars: 6
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# AnkiTray
Yet another add-on that adds an icon to the system tray and allows minimizing [Anki](https://apps.ankiweb.net/) to the tray.
## Installation
To download this add-on, please copy and paste the following code into Anki 2.1: `1072672680`.
Alternatively, you can install it from the local directory:
```
git clone https://github.com/jubnzv/anki-tray
cd anki-tray && zip -r ../anki-tray.ankiaddon *
```Then navigate in Anki menu `Tools -> Add-ons -> Install from file...` and choose the created archive.
## Usage
This add-on is suitable for use with tiling window managers. It allows you to quickly add cards using a keyboard shortcut. The following screencast demonstrates `anki_tray` with i3wm:
![](./img/demo.gif)
For this setup you should save [util/raise-anki.py](./util/raise-anki.py) and add the following lines in i3 configuration file:
```
# You will need to replace Title depending on your l10n
for_window [class="^Anki$" title="^Add$"] floating enable, mark anki_addbindsym $mod+Control+a exec $SCRIPTS_PATH/raise-anki.py && sleep 0.2 && i3-msg '[con_mark="anki_add"] move workspace current' && i3-msg '[con_mark="anki_add"] focus'
```