changeset 95: |
f69061a590da |
parent: |
978ce75e54af
|
author: |
Richard Westhaver <ellis@rwest.io> |
date: |
Sat, 07 Sep 2024 22:40:44 -0400 |
permissions: |
-rw-r--r-- |
description: |
moonlander concessions |
5 (stumpwm:set-prefix-key (kbd "s-SPC")) 8 (ql:quickload '(:std :core :prelude :user :swank))) 10 (defcommand quickload (system) 12 "Load a system with QL:QUICKLOAD" 13 (ql:quickload system)) 15 (defcommand load-std () () 18 (defcommand load-prelude () () 19 (ql:quickload :prelude)) 21 (defcommand load-core () () 24 (defcommand load-user () () 28 (setq *mouse-focus-policy* :sloppy 29 *float-window-modifier* :SUPER 30 *startup-message* "Greetings, stranger.") 32 (set-module-dir "~/.stumpwm.d/contrib") 33 (init-load-path *module-dir*) 35 (ql:quickload :clx-truetype) 36 (load-module "ttf-fonts") 38 (set-font (make-instance 'xft:font 39 :family "Mononoki Nerd Font" 43 (load-module "swm-golden-ratio") 44 (unless swm-golden-ratio:*golden-ratio-on* 45 (swm-golden-ratio:toggle-golden-ratio)) 47 (load-module "screenshot") 49 (load-module "hostname") 52 (ql:quickload '(:cl-diskspace :cl-mount-info)) 54 (setq *mode-line-highlight-template* "«~A»") 55 (setf *screen-mode-line-format* (list "[^B%n^b] %W^> %C | %M | %l | %D | %h | %d")) 57 (ql:quickload :xml-emitter) 60 (set-fg-color "#ffffff") 61 (set-bg-color "#000000") 62 (set-border-color "#7E5D90") 63 (set-focus-color "#170F14") 64 (set-unfocus-color "#232731") 65 (set-win-bg-color "#22272F") 66 (set-float-focus-color "#8ED3A1") 67 (set-float-unfocus-color "#232731") 69 (setf *mode-line-background-color* "#161613") 70 (setf *mode-line-foreground-color* "#FFFFFF") 71 (setf *mode-line-border-color* "#28394c") 72 (setf *mode-line-position* :bottom) 74 (setf *colors* (list "#010101" ; 0 black 83 (setf *window-format* "%m%n%s%c") 84 (set-normal-gravity :center) 85 (set-maxsize-gravity :center) 86 (set-transient-gravity :center) 87 (setf *time-modeline-string* "%F %H:%M") 88 (setf *group-format* "%t") 89 (setq *mode-line-timeout* 4) 98 (run-shell-command "sh ~/.fehbg") 99 (when (equal (machine-instance) "zor") 100 (run-shell-command "sh ~/.screenlayout/default.sh")) 101 (dolist (h (screen-heads (current-screen))) 102 (enable-mode-line (current-screen) h t))) 104 (clear-window-placement-rules) 106 (define-frame-preference "*MAIN*" (nil t t :class "Tiling")) 107 (define-frame-preference "*ORG*" (nil t t :class "Tiling")) 108 (define-frame-preference "*MEDIA*" (nil t t :class "Floating")) 109 (define-frame-preference "*SCRATCH*" (nil t t :class "Tiling")) 111 (setf *dynamic-group-master-split-ratio* 1/2) 113 (defcommand term (&optional program) () 114 (sb-thread:make-thread 116 (run-shell-command (if program 117 (format nil "alacritty ~A" program) 120 (defcommand blueberry () () 121 (sb-thread:make-thread 123 (run-shell-command "blueberry")))) 125 (defcommand firefox () () 126 "Run or raise Firefox." 127 (sb-thread:make-thread 128 (lambda () (run-or-raise "firefox" '(:class "Firefox") t nil)))) 130 (defcommand chromium () () 131 (sb-thread:make-thread 133 (run-or-raise "chromium" '(:class "Chromium") t nil)))) 135 (defcommand emacsclient () () 136 (run-shell-command "emacsclient -c -a=")) 138 (defcommand homer () () 139 (run-shell-command "homer")) 141 (defcommand skel () () 142 (run-shell-command "skel")) 144 (define-key *root-map* (kbd "t") "term") 145 (define-key *root-map* (kbd "e") "emacsclient") 146 (define-key *root-map* (kbd "C-e") "emacs") 147 (define-key *root-map* (kbd "s-w") "chromium")