# HG changeset patch # User Steve Losh # Date 1532140480 0 # Node ID bbfb324ad39959fbb89c49e67230329aaf19801e # Parent 8e3363a5c0c8d7ba88d001e16fb39f879c3e7bbc Updates diff -r 8e3363a5c0c8 -r bbfb324ad399 bin/screenshot-area --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bin/screenshot-area Sat Jul 21 02:34:40 2018 +0000 @@ -0,0 +1,5 @@ +#!/usr/bin/env bash + +set -euo pipefail + +sleep 0.2 ; scrot 'screenshot_%Y-%m-%d_%H-%M-%S.png' -s -e 'mv $f ~/screenshots && echo -n ~/screenshots/$f' | xsel --clipboard --input diff -r 8e3363a5c0c8 -r bbfb324ad399 bin/screenshot-screen --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bin/screenshot-screen Sat Jul 21 02:34:40 2018 +0000 @@ -0,0 +1,5 @@ +#!/usr/bin/env bash + +set -euo pipefail + +sleep 0.2 ; scrot 'screenshot_%Y-%m-%d_%H-%M-%S.png' -m -e 'mv $f ~/screenshots && echo -n ~/screenshots/$f' | xsel --clipboard --input diff -r 8e3363a5c0c8 -r bbfb324ad399 gitconfig --- a/gitconfig Thu Jul 19 00:16:12 2018 +0000 +++ b/gitconfig Sat Jul 21 02:34:40 2018 +0000 @@ -5,7 +5,7 @@ [core] pager = cat editor = nvim - excludesfile = /Users/sjl/.gitignore + excludesfile = ~/.gitignore [alias] tags = tag -l diff -r 8e3363a5c0c8 -r bbfb324ad399 gitignore --- a/gitignore Thu Jul 19 00:16:12 2018 +0000 +++ b/gitignore Sat Jul 21 02:34:40 2018 +0000 @@ -11,3 +11,4 @@ .cache-main .cache-tests *.fasl +.notmylispwords diff -r 8e3363a5c0c8 -r bbfb324ad399 restic/excludes.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/restic/excludes.txt Sat Jul 21 02:34:40 2018 +0000 @@ -0,0 +1,7 @@ +.cache +cache2 +/home/sjl/.dbus +/home/sjl/src/dotfiles/vim/tmp +/home/sjl/.mozilla +/home/sjl/Dropbox/.dropbox.cache + diff -r 8e3363a5c0c8 -r bbfb324ad399 roswell/lispindent.lisp --- a/roswell/lispindent.lisp Thu Jul 19 00:16:12 2018 +0000 +++ b/roswell/lispindent.lisp Sat Jul 21 02:34:40 2018 +0000 @@ -63,7 +63,8 @@ (defparameter *config-files* (list (merge-pathnames ".lispwords" (user-homedir-pathname)) - ".lispwords" )) + ".lispwords" + ".notmylispwords")) (defun source-config-files () diff -r 8e3363a5c0c8 -r bbfb324ad399 stumpwmrc --- a/stumpwmrc Thu Jul 19 00:16:12 2018 +0000 +++ b/stumpwmrc Sat Jul 21 02:34:40 2018 +0000 @@ -6,7 +6,7 @@ ;;;; Config ------------------------------------------------------------------- (set-prefix-key (kbd "C-space")) -;; (redirect-all-output (data-dir-file "debug" "text")) +(redirect-all-output (data-dir-file "debug" "text")) (setf *mouse-focus-policy* :click *message-window-gravity* :center @@ -102,6 +102,15 @@ ;;;; Load --------------------------------------------------------------------- (load-module "pass") +;;;; Screenshotting ----------------------------------------------------------- +(defcommand screenshot-area () () + ;; todo why the hell do these not pick up my fuckin path? + (run-shell-command "/home/sjl/src/dotfiles/bin/screenshot-area")) + +(defcommand screenshot-screen () () + (run-shell-command "/home/sjl/src/dotfiles/bin/screenshot-screen")) + + ;;;; Commands ----------------------------------------------------------------- (defcommand sane-hsplit () () (hsplit) @@ -211,8 +220,8 @@ ("H-o" "spotify") ("H-I" "intellij") ("H-q" "exec slock") - ("H-y" "exec scrot 'screenshot_%Y-%m-%d_%H-%M-%S.png' -s -e 'mv $f ~/screenshots && echo -n ~/screenshots/$f' | xclip -sel clip") - ("H-Y" "exec scrot 'screenshot_%Y-%m-%d_%H-%M-%S.png' -m 'mv $f ~/screenshots && echo -n ~/screenshots/$f' | xclip -sel clip") + ("H-y" "screenshot-area") + ("H-Y" "screenshot-screen") ("H-r" "loadrc") ("H-V" "vlime")) @@ -233,7 +242,8 @@ (define-top-keys ;; splitting ("H-s" "sane-vsplit") - ("H-v" "sane-hsplit")) + ("H-v" "sane-hsplit") + ("H-=" "balance-frames")) (define-top-keys ;; killing ("H-w" "delete")