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