4ceaf6bc4210

More
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Thu, 07 Sep 2023 14:33:50 -0400
parents 6ba110080a93
children 72b5c315bd1d
branches/tags (none)
files .hgsubstate stumpwmrc vim/custom-dictionary.utf-8.add vim/vimrc

Changes

--- a/.hgsubstate	Thu Aug 31 18:48:07 2023 -0400
+++ b/.hgsubstate	Thu Sep 07 14:33:50 2023 -0400
@@ -35,5 +35,5 @@
 f6f2d6618a321f5b0065586a7bc934325fec81ab vim/bundle/targets
 e9d7ff3eb4a369f0cb2069c8f77ae68796bca308 vim/bundle/vim-go
 5d5c71044880443035e07009497962feacb56b20 vim/bundle/vimtex
-54feb567738398ab65d783e096bc84938e7620a0 vim/bundle/vlime
+c1ac16c1a50bec4c30da87cd4ce2af12e26fb022 vim/bundle/vlime
 6876fe38b33732cb124d415ffc4156f16da5e118 vim/bundle/windowswap
--- a/stumpwmrc	Thu Aug 31 18:48:07 2023 -0400
+++ b/stumpwmrc	Thu Sep 07 14:33:50 2023 -0400
@@ -10,6 +10,14 @@
 (set-prefix-key (kbd "C-space"))
 (local-time:reread-timezone-repository)
 
+(set-focus-color "#aaaaaa")
+(set-win-bg-color "#111111")
+(set-unfocus-color "#444444")
+(setf *normal-border-width* 1
+      *default-bg-color* #x222222
+      *window-border-style* :thin
+      (xlib:window-background (screen-root (current-screen))) *default-bg-color*)
+
 (defvar *redirected* (redirect-all-output (data-dir-file "debug" "log")))
 
 (setf *mouse-focus-policy* :click
@@ -371,25 +379,25 @@
 
 (defcommand screen-laptop () ()
   (only)
-  (loop :with laptop = "eDP-1"
-        :with extern = "DP-1"
-        :for (output commands) :in `((,laptop ("--auto"))
-                                   (,laptop ("--primary"))
-                                   (,extern ("--off")))
-        :do (progn (uiop:run-program `("xrandr" "--output" ,output ,@commands)))))
+  (hostcase
+    ((:gro) (loop :with laptop = "eDP"
+                  :with extern = "DisplayPort-0"
+                  :for (output commands) :in `((,laptop ("--auto"))
+                                               (,laptop ("--primary"))
+                                               (,extern ("--off")))
+                  :do (progn (uiop:run-program `("xrandr" "--output" ,output ,@commands)))))
+    (t (message "Not configured on this system."))))
 
 (defcommand screen-external () ()
   (only)
-  (loop :with laptop = "eDP-1"
-        :with extern = "DP-1"
-        :for (output commands) :in `(
-                                     ;; (,laptop ("--off"))
-                                     (,extern ("--auto"))
-                                     (,extern ("--primary"))
-                                     (,laptop ("--auto"))
-                                     (,laptop ("--left-of" ,extern))
-                                     )
-        :do (uiop:run-program `("xrandr" "--output" ,output ,@commands))))
+  (hostcase
+    ((:gro) (loop :with laptop = "eDP"
+                  :with extern = "DisplayPort-0"
+                  :for (output commands) :in `((,extern ("--auto"))
+                                               (,extern ("--primary"))
+                                               (,laptop ("--off")))
+                  :do (uiop:run-program `("xrandr" "--output" ,output ,@commands))))
+    (t (message "Not configured on this system."))))
 
 (defcommand vlime () ()
   (load "~/src/dotfiles/vim/bundle/vlime/lisp/start-vlime.lisp")
@@ -717,7 +725,7 @@
   ("C-H-L" "exchange-direction right")
 
   ("H-`" "next")
-  ("H-~" "prev") ;; "
+  ("S-H-`" "prev")
   ("H-n" "next-in-frame")
   ("H-p" "prev-in-frame")
   ("H-N" "pull-hidden-next")
@@ -725,6 +733,7 @@
 
   ("H-," "pull-from-windowlist"))
 
+
 (define-top-keys ;; splitting
   ("H-s" "sane-vsplit")
   ("H-v" "sane-hsplit")
@@ -941,7 +950,7 @@
 ;; (defvar *dropbox*
   ;; (run-shell-command "~/.dropbox-dist/dropboxd"))
 
-#+no(defvar *dunst*
+(defvar *dunst*
   (run-shell-command "/usr/bin/dunst -conf ~/.dunstrc"))
 
 (when (probe-file "/home/sjl/.stumpwmrc.local")
@@ -949,3 +958,6 @@
 
 
 #;;; Scratch ------------------------------------------------------------------
+
+
+
--- a/vim/custom-dictionary.utf-8.add	Thu Aug 31 18:48:07 2023 -0400
+++ b/vim/custom-dictionary.utf-8.add	Thu Sep 07 14:33:50 2023 -0400
@@ -336,3 +336,5 @@
 skald
 dwarven
 tradeoff
+Snakefile
+Snakemake
--- a/vim/vimrc	Thu Aug 31 18:48:07 2023 -0400
+++ b/vim/vimrc	Thu Sep 07 14:33:50 2023 -0400
@@ -1558,6 +1558,15 @@
 augroup END
 
 " }}}
+" JSON {{{
+
+augroup ft_json
+    au!
+
+    au FileType json setlocal sw=4
+augroup END
+
+" }}}
 " Latex {{{
 
 let g:tex_flavor = 'latex'
@@ -2043,6 +2052,16 @@
 
 nnoremap <f6> :Neoformat<cr>
 
+let g:neoformat_snakemake_snakefmt = {
+        \ 'exe': '/home/sjl/virtualenvs/snakemake/bin/snakefmt',
+        \ 'args': [],
+        \ 'replace': 1,
+        \ 'stdin': 0,
+        \ 'valid_exit_codes': [0]
+        \ }
+
+let g:neoformat_enabled_snakemake = ['snakefmt']
+
 " }}}
 " NeoRepl {{{