-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.lisp
79 lines (65 loc) · 2.46 KB
/
init.lisp
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
;; Start slynk server for use with sly
(load "~/quicklisp/setup.lisp")
;; load quicklisp
(asdf:load-system "slynk")
(slynk:create-server :port 4005 :dont-close t)
(asdf:load-system :stumpwm)
(in-package :stumpwm)
(defvar *config-dir* "~/.stumpwm.d/")
;; Default programs
(setf *suppress-abort-messages* nil)
(setf *top-level-error-action* :message)
;; Set stumpwm values
(setf *startup-message* "Take Responsibility."
*mouse-focus-policy* :click
*shell-program* (stumpwm:getenv "SHELL")
*maxsize-border-width* 5
*normal-border-width* 5
*transient-border-width* 2
*run-or-raise-all-groups* nil
*run-or-raise-all-screens* nil
stumpwm::*float-window-border* 0
stumpwm::*float-window-title-height* 0
*window-border-style* :thin
*window-format* "%m%n%s%t")
(stumpwm:set-border-color "#1e90ff") ;;(dodger blue) for input bar and message bar
(stumpwm:set-focus-color "#836fff") ;;(slate blue)
;;(setf *window-info-format*)
(setf *timeout-wait* 6 )
(setf *input-window-gravity* :center )
(setf *message-window-gravity* :center)
;; (setf *grab-pointer-foreground* (xlib:make-color :red 0.1 :green 0.25 :blue 0.5))
;; (setf *grab-pointer-background* (lookup-color (current-screen) "DeepSkyBlue"))
(set-normal-gravity :center)
(set-maxsize-gravity :center)
(set-transient-gravity :center)
(clear-window-placement-rules)
;; (define-frame-preference "Default"
;; (0 nil t :class "Emacs")
;; (3 nil t :class "kitty")
;; (2 nil t :class "firefox"))
;;(setf *grab-pointer-character* 71 )
;;(setf *grab-pointer-character-mask* 71 )
;; Recount windows number on kill
;; (stumpwm:add-hook stumpwm:*destroy-window-hook*
;; #'(lambda (win) (stumpwm:repack-window-numbers)))
;;(remove-all-hooks *destroy-window-hook*)
;; Load other configuration files
(load "/home/nabeel/.stumpwm.d/modules.lisp")
(load "/home/nabeel/.stumpwm.d/defcommands.lisp")
(load "/home/nabeel/.stumpwm.d/keybinding.lisp")
;;
;; (when *initializing*
;; (progn
;; (load "/home/nabeel/.stumpwm.d/startup.lisp")
;; ;; (launch-polybar)
;; ))
(load "/home/nabeel/.stumpwm.d/startup.lisp")
(when *initializing*
(progn
(load "/home/nabeel/.stumpwm.d/startup.lisp")
;; (launch-polybar)
))
;; (load "/home/nabeel/.stumpwm.d/startup.lisp")
;; Load mode-line configuration
(load "/home/nabeel/.stumpwm.d/modeline.lisp")