From 53b9c82cc6f76cbfd960e5779e41cae939168bd6 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Wed, 16 Sep 2020 18:17:40 +0100 Subject: +dmenu script for Emacs and eserver launching --- Scripts/.local/scripts/eselect | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 Scripts/.local/scripts/eselect (limited to 'Scripts') diff --git a/Scripts/.local/scripts/eselect b/Scripts/.local/scripts/eselect new file mode 100755 index 0000000..8eabef8 --- /dev/null +++ b/Scripts/.local/scripts/eselect @@ -0,0 +1,13 @@ +#!/bin/bash + +case "$(printf "new\nstop\nrestart" | dmenu -p "eserver: ")" in + "restart") + eserver restart; + notify-send "Restarted eserver";; + "stop") + eserver stop; + notify-send "Halted eserver";; + "new") + notify-send "Launching Emacs"; + eserver --create-frame -a=emacs;; +esac -- cgit v1.2.3-13-gbd6f