25d490edffa6

Updates
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Tue, 02 Oct 2018 17:21:20 -0700
parents e68c9ecc9e4a
children 1e78d665c002
branches/tags (none)
files bin/echom bin/mkpass bin/stumpish fish/functions/ep.fish lisp/clhs.lisp mutt/muttrc mutt/offlineimaplinux.py stumpwmrc weechat/plugins.conf

Changes

--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/bin/echom	Tue Oct 02 17:21:20 2018 -0700
@@ -0,0 +1,4 @@
+#!/usr/bin/env bash
+
+set -euo pipefail
+~/.stumpwm.d/modules/util/stumpish/stumpish echo "$@" >&2
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/bin/mkpass	Tue Oct 02 17:21:20 2018 -0700
@@ -0,0 +1,1 @@
+../../mkpass/mkpass
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/bin/stumpish	Tue Oct 02 17:21:20 2018 -0700
@@ -0,0 +1,1 @@
+../../../.stumpwm.d/modules/util/stumpish/stumpish
\ No newline at end of file
--- a/fish/functions/ep.fish	Tue Oct 02 17:19:13 2018 -0700
+++ b/fish/functions/ep.fish	Tue Oct 02 17:21:20 2018 -0700
@@ -1,7 +1,14 @@
 function ep -d "Edit .plan"
-    hg -R ~/.plan pull -u
-    nvim ~/.plan/README.markdown
-    hg -R ~/.plan ci -m 'Update'
-    hg -R ~/.plan push
-    hg -R ~/.plan push git
+    switch (hostname)
+    case alephnull
+        cd ~/.plan
+        nvim README.markdown
+        git cm 'Update' -a
+    case '*'
+        hg -R ~/.plan pull -u
+        nvim ~/.plan/README.markdown
+        hg -R ~/.plan ci -m 'Update'
+        hg -R ~/.plan push
+        hg -R ~/.plan push git
+    end
 end
--- a/lisp/clhs.lisp	Tue Oct 02 17:19:13 2018 -0700
+++ b/lisp/clhs.lisp	Tue Oct 02 17:21:20 2018 -0700
@@ -52,7 +52,9 @@
 
 
 (defun clhs-base-url ()
-  "file:///home/sjl/Dropbox/HyperSpec/HyperSpec/")
+  ;; "http://www.lispworks.com/documentation/HyperSpec/"
+  "file:///home/sjl/Dropbox/HyperSpec/HyperSpec/"
+  )
 
 (defun clhs-cache-directory ()
   (let ((cache-dir
--- a/mutt/muttrc	Tue Oct 02 17:19:13 2018 -0700
+++ b/mutt/muttrc	Tue Oct 02 17:21:20 2018 -0700
@@ -154,7 +154,7 @@
 set sendmail_wait = 0 # no please don't silently fail, email is important
 unset record
 
-source ~/Dropbox/Settings/mail-accounts/accounts
+source ~/.mutt/accounts
 
 # }}}
 # Key Bindings {{{
--- a/mutt/offlineimaplinux.py	Tue Oct 02 17:19:13 2018 -0700
+++ b/mutt/offlineimaplinux.py	Tue Oct 02 17:21:20 2018 -0700
@@ -5,6 +5,7 @@
 def get_keychain_pass(account=None, command='pass'):
     print("\nBOOP\n")
     full_command = "%s '%s'" % (command, account)
-    output = subprocess.check_output(full_command, shell=True, stderr=subprocess.STDOUT)
-    return output.splitlines()[0]
+    output = subprocess.check_output(full_command, shell=True)
+    password = output.splitlines()[0]
+    return password
 
--- a/stumpwmrc	Tue Oct 02 17:19:13 2018 -0700
+++ b/stumpwmrc	Tue Oct 02 17:21:20 2018 -0700
@@ -171,8 +171,8 @@
           (next-group))))))
 
 (defcommand screen-single () ()
-  (loop with laptop = "eDP1"
-        with extern = "HDMI2"
+  (loop with laptop = "eDP-1"
+        with extern = "DP-1"
         for (output commands) in `((,extern ("--off"))
                                    ;; (,rhs-name ("--auto"))
                                    ;; (,rhs-name ("--primary"))
@@ -184,14 +184,15 @@
         do (uiop:run-program `("xrandr" "--output" ,output ,@commands))))
 
 (defcommand screen-multi () ()
-  (loop with laptop = "eDP1"
-        with extern = "DP1"
+  (loop with laptop = "eDP-1"
+        with extern = "DP-1"
         for (output commands) in `((,laptop ("--off"))
                                    (,extern ("--off"))
                                    (,laptop ("--auto"))
-                                   (,laptop ("--primary"))
-                                   (,extern ("--mode" "2560x1440"))
-                                   (,extern ("--left-of" ,laptop)))
+                                   (,extern ("--auto"))
+                                   (,extern ("--primary"))
+                                   ;; (,extern ("--mode" "2560x1440"))
+                                   (,extern ("--right-of" ,laptop)))
         do (uiop:run-program `("xrandr" "--output" ,output ,@commands))))
 
 (defcommand vlime () ()
@@ -284,6 +285,7 @@
   ("H-b" "browser")
   ("H-o" "spotify")
   ("H-I" "intellij")
+  ("H-L" "libreoffice")
   ("H-q" "exec slock")
   ("H-y" "screenshot-area")
   ("H-Y" "screenshot-screen")
@@ -331,6 +333,7 @@
   ("H-F8" "screen-multi"))
 
 (define-top-keys ;; sound
+  ("H-F1" "mute")
   ("H-F2" "exec amixer -q sset Master 5%-")
   ("H-F3" "exec amixer -q sset Master 5%+"))
 
