various improvements
authorIan Kelling <ian@iankelling.org>
Tue, 4 Aug 2020 18:49:16 +0000 (14:49 -0400)
committerIan Kelling <ian@iankelling.org>
Tue, 4 Aug 2020 18:49:16 +0000 (14:49 -0400)
brc
brc2
filesystem/etc/profile.d/environment.sh
i3-sway/common.conf
mail-setup
pkgs
radicale-setup
subdir_files/.config/i3/config
subdir_files/.config/sway/config
subdir_files/.gnupg/gpg.conf
xl

diff --git a/brc b/brc
index c815ffdb448a5f234e8cadd899a34b74d3a58ea3..f00310c2fe6d230e68590d8b726d5369b6d72428 100644 (file)
--- a/brc
+++ b/brc
@@ -657,9 +657,9 @@ grr() { # grep recursive
   # Don't return 1 on nonmatch because this is meant to be
   # interactive, not in a conditional.
   if [[ ${#@} == 1 ]]; then
-    grep --exclude-dir='*.emacs.d' --exclude-dir='*.git' -RiIP --color=auto "$@" . || [[ $? == 1 ]]
+    grep --exclude-dir='*.emacs.d' --exclude-dir='*.git' -riIP --color=auto "$@" . || [[ $? == 1 ]]
   else
-    grep --exclude-dir='*.emacs.d' --exclude-dir='*.git' -RiIP --color=auto "$@" || [[ $? == 1 ]]
+    grep --exclude-dir='*.emacs.d' --exclude-dir='*.git' -riIP --color=auto "$@" || [[ $? == 1 ]]
   fi
 }
 rg() {
diff --git a/brc2 b/brc2
index 472718e72d82d9648ece2f60f3cb6860395d7385..8da9bbf63b7ebdbd2dbe034b3d818a569f5b8ae2 100644 (file)
--- a/brc2
+++ b/brc2
@@ -45,6 +45,10 @@ tback() {
 }
 
 
+gnupload(){
+  /a/f/gnulib/build-aux/gnupload "$@"
+}
+
 # todo, update this
 complete -F _longopt la lower low rlt rld rl lld ts ll dircp ex fcp fct fpst gr
 
@@ -1046,8 +1050,21 @@ sl() {
   # inspired from https://github.com/Russell91/sshrc
 
 
-  local now args remote dorsync haveinfo tmpa sshinfo tmp tmp2 type info_sec force_rsync
+  local now args remote dorsync haveinfo tmpa sshinfo tmp tmp2 type info_sec force_rsync \
+        sshinfo_dir sync_files_dir sync_files_dir
   declare -a args tmpa
+  # This folder stores info about what we detected or synced. We expect it to exist
+  # ahead of time. Change it for your own system.
+  sshinfo_dir=/p/sshinfo
+
+  # This folder should contain files or symlinks to all files that
+  # should be rsynced to unknown hosts. The directory name is important,
+  # it will be created on the remote host under /root. symlinks will be
+  # resolved. It is expected to contain at least a .bashrc file or
+  # symlink.
+  sync_files_dir=/b/ds/sl/.iank
+  sync_dirname=${sync_files_dir##*/}
+
   now=$(date +%s)
 
   # ssh [-1246Antivivisectionist] [-b bind_address] [-c cipher_spec] [-D [bind_address:]port]
@@ -1095,7 +1112,8 @@ sl() {
   fi
   dorsync=false
   haveinfo=false
-  tmpa=(/p/sshinfo/???????????"$remote")
+
+  tmpa=($sshinfo_dir/???????????"$remote")
   sshinfo=${tmpa[0]}
   if [[ -e $sshinfo ]]; then
     if $force_rsync; then
@@ -1110,7 +1128,7 @@ sl() {
     type=${tmp2: -1}
     if [[ $type == b ]]; then
       info_sec=${tmp::10}
-      for f in /b/ds/sl/.iank/*; do
+      for f in $sync_files_dir/*; do
         if (( $(stat -L -c%Y $f) > info_sec )); then
           dorsync=true
           rm -f $sshinfo
@@ -1120,7 +1138,7 @@ sl() {
     fi
   else
     # use this weird yes thing to ensure we know ssh succeeded
-    if ! tmp=$(command ssh "${args[@]}" "$remote" "if test -e /a/bin/ds/.bashrc -a -L .bashrc; then echo yes; fi"); then
+    if ! tmp=$(command ssh "${args[@]}" "$remote" "if test -e $sync_files_dir/.bashrc -a -L .bashrc; then echo yes; fi"); then
       echo failed sl test. doing plain ssh -v
       command ssh -v "${args[@]}" "$remote"
     fi
@@ -1132,10 +1150,10 @@ sl() {
     fi
   fi
   if $dorsync; then
-    RSYNC_RSH="ssh ${args[*]}" rsync -rptL /b/ds/sl/.iank "$remote":
+    RSYNC_RSH="ssh ${args[*]}" rsync -rptL $sync_files_dir "$remote":
   fi
   if $dorsync || ! $haveinfo; then
-    sshinfo=/p/sshinfo/$now$type"$remote"
+    sshinfo=$sshinfo_dir/$now$type"$remote"
     touch $sshinfo
     chmod 666 $sshinfo
   fi
@@ -1145,14 +1163,14 @@ sl() {
       # Theres a couple ways to do this. im not sure whats best,
       # but relying on bash 4.4+ escape quoting seems most reliable.
       command ssh "${args[@]}" "$remote" \
-              BRC=t bash -c '.\ .iank/.bashrc\;"\"\$@\""' bash ${@@Q}
+              BRC=t bash -c '.\ '$sync_dirname'/.bashrc\;"\"\$@\""' bash ${@@Q}
     elif [[ ! -t 0 ]]; then
       # This case is when commands are being piped to ssh.
       # Normally, no bashrc gets sourced.
       # But, since we are doing all this, lets source it because we can.
-      cat <(echo . .iank/.bashrc) - | command ssh "${args[@]}" "$remote" BRC=t bash
+      cat <(echo . $sync_dirname/.bashrc) - | command ssh "${args[@]}" "$remote" BRC=t bash
     else
-      command ssh -t "${args[@]}" "$remote" BRC=t INPUTRC=.iank/.inputrc bash --rcfile .iank/.bashrc
+      command ssh -t "${args[@]}" "$remote" BRC=t INPUTRC=$sync_dirname/.inputrc bash --rcfile $sync_dirname/.bashrc
     fi
   else
     if [[ -t 0 ]]; then
index ef303ba16fb97a7f8c5015dd87bd920c49028c87..e880ab0ed52beb976362f27281aecbc0d5aa6ec4 100644 (file)
@@ -3,6 +3,8 @@ if [ -f $HOME/path-add-function ]; then
   . $HOME/path-add-function
   path-add /usr/sbin /usr/local/sbin /sbin /a/exe /a/opt/bin
   path-add --end $HOME/.cabal/bin
+  path-add --end /snap/bin
+
 
   for p in $HOME/.gem/ruby/*/bin; do
     path-add --ifexists --end $p
index e44baf5f5531815111feb493dfcda9e8a90e1a20..7bc5fc20311a444e5769a8234f6c461a9a85d953 100644 (file)
@@ -85,6 +85,8 @@ font pango:monospace 8
 #exec --no-startup-id /usr/lib/x86_64-linux-gnu/libexec/kdeconnectd
 
 # Start clipster daemon
-exec --no-startup-id /a/opt/clipster/clipster -d
+#exec --no-startup-id /a/opt/clipster/clipster -d
+
+
 # shortcut to selection widget (primary)
 bindsym $mod+End exec /a/opt/clipster/clipster -sp
index 5b8cdf7b866a8e09eadebf5fca953c28e0561ede..1e073baf892d880c91576cab203e3f81efd38642 100755 (executable)
@@ -1044,6 +1044,7 @@ fi
 
 
 
+
 # * reload exim
 
 if systemctl is-active exim4 >/dev/null; then
diff --git a/pkgs b/pkgs
index b36efb3f42d0c16b249d823181de3819aecd0b5f..d073599853dcf0583e25cb869506ab6f79976b4f 100644 (file)
--- a/pkgs
+++ b/pkgs
@@ -110,6 +110,7 @@ p3=(
   geoip-bin
   geoip-database
   geoip-database-extra
+  gimp
   git-doc
   git-email
   git-svn
index 657a0e9571084d7491a713c065064174621c4129..3e3a997bf400af79a79578970c27fd863757558c 100755 (executable)
@@ -16,7 +16,7 @@ fi
 
 source /a/bin/bash_unpublished/source-state
 source /a/bin/distro-functions/src/package-manager-abstractions
-# davdroid setup instructions at the bottom
+# davx/davdroid setup instructions at the bottom
 
 # main docs:
 # http://radicale.org/user_documentation/
index b62b5e57e50966a095ca0154d88a3d9dc7613c69..8c6f2e1d7745c9753b3e529a5c5314a8e8094ed4 100644 (file)
@@ -85,7 +85,9 @@ font pango:monospace 8
 #exec --no-startup-id /usr/lib/x86_64-linux-gnu/libexec/kdeconnectd
 
 # Start clipster daemon
-exec --no-startup-id /a/opt/clipster/clipster -d
+#exec --no-startup-id /a/opt/clipster/clipster -d
+
+
 # shortcut to selection widget (primary)
 bindsym $mod+End exec /a/opt/clipster/clipster -sp
 # exit i3 (logs you out of your X session)
index 928bb0503a837a0c6aa4bd66cdb3f20b7af5f241..494f7a7a20fa613a0b6f8c29659185acfa541279 100644 (file)
@@ -85,7 +85,9 @@ font pango:monospace 8
 #exec --no-startup-id /usr/lib/x86_64-linux-gnu/libexec/kdeconnectd
 
 # Start clipster daemon
-exec --no-startup-id /a/opt/clipster/clipster -d
+#exec --no-startup-id /a/opt/clipster/clipster -d
+
+
 # shortcut to selection widget (primary)
 bindsym $mod+End exec /a/opt/clipster/clipster -sp
 # exit sway (logs you out of your Wayland session)
index 172e3a03d67ceae56e7796deea28120fe20a3a27..19d62eac74e4ebd566051b823eeb6e7cb7bcd4a0 100644 (file)
@@ -40,10 +40,10 @@ default-key B125F60B7B287FF6A2B7DF8F170AF0E2954295DF
 #keyserver hkp://pool.sks-keyservers.net
 
 #keyserver hkp://keys.openpgp.org
-keyserver hkp://pgp.mit.edu
+#keyserver hkp://pgp.mit.edu
 #keyserver hkp://keyserver.pgp.com
 #keyserver hkp://ipv4.pool.sks-keyservers.net
-#keyserver hkp://keys.gnupg.net
+keyserver hkp://keys.gnupg.net
 #keyserver hkp://keyserver.ubuntu.com
 #keyserver hkp://keyring.debian.org
 #keyserver keyserver.ubuntu.com
diff --git a/xl b/xl
index be441bc2ea01d936b64c60ffb42e1e69be5b2d7a..3f6ac1f1c280eec301e9c4e2ff470143f56c5122 100755 (executable)
--- a/xl
+++ b/xl
@@ -1,4 +1,5 @@
 #!/bin/bash
+
 if pgrep gnome-screensav &>/dev/null; then
   # this command actually starts gnome-screensaver if it isn\'t running.
   # lololol, what crap