aboutsummaryrefslogtreecommitdiff
path: root/Scripts/.local/scripts/eselect
blob: 8eabef89334040e7913357b936616f28a36042c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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