stumpwm and es changes

This commit is contained in:
Marcel Kapfer 2017-03-20 22:48:25 +01:00
parent 0b6ca9a6f2
commit afe124874e
2 changed files with 10 additions and 6 deletions

View file

@ -38,12 +38,11 @@
;; root keybindings ;; root keybindings
;;; browser ;;; browser
(define-key *root-map* (kbd "C-c") "exec google-chrome-unstable") (define-key *root-map* (kbd "C-c") "exec /opt/firefox/firefox")
;;; terminal ;;; terminal
(define-key *root-map* (kbd "c") "exec urxvt") (define-key *root-map* (kbd "c") "exec urxvt")
;;; es as emacs ;;; es as emacs
(define-key *root-map* (kbd "e") "exec es") (define-key *root-map* (kbd "e") "exec es")
@ -63,7 +62,7 @@
(run-shell-command "xrdb -merge ~/.Xresources") (run-shell-command "xrdb -merge ~/.Xresources")
;;; HiDPI stuff. ;;; HiDPI stuff.
;;; TODO: Only run if required ;;; TODO: Only run if required
(run-shell-command "xrdb -merge ~/.Xresources-hidpi") ;; (run-shell-command "xrdb -merge ~/.Xresources-hidpi")
;; dunst notify server ;; dunst notify server
(run-shell-command "dunst") (run-shell-command "dunst")
@ -73,11 +72,13 @@
;; message window font ;; message window font
(set-font "11Hermit") (set-font "11Hermit")
;;(setf *max-
;; set the mouse focus ;; set the mouse focus
(setf *mouse-focus-policy* :click) (setf *mouse-focus-policy* :click)
;; set DESKTOP_SESSION variable
(setf (getenv "DESKTOP_SESSION") "stumpwm")
;; define volume control keys ;; define volume control keys
(define-key *top-map* (kbd "XF86AudioLowerVolume") "exec amixer set Master 5%-") (define-key *top-map* (kbd "XF86AudioLowerVolume") "exec amixer set Master 5%-")
(define-key *top-map* (kbd "XF86AudioRaiseVolume") "exec amixer set Master 5%+") (define-key *top-map* (kbd "XF86AudioRaiseVolume") "exec amixer set Master 5%+")

7
es.sh
View file

@ -1,4 +1,7 @@
#!/bin/sh #!/bin/sh
stumpish 'eval (stumpwm::save-es-called-win)' > /dev/null if [ "$DESKTOP_SESSION" = "stumpwm" ]; then
emacsclient -c --alternate-editor=$ALTERNATE_EDITOR "$@" stumpish 'eval (stumpwm::save-es-called-win)' > /dev/null
fi
emacsclient -c --alternate-editor="$ALTERNATE_EDITOR" "$@"