The Complete Computer

Super-P runs commands

LifeTechEmacsArcology
emacs-lisp source: :tangle ~/nix/lisp/super-p.el :exports none
(provide 'cce/super-p)

Super-p to run commands without dumping output to a buffer. Super-Shift-P calls counsel-linux-app which will let me launch an application with an icon in my start menu, long desired.

#+beginsrc emacs-lisp :tangle ~/nix/lisp/super-p.el (add-to-list 'display-buffer-alist `(,(rx bos " *async command*") (display-buffer-no-window)))

(defun background-shell-command (command) (interactive (list (read-shell-command "Run: $ "))) (async-shell-command command (generate-new-buffer " *async command*")))

; (exwm-input-set-key (kbd "s-p") #'background-shell-command) (global-set-key (kbd "s-p") #'background-shell-command) #+ENDSRC