--- a/fish/config.fish Fri Nov 06 11:01:07 2020 -0500
+++ b/fish/config.fish Fri Nov 06 11:01:33 2020 -0500
@@ -40,8 +40,8 @@
# }}}
# Abbreviations {{{
-abbr ai="sudo apt install"
-abbr sc="sudo systemctl"
+abbr --add ai "sudo apt install"
+abbr --add sc "sudo systemctl"
# }}}
# Completions {{{
--- a/stumpwmrc Fri Nov 06 11:01:07 2020 -0500
+++ b/stumpwmrc Fri Nov 06 11:01:33 2020 -0500
@@ -250,10 +250,17 @@
(defun brightness ()
(aref *brightness-values* *brightness-index*))
+(defun set-brightness (value)
+ (run-shell-command
+ (hostcase
+ ((:mobius :alephnull) (format nil "xbacklight -set ~D" value))
+ ((:papyrifera) (format nil "xrandr --output eDP --brightness ~D" (/ value 100.0)))
+ (t (message "Not sure how to set brightness on this machine.")))))
+
(defun rotate-brightness (delta)
(setf *brightness-index*
(mod+ *brightness-index* delta (length *brightness-values*)))
- (run-shell-command (format nil "xbacklight -set ~D" (brightness))))
+ (set-brightness (brightness)))
(defcommand rotate-brightness-up () ()
(rotate-brightness 1))
@@ -359,7 +366,7 @@
(defcommand sleep-machine ()
()
(hostcase
- ((:alephnull :mobius)
+ ((:alephnull :mobius :papyrifera)
(run-shell-command "exec lock-screen")
(run-shell-command "systemctl suspend"))
(t (message "Not sleeping this machine for safety.."))))
@@ -686,7 +693,7 @@
" ")
(hostcase
- ((:mobius :alephnull)
+ ((:mobius :alephnull :papyrifera)
'("(B "
(:eval (princ-to-string (battery)))
")"
--- a/vim/vimrc Fri Nov 06 11:01:07 2020 -0500
+++ b/vim/vimrc Fri Nov 06 11:01:33 2020 -0500
@@ -1501,10 +1501,9 @@
au FileType go inoremap <c-n> <c-x><c-o>
" this language is incredible
- au FileType go iabbrev <buffer> ernil if err != nil {<cr>return nil, err<esc>jA
- au FileType go iabbrev <buffer> erstr if err != nil {<cr>return "", err<esc>jA
- au FileType go iabbrev <buffer> ererr if err != nil {<cr>return err<esc>jA
- au FileType go iabbrev <buffer> erpan if err != nil {<cr>panic(err)<esc>jA
+ au FileType go iabbrev <buffer> enil if err != nil
+ au FileType go iabbrev <buffer> rete return err
+ au FileType go iabbrev <buffer> retne return nil, err
au FileType gohtmltmpl setlocal shiftwidth=4
augroup END
@@ -1806,7 +1805,7 @@
au FileType pgsql nnoremap <buffer> <silent> <localleader>e :call NeoReplSendParagraph()<cr>
au FileType pgsql nnoremap <buffer> <silent> <localleader>f :call NeoReplSendEntireFile()<cr>
au FileType pgsql nnoremap <buffer> <silent> <localleader>c :call NeoReplSendRaw("")<cr>
-
+ au FileType pgsql nnoremap <buffer> <silent> <localleader>q :call NeoReplSendRaw("q")<cr>
augroup END
" }}}
--- a/xsessionrc Fri Nov 06 11:01:07 2020 -0500
+++ b/xsessionrc Fri Nov 06 11:01:33 2020 -0500
@@ -24,5 +24,4 @@
# /usr/bin/dunst -config $HOME/.dunstrc &
# exec gpg-agent --daemon --enable-ssh-support /usr/local/bin/stumpwm
-exec /usr/local/bin/stumpwm
-
+exec /usr/local/bin/stumpwm > .stump-xsession-log.out 2> .stump-xsession-log.err