changeset 94: |
978ce75e54af |
parent: |
0e41a0a68353
|
child: |
f69061a590da |
author: |
Richard Westhaver <ellis@rwest.io> |
date: |
Fri, 30 Aug 2024 17:07:30 -0400 |
permissions: |
-rw-r--r-- |
description: |
add stumpwm modules and org-timeline |
5 (stumpwm:set-prefix-key (kbd "s-SPC")) 8 (ql:quickload '(:std :core :prelude :user))) 10 (defcommand load-std () () 13 (defcommand load-prelude () () 14 (ql:quickload :prelude)) 16 (defcommand load-core () () 19 (defcommand load-user () () 23 (setq *mouse-focus-policy* :sloppy 24 *float-window-modifier* :SUPER 25 *startup-message* "Greetings, stranger.") 27 (set-module-dir "~/.stumpwm.d/contrib") 28 (init-load-path *module-dir*) 30 (ql:quickload :clx-truetype) 31 (load-module "ttf-fonts") 33 (set-font (make-instance 'xft:font 34 :family "Mononoki Nerd Font" 38 (load-module "swm-golden-ratio") 39 (unless swm-golden-ratio:*golden-ratio-on* 40 (swm-golden-ratio:toggle-golden-ratio)) 42 ;; (load-module "stumptray") 44 (load-module "hostname") 47 (ql:quickload '(:cl-diskspace :cl-mount-info)) 49 (setq *mode-line-highlight-template* "«~A»") 50 (setf *screen-mode-line-format* (list "[^B%n^b] %W^> %C | %M | %l | %D | %h | %d")) 52 (ql:quickload :xml-emitter) 54 (load-module "notify") 55 (notify:notify-server-toggle) 57 (set-fg-color "#ffffff") 58 (set-bg-color "#000000") 59 (set-border-color "#7E5D90") 60 (set-focus-color "#170F14") 61 (set-unfocus-color "#232731") 62 (set-win-bg-color "#22272F") 63 (set-float-focus-color "#8ED3A1") 64 (set-float-unfocus-color "#232731") 66 (setf *mode-line-background-color* "#161613") 67 (setf *mode-line-foreground-color* "#FFFFFF") 68 (setf *mode-line-border-color* "#28394c") 69 (setf *mode-line-position* :bottom) 71 (setf *colors* (list "#010101" ; 0 black 80 (setf *window-format* "%m%n%s%c") 81 (set-normal-gravity :center) 82 (set-maxsize-gravity :center) 83 (set-transient-gravity :center) 84 (setf *time-modeline-string* "%F %H:%M") 85 (setf *group-format* "%t") 86 (setq *mode-line-timeout* 4) 95 (run-shell-command "sh ~/.fehbg") 96 (when (equal (machine-instance) "zor") 97 (run-shell-command "sh ~/.screenlayout/default.sh")) 98 (dolist (h (screen-heads (current-screen))) 99 (enable-mode-line (current-screen) h t))) 101 (clear-window-placement-rules) 103 (define-frame-preference "*MAIN*" (nil t t :class "Tiling")) 104 (define-frame-preference "*ORG*" (nil t t :class "Tiling")) 105 (define-frame-preference "*MEDIA*" (nil t t :class "Floating")) 106 (define-frame-preference "*SCRATCH*" (nil t t :class "Tiling")) 108 (setf *dynamic-group-master-split-ratio* 1/2) 110 (defcommand term (&optional program) () 111 (sb-thread:make-thread 113 (run-shell-command (if program 114 (format nil "alacritty ~A" program) 117 (defcommand blueberry () () 118 (sb-thread:make-thread 120 (run-shell-command "blueberry")))) 122 (defcommand firefox () () 123 "Run or raise Firefox." 124 (sb-thread:make-thread 125 (lambda () (run-or-raise "firefox" '(:class "Firefox") t nil)))) 127 (defcommand chromium () () 128 (sb-thread:make-thread 130 (run-or-raise "chromium" '(:class "Chromium") t nil)))) 132 (defcommand emacsclient () () 133 (run-shell-command "emacsclient -c -a=")) 135 (defcommand homer () () 136 (run-shell-command "homer")) 138 (defcommand skel () () 139 (run-shell-command "skel")) 141 (define-key *root-map* (kbd "t") "term") 142 (define-key *root-map* (kbd "e") "emacsclient") 143 (define-key *root-map* (kbd "C-e") "emacs") 144 (define-key *root-map* (kbd "s-w") "chromium")