aboutsummaryrefslogtreecommitdiffstats
path: root/config/hypr/scripts/rofi-emacs-keybinds
blob: 6617d3b0b51db55438d45f4620091e7f9d04ce77 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/env bash
set -u
set -o pipefail

ROFI_CONFIG="${XDG_CONFIG_HOME:-$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}"
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage