Line | |
---|
1 | (in-package :stumpwm)
|
---|
2 |
|
---|
3 | (setq *startup-message* nil)
|
---|
4 | (setq *startup-mode-line* t)
|
---|
5 |
|
---|
6 | (set-module-dir "~/stumpwm/contrib")
|
---|
7 |
|
---|
8 | ;; Modeline Battery
|
---|
9 | (load-module "battery-portable")
|
---|
10 | (load-module "cpu")
|
---|
11 | (load-module "mem")
|
---|
12 |
|
---|
13 | (setf *mode-line-pad-x* 8
|
---|
14 | *mode-line-pad-y* 1
|
---|
15 | *mode-line-timeout* 2
|
---|
16 | *window-border-style* :thin
|
---|
17 | *frame-number-map* "1234567890"
|
---|
18 | *mode-line-position* :top
|
---|
19 | *window-format* "%m%n%s%c"
|
---|
20 | *cpu-modeline-fmt* "%C"
|
---|
21 | *delim* " ^2::^7 "
|
---|
22 | *screen-mode-line-format* (list
|
---|
23 | ;; Windows
|
---|
24 | ;;"[^B%n^b]"
|
---|
25 | "^7%W ^>^7"
|
---|
26 | ;; CPU
|
---|
27 | "%C" *delim*
|
---|
28 | ;; RAM
|
---|
29 | "%M" *delim*
|
---|
30 | ;; Battery
|
---|
31 | "%B" *delim*
|
---|
32 | ;; Date
|
---|
33 | "%d"
|
---|
34 | ))
|
---|
35 |
|
---|
36 | ;; launch Web browser
|
---|
37 | (defcommand icecat () ()
|
---|
38 | "Start Icecat or switch to it, if it is already running."
|
---|
39 | (run-or-raise "icecat" '(:class "IceCat")))
|
---|
40 | (define-key *root-map* (kbd "B") "icecat")
|
---|
41 |
|
---|
42 | ;; Change xterm to urxvt
|
---|
43 | (define-key *root-map* (kbd "c") "exec urxvt")
|
---|
44 |
|
---|
45 | ;; Volume Management
|
---|
46 | (progn
|
---|
47 | (define-key *top-map* (kbd "XF86AudioLowerVolume") "exec amixer -q sset Master 3%-")
|
---|
48 | (define-key *top-map* (kbd "XF86AudioRaiseVolume") "exec amixer -q sset Master 3%+")
|
---|
49 | (define-key *top-map* (kbd "XF86AudioMute") "amixer -q sset Master toggle"))
|
---|
50 |
|
---|
51 | ;; Mode-line
|
---|
52 | (progn
|
---|
53 | (enable-mode-line (current-screen) (current-head) t))
|
---|
Note:
See
TracBrowser
for help on using the repository browser.