# HG changeset patch # User Steve Losh # Date 1552407868 14400 # Node ID 80f5ec3932ae23936bf69b0de735a9ab6d8d8149 # Parent f01b60ea69c54649439722a0326d110df8c4bfe8 More diff -r f01b60ea69c5 -r 80f5ec3932ae bin/cowhead --- a/bin/cowhead Thu Feb 28 14:01:51 2019 -0500 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,9 +0,0 @@ -#!/usr/bin/env bash - -COWS=("b" "d" "g" "p" "s" "t" "w" "y") -COW=${COWS[$RANDOM % ${#COWS[@]}]} - -PROGS=("cowsay" "cowthink") -PROG=${PROGS[$RANDOM % ${#PROGS[@]}]} - -toilet -t -k -F gay:crop -f calvins "$@" | $PROG -n -$COW diff -r f01b60ea69c5 -r 80f5ec3932ae bin/go-dep-graph --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bin/go-dep-graph Tue Mar 12 12:24:28 2019 -0400 @@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +set -euo pipefail +function render { + echo 'digraph foo {' + go mod graph | sed -E 's/(.*) (.*)/ "\1" -> "\2";/' | sed -E 's/@[^; "]*//g' + echo '}' +} + +render | dot -o "$1.png" -Tpng diff -r f01b60ea69c5 -r 80f5ec3932ae bin/moo --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bin/moo Tue Mar 12 12:24:28 2019 -0400 @@ -0,0 +1,9 @@ +#!/usr/bin/env bash + +COWS=("b" "d" "g" "p" "s" "t" "w" "y") +COW=${COWS[$RANDOM % ${#COWS[@]}]} + +PROGS=("cowsay" "cowthink") +PROG=${PROGS[$RANDOM % ${#PROGS[@]}]} + +toilet -t -k -F gay:crop -f calvins "$@" | $PROG -n -$COW diff -r f01b60ea69c5 -r 80f5ec3932ae bin/st-edit --- a/bin/st-edit Thu Feb 28 14:01:51 2019 -0500 +++ b/bin/st-edit Tue Mar 12 12:24:28 2019 -0400 @@ -3,4 +3,4 @@ tmpfile=$(mktemp /tmp/st-edit.XXXXXX) trap 'rm "$tmpfile"' 0 1 15 cat > "$tmpfile" -st -e "nvim" "$tmpfile" +st -e "nvim" -c "normal! G" "$tmpfile" diff -r f01b60ea69c5 -r 80f5ec3932ae bin/stripcolor --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bin/stripcolor Tue Mar 12 12:24:28 2019 -0400 @@ -0,0 +1,5 @@ +#!/usr/bin/env bash + +set -euo pipefail + +sed -r "s/\x1B\[([0-9]{1,2}(;[0-9]{1,2})?)?[m|K]//g" diff -r f01b60ea69c5 -r 80f5ec3932ae stumpwmrc --- a/stumpwmrc Thu Feb 28 14:01:51 2019 -0500 +++ b/stumpwmrc Tue Mar 12 12:24:28 2019 -0400 @@ -189,11 +189,11 @@ with extern = "DP1" for (output commands) in `((,laptop ("--off")) (,extern ("--off")) - (,laptop ("--auto")) + ;; (,laptop ("--auto")) (,extern ("--auto")) (,extern ("--primary")) ;; (,extern ("--mode" "2560x1440")) - (,extern ("--left-of" ,laptop)) + ;; (,extern ("--left-of" ,laptop)) ;; (,extern ("--right-of" ,laptop)) ) do (pr (uiop:run-program `("xrandr" "--output" ,output ,@commands))))) diff -r f01b60ea69c5 -r 80f5ec3932ae vim/custom-dictionary.utf-8.add --- a/vim/custom-dictionary.utf-8.add Thu Feb 28 14:01:51 2019 -0500 +++ b/vim/custom-dictionary.utf-8.add Tue Mar 12 12:24:28 2019 -0400 @@ -279,3 +279,5 @@ unmarshaling deserialize lparallel +subshell +schemaless diff -r f01b60ea69c5 -r 80f5ec3932ae vim/vimrc --- a/vim/vimrc Thu Feb 28 14:01:51 2019 -0500 +++ b/vim/vimrc Tue Mar 12 12:24:28 2019 -0400 @@ -258,9 +258,15 @@ silent! digr !, 8816 "U+2270=≰ NEITHER LESS-THAN NOR EQUAL TO silent! digr !. 8817 "U+2271=≱ NEITHER GREATER-THAN NOR EQUAL TO silent! digr xs 8339 "U+2093=ₓ SUBSCRIPT X -silent! digr ns 8345 "U+2093=ₙ SUBSCRIPT N +silent! digr ls 8343 "U+2097=ₗ SUBSCRIPT L +silent! digr ms 8344 "U+2098=ₗ SUBSCRIPT M +silent! digr ns 8345 "U+2099=ₙ SUBSCRIPT N +silent! digr ps 8346 "U+209A=ₚ SUBSCRIPT P +silent! digr ss 8347 "U+209B=ₛ SUBSCRIPT S +silent! digr ts 8348 "U+209C=ₜ SUBSCRIPT T silent! digr >< 8652 "U+21cc=⇌ EQUILIBRIUM silent! digr o+ 8853 "U+2295=⊕ CIRCLED PLUS +silent! digr -^ 8593 "U+2191=↑ UPWARDS ARROW " }}} " Convenience mappings ---------------------------------------------------- {{{ @@ -1406,7 +1412,7 @@ au FileType go nnoremap M :GoDoc au FileType go nnoremap t :GoInfo au FileType go nnoremap h :GoDocBrowser - au FileType go nnoremap b :GoBuild + au FileType go nnoremap c :GoBuild " this language is incredible au FileType go iabbrev ernil if err != nil {return nil, errjA @@ -2157,7 +2163,7 @@ " Fugitive {{{ nnoremap gd :Gdiff -nnoremap gs :Gstatus +nnoremap gs :Gstatus:15wincmd_ nnoremap gw :Gwrite nnoremap ga :Gadd nnoremap gb :Gblame @@ -2165,12 +2171,16 @@ nnoremap gci :Gcommit nnoremap gm :Gmove nnoremap gr :Gremove -nnoremap gl :Shell git gl -18:wincmd \| +nnoremap gl :Clam git gll -100 \| stripcolor + augroup ft_fugitive au! - au BufNewFile,BufRead .git/index setlocal nolist + au BufRead */.git/index setlocal nolist + + " tpope is back on his bullshit + au FileType fugitive if expand('%:p') =~# '.*/.git/index' | nnoremap K :q | endif augroup END " "Hub" diff -r f01b60ea69c5 -r 80f5ec3932ae weechat/plugins.conf --- a/weechat/plugins.conf Thu Feb 28 14:01:51 2019 -0500 +++ b/weechat/plugins.conf Tue Mar 12 12:24:28 2019 -0400 @@ -73,6 +73,9 @@ python.slack.auto_open_threads = "false" python.slack.background_load_all_history = "false" python.slack.channel_name_typing_indicator = "true" +python.slack.color_buflist_muted_channels = "darkgray" +python.slack.color_reaction_suffix = "darkgray" +python.slack.color_thread_suffix = "lightcyan" python.slack.colorize_private_chats = "false" python.slack.debug_level = "3" python.slack.debug_mode = "false" @@ -94,6 +97,7 @@ python.slack.slack_api_token = "xoxp-3324703083-436133997184-447755985685-90585fad41071ee30fb518ad29831038" python.slack.slack_timeout = "20000" python.slack.switch_buffer_on_join = "true" +python.slack.thread_messages_in_channel = "false" python.slack.thread_suffix_color = "lightcyan" python.slack.unfurl_auto_link_display = "both" python.slack.unfurl_ignore_alt_text = "false" @@ -118,6 +122,9 @@ python.slack.auto_open_threads = "Automatically open threads when mentioned or inresponse to own messages." python.slack.background_load_all_history = "Load history for each channel in the background as soon as it opens, rather than waiting for the user to look at it." python.slack.channel_name_typing_indicator = "Change the prefix of a channel from # to > when someone is typing in it. Note that this will (temporarily) affect the sort order if you sort buffers by name rather than by number." +python.slack.color_buflist_muted_channels = "Color to use for muted channels in the buflist" +python.slack.color_reaction_suffix = "Color to use for the [:wave:(@user)] suffix on messages that have reactions attached to them." +python.slack.color_thread_suffix = "Color to use for the [thread: XXX] suffix on messages that have threads attached to them." python.slack.colorize_private_chats = "Whether to use nick-colors in DM windows." python.slack.debug_level = "Show only this level of debug info (or higher) when debug_mode is on. Lower levels -> more messages." python.slack.debug_mode = "Open a dedicated buffer for debug messages and start logging to it. How verbose the logging is depends on log_level." @@ -138,6 +145,7 @@ python.slack.slack_api_token = "List of Slack API tokens, one per Slack instance you want to connect to. See the README for details on how to get these." python.slack.slack_timeout = "How long (ms) to wait when communicating with Slack." python.slack.switch_buffer_on_join = "When /joining a channel, automatically switch to it as well." +python.slack.thread_messages_in_channel = "When enabled shows thread messages in the parent channel." python.slack.thread_suffix_color = "Color to use for the [thread: XXX] suffix on messages that have threads attached to them." python.slack.unfurl_auto_link_display = "When displaying ("unfurling") links to channels/users/etc, determine what is displayed when the text matches the url without the protocol. This happens when Slack automatically creates links, e.g. from words separated by dots or email addresses. Set it to "text" to only display the text written by the user, "url" to only display the url or "both" (the default) to display both." python.slack.unfurl_ignore_alt_text = "When displaying ("unfurling") links to channels/users/etc, ignore the "alt text" present in the message and instead use the canonical name of the thing being linked to."