mirror of
https://github.com/ksyasuda/dotfiles.git
synced 2025-12-08 10:48:01 -08:00
add rofi anki script
This commit is contained in:
24
.config/rofi/scripts/rofi-anki-script.sh
Executable file
24
.config/rofi/scripts/rofi-anki-script.sh
Executable file
@@ -0,0 +1,24 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
CHOICES=(
|
||||
"1. Screenshot (Lapis)"
|
||||
"2. Screenshot (Luna)"
|
||||
"3. Record Audio"
|
||||
)
|
||||
CHOICE=$(printf "%s\n" "${CHOICES[@]}" | rofi -dmenu -i -theme "$HOME/.config/rofi/launchers/type-2/style-2.rasi" -theme-str 'window {width: 25%;} listview {columns: 1; lines: 5;}' -p "Select an option")
|
||||
|
||||
case "$CHOICE" in
|
||||
"1. Screenshot (Lapis)")
|
||||
PICTURE_FIELD=Picture "$HOME/projects/scripts/screenshot-anki.sh"
|
||||
;;
|
||||
"2. Screenshot (Luna)")
|
||||
PICTURE_FIELD=screenshot "$HOME/projects/scripts/screenshot-anki.sh"
|
||||
;;
|
||||
"3. Record Audio")
|
||||
"$HOME/projects/scripts/record-audio.sh"
|
||||
;;
|
||||
*)
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
Reference in New Issue
Block a user