# HG changeset patch # User Steve Losh # Date 1529960162 14400 # Node ID a1d399ef7d5465bc1fa89f245527f93f6fcc6598 # Parent 8899300998c043af7c6266b294f754846d49defc Updates for Linux diff -r 8899300998c0 -r a1d399ef7d54 .hgsubstate --- a/.hgsubstate Sun Jun 10 09:18:15 2018 -0700 +++ b/.hgsubstate Mon Jun 25 16:56:02 2018 -0400 @@ -39,5 +39,5 @@ f6f2d6618a321f5b0065586a7bc934325fec81ab vim/bundle/targets 5d5c71044880443035e07009497962feacb56b20 vim/bundle/vimtex bf3fd7f67e730f93765bd3c1cfcdb18fd4043521 vim/bundle/vitality -bc3ea6be7274265c85bd9ab3416357a233436f4e vim/bundle/vlime +e11566f89afdb7745bd2c1f17c2cd4daf4bbcab9 vim/bundle/vlime 6876fe38b33732cb124d415ffc4156f16da5e118 vim/bundle/windowswap diff -r 8899300998c0 -r a1d399ef7d54 bin/cacl --- a/bin/cacl Sun Jun 10 09:18:15 2018 -0700 +++ b/bin/cacl Mon Jun 25 16:56:02 2018 -0400 @@ -3,5 +3,6 @@ set -e LISPS=("sbcl" "ccl" "abcl" "ecl") -~/src/cacl/cacl-$(gshuf -n1 -e "${LISPS[@]}") +LISPS=("sbcl") +~/src/cacl/cacl-$(shuf -n1 -e "${LISPS[@]}") diff -r 8899300998c0 -r a1d399ef7d54 dunstrc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/dunstrc Mon Jun 25 16:56:02 2018 -0400 @@ -0,0 +1,43 @@ +[global] + font = "Monospace 8" + allow_markup = yes + format = "%s %p\n%b" + sort = yes + indicate_hidden = true + # geometry = "x5" + idle_threshold = 60 + geometry = "300x5-20+20" + alignment = left + show_age_threshold = 60 + sticky_history = yes + follow = mouse + word_wrap = yes + separator_height = 2 + padding = 10 + horizontal_padding = 10 + separator_color = frame + startup_notification = true + # dmenu = "/usr/bin/dmenu -p dunst: -nb #FFFFFF -nf #000000 -sb #94DBFF -sf #000000" + browser = xdg-open + +[shortcuts] + close_all = ctrl+Return + +[frame] + width = 3 + color = "#000000" + +[urgency_low] + background = "#ffffff" + foreground = "#000000" + timeout = 10 + +[urgency_normal] + background = "#94DBFF" + foreground = "#000000" + timeout = 25 + +[urgency_critical] + background = "#ff9999" + foreground = "#000000" + timeout = 0 diff -r 8899300998c0 -r a1d399ef7d54 lispwords --- a/lispwords Sun Jun 10 09:18:15 2018 -0700 +++ b/lispwords Mon Jun 25 16:56:02 2018 -0400 @@ -111,3 +111,6 @@ ; lparallel (1 pdotimes) + +; stumpwm +(3 defcommand) diff -r 8899300998c0 -r a1d399ef7d54 mutt/muttrc --- a/mutt/muttrc Sun Jun 10 09:18:15 2018 -0700 +++ b/mutt/muttrc Mon Jun 25 16:56:02 2018 -0400 @@ -11,7 +11,7 @@ # Editor {{{ # Use Vim to compose email, with a few default options. -set editor = "/usr/local/bin/nvim -c 'normal! }' -c 'redraw'" +set editor = "nvim -c 'normal! }' -c 'redraw'" # }}} # Contacts {{{ @@ -233,7 +233,7 @@ # }}} # "Open in Vim" {{{ -macro index,pager V "|vim -c 'setlocal ft=mail' -c 'setlocal buftype=nofile' -" "open in vim" +macro index,pager V "|nvim -c 'setlocal ft=mail' -c 'setlocal buftype=nofile' -" "open in vim" # }}} diff -r 8899300998c0 -r a1d399ef7d54 vim/vimrc --- a/vim/vimrc Sun Jun 10 09:18:15 2018 -0700 +++ b/vim/vimrc Mon Jun 25 16:56:02 2018 -0400 @@ -516,6 +516,7 @@ nnoremap ed :vsplit ~/.vim/custom-dictionary.utf-8.add nnoremap ef :vsplit ~/.config/fish/config.fish nnoremap eg :vsplit ~/.gitconfig +nnoremap es :vsplit ~/.stumpwmrc nnoremap eh :vsplit ~/.hgrc nnoremap el :vsplit ~/.lispwords nnoremap em :vsplit ~/.mutt/muttrc diff -r 8899300998c0 -r a1d399ef7d54 weechat/python/autoload/notify.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/weechat/python/autoload/notify.py Mon Jun 25 16:56:02 2018 -0400 @@ -0,0 +1,29 @@ +import weechat, subprocess + +SCRIPT_NAME = 'notify' +SCRIPT_AUTHOR = 'Steve Losh ' +SCRIPT_VERSION = '0.0.1' +SCRIPT_LICENSE = 'MIT' +SCRIPT_DESC = 'notify-send for weechat' + +weechat.register(SCRIPT_NAME, SCRIPT_AUTHOR, SCRIPT_VERSION, SCRIPT_LICENSE, SCRIPT_DESC, '', '') + +weechat.hook_print('', 'irc_privmsg', '', 1, 'notify', '') + +def _notify(text): + subprocess.call(['notify-send', text]) + +def notify(data, buffer, date, tags, displayed, highlight, prefix, message): + # ignore if it's yourself + own_nick = weechat.buffer_get_string(buffer, 'localvar_nick') + + if prefix == own_nick or prefix == ('@%s' % own_nick): + return weechat.WEECHAT_RC_OK + + if int(highlight): + channel = weechat.buffer_get_string(buffer, 'localvar_channel') + _notify('%s %s\n%s' % (prefix, channel, message)) + elif 'notify_private' in tags: + _notify('%s [PM]\n%s' % (prefix, message)) + + return weechat.WEECHAT_RC_OK diff -r 8899300998c0 -r a1d399ef7d54 xsessionrc --- a/xsessionrc Sun Jun 10 09:18:15 2018 -0700 +++ b/xsessionrc Mon Jun 25 16:56:02 2018 -0400 @@ -19,5 +19,7 @@ xcape -t 200 -e 'Control_L=Escape' xautolock -time 15 -locker /usr/bin/slock & +/usr/bin/dunst -config $HOME/.dunstrc & + exec /usr/local/bin/stumpwm