@@ -339,9 +342,8 @@
   ("s-F10" "set-pop-timer"))
 
 (define-top-keys ;; stump
-  ("H-F9" "sleep-machine")
-  ("H-F10" "exec keysettings")
   ("Pause" "exec st") ; jesus christ
+  ("H-F10" "sleep-machine")
   ("H-F11" "toggle-current-mode-line")
   ("H-F12" "restart-hard"))
 
@@ -361,10 +363,12 @@
      ;; interest of not having a random collection of bookmarks grow over time,
      ;; I'll just add a mapping to compensate for my stupid brain.
      ("C-d" . "C-w")
+     ("C-w" . "C-BackSpace")
      ;; todo debug why this breaks a really fast C-a-k roll
      ;; ("C-a" . "Home")
      ;; ("C-e" . "End")
      ("s-a" . "C-a")
+     ("s-d" . "C-d")
      ("s-l" . "C-l")
      ("s-t" . "C-t")
      ("s-w" . "C-w")
@@ -400,12 +404,13 @@
                             " ")
 
       (hostcase
-        (:mobius '("(B "
-                        (:eval (princ-to-string (battery)))
-                        ")"
-                        " (BR "
-                        (:eval (princ-to-string (brightness)))
-                        "%)")))
+        ((:mobius :alephnull)
+         '("(B "
+           (:eval (princ-to-string (battery)))
+           ")"
+           " (BR "
+           (:eval (princ-to-string (brightness)))
+           "%)")))
 
       ;; time and tray
       (list " %d %T")))
--- a/weechat/plugins.conf	Tue Oct 02 17:19:13 2018 -0700
+++ b/weechat/plugins.conf	Tue Oct 02 17:21:20 2018 -0700
@@ -1,13 +1,6 @@
 #
 # weechat -- plugins.conf
 #
-# WARNING: It is NOT recommended to edit this file by hand,
-# especially if WeeChat is running.
-#
-# Use /set or similar command to change settings in WeeChat.
-#
-# For more info, see: https://weechat.org/doc/quickstart
-#
 
 [var]
 fifo.fifo = "on"
@@ -70,32 +63,6 @@
 python.notification_center.show_message_text = "on"
 python.notification_center.show_private_message = "on"
 python.notification_center.sound = "off"
-python.slack.background_load_all_history = "false"
-python.slack.channel_name_typing_indicator = "false"
-python.slack.colorize_private_chats = "false"
-python.slack.debug_level = "3"
-python.slack.debug_mode = "false"
-python.slack.distracting_channels = ""
-python.slack.external_user_suffix = "*"
-python.slack.group_name_prefix = "&"
-python.slack.map_underline_to = "_"
-python.slack.migrated = "true"
-python.slack.never_away = "true"
-python.slack.record_events = "false"
-python.slack.render_bold_as = "bold"
-python.slack.render_italic_as = "italic"
-python.slack.send_typing_notice = "false"
-python.slack.server_aliases = ""
-python.slack.shared_name_prefix = "%"
-python.slack.short_buffer_names = "false"
-python.slack.show_reaction_nicks = "false"
-python.slack.slack_api_token = "${sec.data.slack_token}"
-python.slack.slack_timeout = "20000"
-python.slack.switch_buffer_on_join = "true"
-python.slack.thread_suffix_color = "lightcyan"
-python.slack.unfurl_auto_link_display = "both"
-python.slack.unfurl_ignore_alt_text = "false"
-python.slack.unhide_buffers_with_activity = "false"
 ruby.check_license = "on"
 tcl.check_license = "on"
 
@@ -113,28 +80,3 @@
 perl.colorize_lines.nicks = "comma separated list with nicknames. Only messages from nicks in this list will be colorized. (e.g.: freenode.nils_2,freenode.flashcode,freenode.weebot). You can also give a filename with nicks. The filename has to start with "/" (e.g.: /buddylist.txt). The format has to be: one nick each line with <servername>.<nickname>"
 perl.colorize_lines.own_lines = "colors own written messages (default: off)"
 perl.colorize_lines.shuffle = "toggle shuffle color mode for chats area (default: off)"
-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.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."
-python.slack.distracting_channels = "List of channels to hide."
-python.slack.external_user_suffix = "The suffix appended to nicks to indicate external users."
-python.slack.group_name_prefix = "The prefix of buffer names for groups (private channels)."
-python.slack.map_underline_to = "When sending underlined text to slack, use this formatting character for it. The default ("_") sends it as italics. Use "*" to send bold instead."
-python.slack.never_away = "Poke Slack every five minutes so that it never marks you "away"."
-python.slack.record_events = "Log all traffic from Slack to disk as JSON."
-python.slack.render_bold_as = "When receiving bold text from Slack, render it as this in weechat."
-python.slack.render_italic_as = "When receiving bold text from Slack, render it as this in weechat. If your terminal lacks italic support, consider using "underline" instead."
-python.slack.send_typing_notice = "Alert Slack users when you are typing a message in the input bar (Requires reload)"
-python.slack.server_aliases = "A comma separated list of `subdomain:alias` pairs. The alias will be used instead of the actual name of the slack (in buffer names, logging, etc). E.g `work:no_fun_allowed` would make your work slack show up as `no_fun_allowed` rather than `work.slack.com`."
-python.slack.shared_name_prefix = "The prefix of buffer names for shared channels."
-python.slack.short_buffer_names = "Use `foo.#channel` rather than `foo.slack.com.#channel` as the internal name for Slack buffers. Overrides server_aliases."
-python.slack.show_reaction_nicks = "Display the name of the reacting user(s) alongside each reactji."
-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_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."
-python.slack.unhide_buffers_with_activity = "When activity occurs on a buffer, unhide it even if it was previously hidden (whether by the user or by the distracting_channels setting)."