1 | ;; -*- mode: common-lisp -*-
|
---|
2 |
|
---|
3 | (in-package :stumpwm)
|
---|
4 |
|
---|
5 | (run-shell-command "xfce4-panel")
|
---|
6 |
|
---|
7 | (setq *startup-message* "Welcome to your lovely LISP-machine")
|
---|
8 | (set-prefix-key (kbd "C-TAB"))
|
---|
9 |
|
---|
10 | (set-normal-gravity :top)
|
---|
11 |
|
---|
12 | (defcommand icecat () ()
|
---|
13 | (run-or-raise "icecat" '(:class "IceCat")))
|
---|
14 |
|
---|
15 | (defcommand nyxt () ()
|
---|
16 | "Start Next or switch to it, if it is already running."
|
---|
17 | (run-or-raise "nyxt" '(:class "nyxt")))
|
---|
18 |
|
---|
19 | (define-key *root-map* (kbd "b") "nyxt")
|
---|
20 |
|
---|
21 | ;; launch terminal
|
---|
22 | (defcommand xterm () ()
|
---|
23 | "Start Urxvt or switch to it, if it is already running."
|
---|
24 | (run-or-raise "xterm" '(:class "xterm")))
|
---|
25 |
|
---|
26 | (define-key *root-map* (kbd "c") "xterm")
|
---|
27 | (define-key *root-map* (kbd "C") "xterm")
|
---|
28 |
|
---|
29 | ;; Change emacs to emacsclient
|
---|
30 | (defcommand emacsclient () ()
|
---|
31 | (run-or-raise "emacsclient -c -a emaces" '(:class "Emacs")))
|
---|
32 | (defcommand emacs () ()
|
---|
33 | (run-or-raise "emacs" '(:class "Emacs")))
|
---|
34 | (define-key *root-map* (kbd "e") "emacs")
|
---|
35 |
|
---|
36 | ;; Volume Management in thinkpad
|
---|
37 | (progn
|
---|
38 | (define-key *top-map* (kbd "XF86AudioLowerVolume") "exec amixer -q sset Master 3%-")
|
---|
39 | (define-key *top-map* (kbd "XF86AudioRaiseVolume") "exec amixer -q sset Master 3%+")
|
---|
40 | (define-key *top-map* (kbd "XF86AudioMute") "amixer -q sset Master toggle"))
|
---|
41 |
|
---|
42 | ;; Printscreen
|
---|
43 | (defcommand printscreen () ()
|
---|
44 | "Works in X11 only"
|
---|
45 | (message "Print screen region")
|
---|
46 | (run-shell-command "import screenshot.png"))
|
---|
47 |
|
---|
48 | (define-key *top-map* (kbd "SunPrint_Screen") "printscreen")
|
---|
49 |
|
---|
50 | ;; Enable Mode-line
|
---|
51 | ;;(enable-mode-line (current-screen) (current-head) t)
|
---|
52 |
|
---|
53 | ;; Gaps: useless concept to be honest
|
---|
54 | (load-module "swm-gaps")
|
---|
55 | ;; (setf swm-gaps:*inner-gaps-size* 0)
|
---|
56 | ;; (setf swm-gaps:*outer-gaps-size* 2)
|
---|
57 | ;; (swm-gaps:toggle-gaps)
|
---|
58 |
|
---|
59 | ;; Show / Hide mode-line
|
---|
60 | ;; (define-key *root-map* (kbd "M") "mode-line")
|
---|
61 |
|
---|
62 | ;; Old fix for scrolling gtk issue
|
---|
63 | (setf (getenv "GDK_CORE_DEVICE_EVENTS") "1")
|
---|