changeset 86: |
a86cb552d6df |
parent: |
8bd50ea9a546
|
child: |
0e41a0a68353 |
author: |
Richard Westhaver <ellis@rwest.io> |
date: |
Wed, 21 Aug 2024 20:29:13 -0400 |
permissions: |
-rw-r--r-- |
description: |
stumpwm utils |
5 (stumpwm:set-prefix-key (kbd "s-SPC")) 7 (defcommand load-std () () 10 (defcommand load-prelude () () 11 (ql:quickload :prelude)) 13 (defcommand load-core () () 16 (defcommand load-user () () 19 (setq *mouse-focus-policy* :sloppy 20 *float-window-modifier* :SUPER 21 *startup-message* "Greetings, stranger.") 23 (set-module-dir "~/.stumpwm.d/contrib") 24 (init-load-path *module-dir*) 26 (ql:quickload :clx-truetype) 27 (load-module "ttf-fonts") 29 (set-font (make-instance 'xft:font 30 :family "Mononoki Nerd Font" 34 (load-module "swm-golden-ratio") 35 (unless swm-golden-ratio:*golden-ratio-on* 36 (swm-golden-ratio:toggle-golden-ratio)) 38 (load-module "stumptray") 40 (set-fg-color "#ffffff") 41 (set-bg-color "#000000") 42 (set-border-color "#7E5D90") 43 (set-focus-color "#170F14") 44 (set-unfocus-color "#232731") 45 (set-win-bg-color "#22272F") 46 (set-float-focus-color "#8ED3A1") 47 (set-float-unfocus-color "#232731") 49 (setf *mode-line-background-color* "#161613") 50 (setf *mode-line-foreground-color* "#FFFFFF") 51 (setf *mode-line-border-color* "#28394c") 52 (setf *mode-line-position* :bottom) 54 (setf *colors* (list "#010101" ; 0 black 63 (setf *window-format* "%m%n%s%c") 64 (setf *screen-mode-line-format* (list "[^B%n^b] %W^>%d")) 65 (set-normal-gravity :center) 66 (set-maxsize-gravity :center) 67 (set-transient-gravity :center) 68 (setf *time-modeline-string* "%a %b %e %k:%M") 70 (setq *mode-line-timeout* 4)( 74 (run-shell-command "sh ~/.fehbg") 75 (when (equal (machine-instance) "zor") 76 (run-shell-command "sh ~/.screenlayout/default.sh")) 77 (dolist (h (screen-heads (current-screen))) 78 (enable-mode-line (current-screen) h t))) 80 (defcommand term (&optional program) () 81 (sb-thread:make-thread 83 (run-shell-command (if program 84 (format nil "alacritty ~A" program) 87 (defcommand blueberry () () 88 (sb-thread:make-thread 90 (run-shell-command "blueberry")))) 92 (defcommand chromium () () 93 (sb-thread:make-thread 95 (run-shell-command "chromium")))) 97 (defcommand emacsclient () () 98 (run-shell-command "emacsclient -c -a=")) 100 (define-key *root-map* (kbd "c") "term")