ignore ranger history,bookmarks,tagged
[~bandali/configs] / sxhkd / .local / bin / em
CommitLineData
cf0de5fe
AB
1#!/bin/sh
2
3if [ -z "$DISPLAY" ]; then
4 IS_GRAPHICAL=true
5else
6 IS_GRAPHICAL=$(emacs --batch -Q --eval='(if (fboundp '"'"'tool-bar-mode) (message "true") (message "false"))' 2>&1)
7fi
8
9if $IS_GRAPHICAL; then
10 emacsclient -a "" -nc "$@"
11else
12 emacsclient -a "" -t "$@"
13fi