-
Notifications
You must be signed in to change notification settings - Fork 10
/
.stumpwmrc
56 lines (42 loc) · 1.93 KB
/
.stumpwmrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
;; Hey, Emacs! This is a -*- lisp -*- file!
(setf *frame-number-map* "abcdefghijklmnopqrst")
(setf *window-format* "%m%n%s nm=%50t cl=%c id=%i")
(run-commands "restore-from-file ~/.stumpwm.screendump")
;; specific commands that permits to run or raise the same instance of programs
(defcommand firefox () ()
"Start Firefox or switch to it, if it is already running."
(run-or-raise "firefox" '(:class "Firefox")))
(define-key *root-map* (kbd "f") "firefox")
(defcommand term1 () ()
"run term emul"
(run-or-raise "gnome-terminal" '(:class "Term1")))
(run-commands "term1")
(defcommand xterm-1 () ()
"run an xterm instance or switch to it, if it is already running."
(run-or-raise "gnome-terminal --title=xterm1" '(:class "Gnome-terminal")))
(define-key *root-map* (kbd "x") "xterm-1")
;; frame selection
(define-key *root-map* (kbd "o") "fselect")
(defcommand emacs () () ;! redefining emacs command
"Start Emacs or switch to it, if it is already running."
(run-or-raise "emacs -rv" '(:class "Emacs")))
;; Another way to declare a shortcut for launching google-chrome
(defprogram-shortcut :chrome :command "google-chrome"
:props '(:class "Google-chrome")
:map *root-map* :key (kbd "b"))
;; conkeror powaaaa!
;;(defprogram-shortcut :chrome :command "conkeror"
;; :props '(:class "conkeror")
;; :map *root-map* :key (kbd "d")
;; )
;;Set the mouse policy to focus follows mouse;
(setf *mouse-focus-policy* :click) ;; :click, :ignore, :sloppy
;; Launch commands
(run-shell-command "stalonetray -t --window-type normal --pixmap-bg ~/Dropbox/home/black-1x1.xpm -v -t")
(run-shell-command "/usr/bin/gnome-settings-daemon")
(run-shell-command "/usr/bin/nm-applet &")
(run-shell-command "/usr/bin/bluetooth-applet &")
(run-shell-command "/usr/bin/pactl load-module module-x11-xsmp &")
(run-shell-command "gnome-power-manager")
(run-shell-command "dropbox start")
(run-shell-command "nautilus --no-default-window")