summaryrefslogtreecommitdiffstats
path: root/.sawfish/rc
blob: 80b971bf56e5e7a9974f6e8a0b3b5a7cde52a61b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
;; -*- mode: sawfish; eval: (git-auto-commit-mode 1); -*-
(define oni:extended-keymap (make-keymap))
(define oni:window-management-keymap (make-keymap))

(setq user-apps-menu
      '(("Emacs" (system "emacsclient -c &"))
        ("Terminal" (system "urxvt &"))))

(bind-keys window-management-keymap
           "M" 'maximize-window)

(bind-keys oni:extended-keymap
           "w" 'oni:window-management-keymap)

(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")
           "Super-TAB" 'cycle-windows
           "Super-x" 'oni:extended-keymap)