properly kill emacs instead of using kill
This commit is contained in:
parent
186f9af806
commit
3aa5120c24
@ -25,7 +25,7 @@ case "$(printf "🔒 lock\n🚪 leave $WM\n♻️ renew $WM\n🐻 hibernate\n
|
|||||||
' fcitx5') fcitx5 ;;
|
' fcitx5') fcitx5 ;;
|
||||||
' kill fcitx5') killall fcitx5 ;;
|
' kill fcitx5') killall fcitx5 ;;
|
||||||
' start emacs daemon') emacs --daemon && notify-send 'emacs daemon started' ;;
|
' start emacs daemon') emacs --daemon && notify-send 'emacs daemon started' ;;
|
||||||
' kill emacs daemon') killall emacs && notify-send 'emacs daemon killed' ;;
|
' kill emacs daemon') emacsclient -e '(kill-emacs)' && notify-send 'emacs daemon killed' ;;
|
||||||
' restart emacs daemon') killall emacs && notify-send 'emacs daemon killed' ; emacs --daemon && notify-send 'emacs daemon started' ;;
|
' restart emacs daemon') emacsclient -e '(kill-emacs)' && notify-send 'emacs daemon killed' ; emacs --daemon && notify-send 'emacs daemon started' ;;
|
||||||
*) exit 1 ;;
|
*) exit 1 ;;
|
||||||
esac
|
esac
|
||||||
|
Loading…
Reference in New Issue
Block a user