mirror of
https://github.com/ksyasuda/dotfiles.git
synced 2026-02-04 06:36:35 -08:00
Compare commits
2 Commits
da97c974b9
...
63e6fad216
| Author | SHA1 | Date | |
|---|---|---|---|
|
63e6fad216
|
|||
|
b435e0d92c
|
@@ -151,4 +151,5 @@ application/xml=zen.desktop
|
||||
application/pdf=zen.desktop
|
||||
text/html=zen.desktop
|
||||
text/vnd.trolltech.linguist=zen.desktop
|
||||
x-scheme-handler/nxm=com.nexusmods.app.desktop
|
||||
x-scheme-handler/nxm=modorganizer2-nxm-handler.desktop
|
||||
x-scheme-handler/discord-1361252452329848892=discord-1361252452329848892.desktop
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
CHOICES=(
|
||||
"1. Screenshot (Lapis)"
|
||||
"1. Screenshot (Kiku)"
|
||||
"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)")
|
||||
"1. Screenshot (Kiku)")
|
||||
PICTURE_FIELD=Picture "$HOME/projects/scripts/screenshot-anki.sh"
|
||||
;;
|
||||
"2. Screenshot (Luna)")
|
||||
@@ -21,4 +21,3 @@ case "$CHOICE" in
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
|
||||
12
.config/rofi/scripts/rofi-launch-texthooker-steam.sh
Executable file
12
.config/rofi/scripts/rofi-launch-texthooker-steam.sh
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
PROGRAM="$HOME/S/lutris/wineprefix/drive_c/users/steamuser/luna-translator/LunaTranslator.exe"
|
||||
SELECTION="$(protontricks -l | tail -n +2 | rofi -dmenu -theme ~/.config/rofi/launchers/type-2/style-2.rasi -theme-str 'listview {lines: 12; columns: 1;}' -i -p "Select game" | awk '{print $NF}' | tr -d '()')"
|
||||
|
||||
if [[ -z "$SELECTION" ]]; then
|
||||
printf "%s\n" "No game selected"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
printf "%s\n" "Launching $PROGRAM for game ID: $SELECTION"
|
||||
protontricks-launch --appid "$SELECTION" "$PROGRAM" &>/dev/null &
|
||||
@@ -28,6 +28,7 @@ setopt HIST_IGNORE_SPACE # don’t record commands that start with a space
|
||||
FPATH="$HOME/.docker/completions:$FPATH"
|
||||
|
||||
[[ "$TERM_PROGRAM" == "vscode" ]] && . "$(code --locate-shell-integration-path zsh)"
|
||||
eval "$(fnm env --use-on-cd --shell zsh)"
|
||||
|
||||
bindkey -v
|
||||
# zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}'
|
||||
|
||||
@@ -31,7 +31,7 @@ parse_opts() {
|
||||
*)
|
||||
echo "Usage: $0 [-c] [-n DECK_NAME]" >&2
|
||||
echo " -c: Capture current window" >&2
|
||||
echo " -n: Specify note name (e.g., Lapis)" >&2
|
||||
echo " -n: Specify note name (e.g., Kiku)" >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
Reference in New Issue
Block a user