2012-06-17 23:06:56 +02:00
|
|
|
;; -*- mode: sawfish; eval: (git-auto-commit-mode 1); -*-
|
2012-06-19 09:31:34 +02:00
|
|
|
(define oni:extended-keymap (make-keymap))
|
|
|
|
(define oni:window-management-keymap (make-keymap))
|
2012-06-20 09:29:30 +02:00
|
|
|
(define oni:window-packing-keymap (make-keymap))
|
2012-06-20 09:36:52 +02:00
|
|
|
(define oni:window-growing-keymap (make-keymap))
|
|
|
|
(define oni:window-shrinking-keymap (make-keymap))
|
2012-06-20 10:30:37 +02:00
|
|
|
(define oni:window-yanking-keymap (make-keymap))
|
2012-06-19 09:31:34 +02:00
|
|
|
|
2012-06-17 23:06:56 +02:00
|
|
|
(setq user-apps-menu
|
|
|
|
'(("Emacs" (system "emacsclient -c &"))
|
|
|
|
("Terminal" (system "urxvt &"))))
|
|
|
|
|
2012-06-20 09:29:30 +02:00
|
|
|
(bind-keys oni:window-packing-keymap
|
|
|
|
"p" 'pack-window-up
|
|
|
|
"n" 'pack-window-down
|
|
|
|
"b" 'pack-window-left
|
|
|
|
"f" 'pack-window-right)
|
|
|
|
|
2012-06-20 09:36:52 +02:00
|
|
|
(bind-keys oni:window-growing-keymap
|
|
|
|
"p" 'grow-window-up
|
|
|
|
"n" 'grow-window-down
|
|
|
|
"b" 'grow-window-left
|
|
|
|
"f" 'grow-window-right)
|
|
|
|
|
|
|
|
(bind-keys oni:window-shrinking-keymap
|
|
|
|
"p" 'shrink-window-up
|
|
|
|
"n" 'shrink-window-down
|
|
|
|
"b" 'shrink-window-left
|
|
|
|
"f" 'shrink-window-right)
|
|
|
|
|
2012-06-20 10:30:37 +02:00
|
|
|
(bind-keys oni:window-yanking-keymap
|
|
|
|
"p" 'yank-window-up
|
|
|
|
"n" 'yank-window-down
|
|
|
|
"b" 'yank-window-left
|
|
|
|
"f" 'yank-window-right)
|
|
|
|
|
2012-06-19 09:35:02 +02:00
|
|
|
(bind-keys oni:window-management-keymap
|
2012-06-20 09:29:30 +02:00
|
|
|
"M" 'maximize-window
|
2012-06-20 09:36:52 +02:00
|
|
|
"p" oni:window-packing-keymap
|
|
|
|
"g" oni:window-growing-keymap
|
2012-06-20 10:30:37 +02:00
|
|
|
"s" oni:window-shrinking-keymap
|
|
|
|
"y" oni:window-yanking-keymap)
|
2012-06-19 09:31:34 +02:00
|
|
|
|
|
|
|
(bind-keys oni:extended-keymap
|
2012-06-19 09:35:02 +02:00
|
|
|
"w" oni:window-management-keymap)
|
2012-06-19 09:31:34 +02:00
|
|
|
|
2012-06-19 09:35:02 +02:00
|
|
|
;; (ungrab-keymap global-keymap)
|
2012-06-17 23:06:56 +02:00
|
|
|
(bind-keys global-keymap
|
|
|
|
"C-M-l" '(run-shell-command "i3lock -c \"#000000\"")
|
|
|
|
"Super-e" '(run-shell-command (getenv "EDITOR"))
|
|
|
|
"Super-w" '(run-shell-command (getenv "BROWSER"))
|
|
|
|
"Super-c" '(run-shell-command "urxvt")
|
2012-06-19 09:31:34 +02:00
|
|
|
"Super-TAB" 'cycle-windows
|
2012-06-20 10:43:06 +02:00
|
|
|
"Super-x" oni:extended-keymap
|
|
|
|
"Menu" 'popup-root-menu)
|
2012-06-19 09:35:02 +02:00
|
|
|
;; (grab-keymap global-keymap)
|