minor improvements
authorIan Kelling <ian@iankelling.org>
Wed, 1 Jul 2026 10:31:33 +0000 (06:31 -0400)
committerIan Kelling <ian@iankelling.org>
Wed, 1 Jul 2026 10:31:33 +0000 (06:31 -0400)
brc2
distro-end
filesystem/usr/local/bin/check-stale-alerts
filesystem/usr/local/bin/i3-emacs
g-lib.sh
i3-sway/common.conf
mail-setup
subdir_files/.local/share/kxmlgui5/konsole/sessionui.rc

diff --git a/brc2 b/brc2
index c0cac148ec37dbeb300e35a6e11d570abe1cdab1..9f43626a1922a4ba55cb2bbf1defaeca11b9cb40 100644 (file)
--- a/brc2
+++ b/brc2
@@ -5124,7 +5124,7 @@ mnt-df() {
   local f mnts
   cd /mnt;
   mnts=$(for f in *; do if mountpoint -q $f; then e $f; fi; done)
-  df -h $mnts  | awk '{printf "%8s %12s\n", $4,$NF}' | sort -hr
+  df -h $mnts | tail -n+2  | awk '{printf "%8s %12s\n", $4,$NF}' | sort -hr
 }
 
 lazywrites() {
index 1b66a78d332eae0678915683747f239f736b5e7b..488075c1a3f4c5148a5ac59ef5004c1123a3ccb0 100755 (executable)
@@ -2189,7 +2189,6 @@ esac
 # todo: enable frodo specific backup timers here
 
 # misc
-sgo hist-catcher
 
 # console font size
 if [[ $HOSTNAME == sf ]] && ! grep -q '^FONTFACE="TER"' /etc/default/console-setup; then
index da50261ca0e1b85ca02c35c929bed5bd8da1b052..9de27f2a085eae2b0b689a91c8958d82acaa51f1 100755 (executable)
@@ -57,4 +57,4 @@ done
 # for .prom.$PID files, they will naturally exist when
 # scripts like system-status get killed on reboot.
 # Just clean them up here.
-find /var/lib/prometheus/node-exporter -name '*[0-9]' -type f -mtime 9 -delete
+find /var/lib/prometheus/node-exporter -name '*[0-9]' -type f -mtime +9 -delete
index 18eddd54d7862370c4f1025c19a724a6a35e4a24..8e539c7cb77a0650d77f8e3a54bf02cdefd08e21 100755 (executable)
@@ -23,7 +23,7 @@
 # If there are more than one, just get the 1st one. There is probably
 # some better behavior to do in that case, but atm I don't want to think
 # about it.
-id=$(i3-msg -t get_tree | jq -e '.. | select(.name?) | select(.name | test("^e-iak ")).id'| sort -n| head -n1)
+id=$(i3-msg -t get_tree | jq -e '.. | select(.name?) | select(.name | test("^e-server ")).id'| sort -n| head -n1)
 
 if [[ $id ]]; then
   i3-msg "[con_id=\"$id\"] focus"
index 7fb15d9d6df7b9a416799960525cd6fc36068da1..54acd6b93b6b4eaa82ab9ffdcbc5fd7edbf725f4 100755 (executable)
--- a/g-lib.sh
+++ b/g-lib.sh
@@ -20,22 +20,30 @@ g() {
 
   local args gdb=false server="$1"
   shift
+  local new_frame_workspace create_frame=false
+
+  # special arg for some scripts. must come first.
+  if [[ $1 == --i3ws=[0-9]* ]]; then
+    new_frame_workspace=${1#--i3ws=}
+    shift
+  fi
 
   if [[ $DISPLAY ]]; then
     args=-n
   fi
 
   if (( $# == 0 )); then
+    create_frame=true
     args+=" -c"
   fi
 
   if [[ $server == none ]]; then
     server=
-    else
-    args+=" -s $server"
+  else
+    args+=" -s$server"
   fi
 
-  id=$(i3-msg -t get_tree | jq -e '.. | select(.name?) | select(.name | test("^e-'$server'iak ")).id'| sort -n| head -n1)
+  id=$(i3-msg -t get_tree | jq -e '.. | select(.name?) | select(.name | test("^e-'$server' ")).id'| sort -n| head -n1)
 
   if [[ ! $id ]]; then
     if (( $# == 0 )) && type -p gdb &>/dev/null; then
@@ -43,7 +51,7 @@ g() {
       #gdb=true
       :
     else
-      # duplicate arg, but oh well.
+      create_frame=true
       args+=" -c"
     fi
   fi
@@ -60,6 +68,9 @@ g() {
     # shellcheck disable=SC2103 # preference for simplicity.
     cd -
   else
+    if $create_frame && [[ $new_frame_workspace ]]; then
+      i3-msg "workspace $new_frame_workspace"
+    fi
     emacsclient -a "" $args "$@"
   fi
 }
index 4605376e5a6fbbe2a6dba7f19f9dd02ef728fd22..f8bdc7bfd5349dc9690ea2cb5a93b63e984ae447 100644 (file)
@@ -230,4 +230,3 @@ client.focused          #4c7899 #285577 #ffffff #2e9ef4   #ff4400
 client.focused_inactive #333333 #5f676a #ffffff #484e50   #B8C8CD
 client.unfocused        #333333 #222222 #888888 #292d2e   #B8C8CD
 
-assign [instance="mpv-i3-ws6"] 6
index 613e7dbdbbed74a9d293cebc51139f7e205800c8..971ec5c1e7676f454d35675732a8b3539603528a 100755 (executable)
@@ -477,7 +477,7 @@ fi
 bhost_t=false
 case $HOSTNAME in
   $MAIL_HOST) : ;;
-  kd|x2|x3|kw|sy|so|frodo)
+  kd|x2|x3|kw|sf|sy|so|frodo)
     bhost_t=true
     ;;
 esac
index 9faefbf8a1eacdc5404d3fee8af52f2a5dfd4e99..09c721e96a0b595cf7f4b07af610f801c510439a 100644 (file)
   <Action name="edit-current-profile"/>
  </Menu>
  <ActionProperties>
-  <Action name="edit_find_next" shortcut="Ctrl+Shift+R"/>
-  <Action name="edit_find_prev" shortcut="Ctrl+Shift+E"/>
-  <Action name="enlarge-font" shortcut="Ctrl++; "/>
-  <Action name="open-browser" shortcut="Ctrl+@"/>
-  <Action name="rename-session" shortcut=""/>
-  <Action name="zmodem-upload" shortcut=""/>
+  <Action shortcut="Ctrl+Shift+R" name="edit_find_next"/>
+  <Action shortcut="Ctrl+Shift+E" name="edit_find_prev"/>
+  <Action shortcut="Ctrl++; " name="enlarge-font"/>
+  <Action shortcut="Ctrl+@" name="open-browser"/>
+  <Action shortcut="" name="rename-session"/>
+  <Action shortcut="" name="zmodem-upload"/>
  </ActionProperties>
 </gui>