diff options
| author | Pinapelz <yukais@pinapelz.com> | 2026-03-30 21:58:55 -0700 |
|---|---|---|
| committer | Pinapelz <yukais@pinapelz.com> | 2026-03-30 21:58:55 -0700 |
| commit | 4acf85db722ebe7e019e7427436083b3b9f4959e (patch) | |
| tree | 6d5b416ad605730a6d573d1b4178c7676dc8a015 /config/hypr/scripts/rofi-emacs-keybinds | |
| parent | 89e10cd0c0331fc727889d41e34309db1fb5735f (diff) | |
| parent | e4b9059d346e6a6dbd6216cd1fb5e41085bb6e7b (diff) | |
Merge remote-tracking branch 'upstream/main'
Diffstat (limited to 'config/hypr/scripts/rofi-emacs-keybinds')
| -rwxr-xr-x | config/hypr/scripts/rofi-emacs-keybinds | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/config/hypr/scripts/rofi-emacs-keybinds b/config/hypr/scripts/rofi-emacs-keybinds new file mode 100755 index 00000000..bee1a54d --- /dev/null +++ b/config/hypr/scripts/rofi-emacs-keybinds @@ -0,0 +1,13 @@ +#!/usr/bin/env bash +set -u +set -o pipefail + +ROFI_CONFIG="${HOME}/.config/rofi/config-emacs-keybinds.rasi" +CACHE_FILE="${HOME}/.cache/rofi-emacs-keybinds.txt" + +if [[ ! -s "${CACHE_FILE}" ]]; then + notify-send "Rofi Emacs Keybinds" "Keybind cache missing. In Emacs, run: M-x rofi-emacs-keybinds-refresh" + exit 1 +fi + +rofi -dmenu -i -p "Emacs Keybinds" -config "${ROFI_CONFIG}" < "${CACHE_FILE}" |
