stumpwm and es changes
This commit is contained in:
parent
0b6ca9a6f2
commit
afe124874e
2 changed files with 10 additions and 6 deletions
|
@ -38,12 +38,11 @@
|
|||
;; root keybindings
|
||||
|
||||
;;; browser
|
||||
(define-key *root-map* (kbd "C-c") "exec google-chrome-unstable")
|
||||
(define-key *root-map* (kbd "C-c") "exec /opt/firefox/firefox")
|
||||
|
||||
;;; terminal
|
||||
(define-key *root-map* (kbd "c") "exec urxvt")
|
||||
|
||||
|
||||
;;; es as emacs
|
||||
(define-key *root-map* (kbd "e") "exec es")
|
||||
|
||||
|
@ -63,7 +62,7 @@
|
|||
(run-shell-command "xrdb -merge ~/.Xresources")
|
||||
;;; HiDPI stuff.
|
||||
;;; TODO: Only run if required
|
||||
(run-shell-command "xrdb -merge ~/.Xresources-hidpi")
|
||||
;; (run-shell-command "xrdb -merge ~/.Xresources-hidpi")
|
||||
|
||||
;; dunst notify server
|
||||
(run-shell-command "dunst")
|
||||
|
@ -73,11 +72,13 @@
|
|||
|
||||
;; message window font
|
||||
(set-font "11Hermit")
|
||||
;;(setf *max-
|
||||
|
||||
;; set the mouse focus
|
||||
(setf *mouse-focus-policy* :click)
|
||||
|
||||
;; set DESKTOP_SESSION variable
|
||||
(setf (getenv "DESKTOP_SESSION") "stumpwm")
|
||||
|
||||
;; define volume control keys
|
||||
(define-key *top-map* (kbd "XF86AudioLowerVolume") "exec amixer set Master 5%-")
|
||||
(define-key *top-map* (kbd "XF86AudioRaiseVolume") "exec amixer set Master 5%+")
|
||||
|
|
5
es.sh
5
es.sh
|
@ -1,4 +1,7 @@
|
|||
#!/bin/sh
|
||||
|
||||
if [ "$DESKTOP_SESSION" = "stumpwm" ]; then
|
||||
stumpish 'eval (stumpwm::save-es-called-win)' > /dev/null
|
||||
emacsclient -c --alternate-editor=$ALTERNATE_EDITOR "$@"
|
||||
fi
|
||||
|
||||
emacsclient -c --alternate-editor="$ALTERNATE_EDITOR" "$@"
|
||||
|
|
Loading…
Reference in a new issue