Changeset 42ee519 in dotfiles for wm/.stumpwmrc
- Timestamp:
- Jan 6, 2020, 8:32:05 PM (5 years ago)
- Branches:
- master
- Children:
- 7c65a3f
- Parents:
- e6db78d
- git-author:
- Mikhail Kirillov <w96k@…> (01/06/20 13:59:13)
- git-committer:
- Mikhail Kirillov <w96k@…> (01/06/20 20:32:05)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
wm/.stumpwmrc
re6db78d r42ee519 1 1 (in-package :stumpwm) 2 (load "~/quicklisp/setup.lisp") 2 3 3 (setq *startup-message* nil) 4 (setq *startup-mode-line* t) 4 (setq *startup-message* "Welcome to your lovely LISP-machine") 5 6 ;; Shepherd (with emacs daemon) 7 (run-shell-command "shepherd") 8 9 (set-prefix-key (kbd "C-t")) 5 10 6 11 (set-module-dir "~/stumpwm/contrib") 12 (ql:quickload :clx-truetype) 7 13 8 ;; Modeline Battery9 14 (load-module "battery-portable") 10 15 (load-module "cpu") 11 16 (load-module "mem") 17 (load-module "command-history") 18 (load-module "clipboard-history") 19 (load-module "shell-command-history") 20 (load-module "app-menu") 21 ;;(load-module "screenshot") 22 (load-module "ttf-fonts") 12 23 13 (setf *mode-line-pad-x* 8 14 *mode-line-pad-y* 1 24 (clx-truetype:cache-fonts) 25 26 (setf *mode-line-pad-x* 20 27 *mode-line-pad-y* 8 15 28 *mode-line-timeout* 1 29 *mouse-focus-policy* :click 16 30 *window-border-style* :thin 17 *frame-number-map* "1234567890" 31 *message-window-gravity* :center 32 *normal-border-width* 8 33 *mode-line-border-width* 0 34 *transient-border-width* 0 18 35 *mode-line-position* :top 19 *window-format* "%m%n%s%c" 36 *window-format* "%m%n%s%t " 37 *hidden-window-color* "" 20 38 *cpu-modeline-fmt* "%C" 39 *mode-line-background-color* "#2d2d2d" 40 *startup-mode-line* t 21 41 *window-name-source* :class 22 42 *delim* " ^2::^7 " 43 23 44 *screen-mode-line-format* (list 24 45 ;; Windows 25 ;;"[^ B%n^b]"26 "^7% W^>^7"46 ;;"[^4%n^b]" 47 "^7%v ^>^7" 27 48 ;; CPU 28 49 "%C" *delim* … … 35 56 )) 36 57 58 ;; Colors 59 (set-bg-color "#1C2028") 60 (set-border-color "#666666") 61 (set-focus-color "#6699cc") 62 (set-unfocus-color "#2d2d2d") 63 (set-win-bg-color "#2d2d2d") 64 65 37 66 ;; launch Web browser 38 67 (defcommand next () () 39 "Start Icecat or switch to it, if it is already running."68 "Start Next or switch to it, if it is already running." 40 69 (run-or-raise "next" '(:class "Next"))) 41 70 (define-key *root-map* (kbd "B") "next") 71 72 (defcommand icecat () () 73 "Start Next or switch to it, if it is already running." 74 (run-or-raise "icecat" '(:class "IceCat"))) 75 (define-key *root-map* (kbd "b") "icecat") 42 76 43 77 ;; launch terminal … … 63 97 64 98 ;; Mode-line 65 (progn 66 (enable-mode-line (current-screen) (current-head) t)) 99 (enable-mode-line (current-screen) (current-head) t) 100 101 102 ;; Gaps 103 (load-module "swm-gaps") 104 (setf swm-gaps:*inner-gaps-size* 8) 105 (setf swm-gaps:*outer-gaps-size* 4) 106 (swm-gaps:toggle-gaps) 107 108 ;; Golden Ratio 109 ;;(load-module "swm-golden-ratio") 110 ;;(swm-golden-ratio:toggle-golden-ratio) 111 112 (setf (getenv "GDK_CORE_DEVICE_EVENTS") "1") 113 114 (defun key-press-hook (key key-seq cmd) 115 (let ((*message-window-gravity* :bottom)) 116 (message-no-timeout "Key sequence: ~A" 117 (print-key-seq (reverse key-seq)))) 118 (when (stringp cmd) 119 (sleep 0.1))) 120 121 (defmacro replace-hook (hook fn) 122 `(remove-hook ,hook ,fn) 123 `(add-hook ,hook ,fn)) 124 125 (replace-hook *key-press-hook* 'key-press-hook) 126 127 ;; Clipboard history 128 (define-key *root-map* (kbd "C-y") "show-clipboard-history") 129 (clipboard-history:start-clipboard-manager) 130 131 ;; Shell history 132 (setf shell-command-history:*shell-command-history-file* 133 "/home/w96k/.cache/stumpwm/shell-command-history") 134 135 ;; Menu 136 (setq app-menu:*app-menu* 137 '(("Telegram" "telegram-desktop") 138 ("Icecat" icecat) 139 ("Next" next) 140 ("Terminal" urxvt) 141 ("Deluge" "deluge"))) 142 143 (define-key *root-map* (kbd "q") "show-menu")
Note:
See TracChangeset
for help on using the changeset viewer.