aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2020-09-16 18:17:40 +0100
committerAryadev Chavali <aryadev@aryadevchavali.com>2020-09-16 18:17:40 +0100
commit53b9c82cc6f76cbfd960e5779e41cae939168bd6 (patch)
tree199042529ec0fa46e4e63187166dfcb5f95f3a65
parent7d2fd018bd05c5f732408bbfd4752e47b5c927c4 (diff)
downloaddotfiles-53b9c82cc6f76cbfd960e5779e41cae939168bd6.tar.gz
dotfiles-53b9c82cc6f76cbfd960e5779e41cae939168bd6.tar.bz2
dotfiles-53b9c82cc6f76cbfd960e5779e41cae939168bd6.zip
+dmenu script for Emacs and eserver launching
-rw-r--r--SXHkD/.config/sxhkd/sxhkdrc19
-rwxr-xr-xScripts/.local/scripts/eselect13
2 files changed, 18 insertions, 14 deletions
diff --git a/SXHkD/.config/sxhkd/sxhkdrc b/SXHkD/.config/sxhkd/sxhkdrc
index 00d0314..8e3235b 100644
--- a/SXHkD/.config/sxhkd/sxhkdrc
+++ b/SXHkD/.config/sxhkd/sxhkdrc
@@ -8,11 +8,11 @@ super + Escape
super + shift + Escape
notify-send "Reloading xprofile"; \
- sh .xprofile;
+ sh .xprofile;
super + Return
notify-send "Launching terminal"; \
- $TERMINAL
+ $TERMINAL
super + shift + Return
notify-send "Launching Dev Terminal"; \
@@ -22,23 +22,14 @@ super + a
dmenu_run
super + e
- $HOME/.emacs_anywhere/bin/run
+ $HOME/.emacs_anywhere/bin/run
super + s
notify-send "Launching qutebrowser"; \
qutebrowser
-super + w; w
- notify-send "Launching Emacs"; \
- emacsclient -c -s MAIN -a=emacs;
-
-hyper + w; s
- notify-send "(Re)starting emacs server"; \
- eserver restart;
-
-hyper + w; d
- notify-send "Launching Dired"; \
- emacsclient -c -s MAIN -a=emacs --eval '(dired "~")';
+super + w
+ $HOME/.local/scripts/eselect;
super + ctrl + l
$HOME/.local/scripts/lock
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