Skip to content

Instantly share code, notes, and snippets.

@william-ml-leslie
Created December 31, 2016 06:12
Show Gist options
  • Save william-ml-leslie/7e8ebd8772514b97353e8ebd1f5b1093 to your computer and use it in GitHub Desktop.
Save william-ml-leslie/7e8ebd8772514b97353e8ebd1f5b1093 to your computer and use it in GitHub Desktop.
StumpWM configuration on the X1 Carbon
(load-module "battery-portable")
(setf *screen-mode-line-format* "%B [%n] %w")
;;(setf *screen-mode-line-format*
;; (list "[%n] %w | "
;; '(:eval (run-shell-command "date" t))))
(toggle-mode-line (current-screen) (current-head))
;; Caps -> Ctrl on machines that don't do it by default
;;(run-shell-command "xmodmap -e 'clear Lock' -e 'add control = Caps_Lock'")
;; THIS IS INSANE - On the X1, remap the capslock keycode instead.
(run-shell-command "xmodmap -e 'keycode 66 = Control_L' -e 'clear Lock' -e 'add control = Control_L'")
;;(run-shell-command "xinput set-prop 10 145 0")
;; Disable the trackpad on the X1
(run-shell-command "xinput disable 11")
;; Set a WMName under stump so Java6 applications work
(run-shell-command "wmname LG3D")
;; Start the emacs daemon for easy access
;;(run-shell-command "emacs --daemon")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment