minor improvements
authorIan Kelling <ian@iankelling.org>
Tue, 13 May 2025 00:06:59 +0000 (20:06 -0400)
committerIan Kelling <ian@iankelling.org>
Tue, 13 May 2025 00:06:59 +0000 (20:06 -0400)
brc
distro-end
subdir_files/.config/mpv/input.conf

diff --git a/brc b/brc
index 4b69d765dce5c9e773b3715ed0ee92632a41c8ff..47c24310cacf39b939120ae89f7150757f09fadd 100644 (file)
--- a/brc
+++ b/brc
@@ -4514,6 +4514,33 @@ d1() {
 }
 
 
+# maybe run command
+mbc() {
+  if (( $# <= 1 )); then
+    return
+  fi
+  local cmd="$1"
+  shift
+  "$cmd" "$@"
+}
+
+# maybe run command with options ended by --
+mbco() {
+  local arg endopt=false
+  local -a cmd
+  for arg; do
+    cmd+=("$arg")
+    shift
+    if [[ $arg == -- ]]; then
+      endopt=true
+      break
+    fi
+  done
+  if (( $# <= 0 )) || ! $endopt; then
+    return 0
+  fi
+  "${cmd[@]}" "$@"
+}
 
 # * stuff that makes sense to be at the end
 
index 88db7cbc16bea73bd798a3c4f1bc6ebffe1abb49..83380ba0ae5b3012e723e5db5a527a6c2c38aaab 100755 (executable)
@@ -1407,7 +1407,7 @@ fi
 # own umask based on it's settings file. Well, no harm leaving this
 # so it's set right from the beginning.
 sudo chfn debian-transmission -o umask=0002
-sudo usermod -a -G debian-transmission iank
+sudo usermod -aG debian-transmission iank
 
 # note i had to do this, which is persistent:
 # cd /i/k
@@ -1632,7 +1632,7 @@ soff libvirtd
 soff libvirt-guests
 # allow user to run vms, from debian handbook. libvirt-qemu
 # based on https://www.whonix.org/wiki/KVM#First-time_User.3F
-for x in iank user2; do s usermod -a -G libvirt,kvm,libvirt-qemu $x; done
+for x in iank user2; do s usermod -aG libvirt,kvm,libvirt-qemu $x; done
 
 
 pi --no-install-recommends kdeconnect
@@ -1703,6 +1703,16 @@ DEVICESCAN -a -o on -S on -n standby,q $sched \
 
 ########### misc stuff
 
+# according to
+# /a/c/machine_specific/frodo/.config/pipewire/pipewire.conf pipewire
+# uses RTKit to prioritize pipewire process by default, but if you are
+# in this group, then it uses some kernel feature that works better, but
+# if the value is too aggressive, could cause problems.
+case $codename_compat in
+  noble)
+    usermod -aG pipewire iank
+    ;;
+esac
 
 # x200 on t12, this unit fails on boot. no idea why, but it seems harmless
 systemctl mask wacom-inputattach@ttyS4.service
@@ -2273,7 +2283,7 @@ case $HOSTNAME in
     systemctl enable btrbkrust.timer
     systemctl enable btrbkr.timer
     ;;
-  esac
+esac
 
 
 hiup
index 55597599a2e7ff419f7ef418d34fd2175611d7ef..9ce157d36806629768011e8a344ae40b5e56af50 100644 (file)
@@ -7,3 +7,7 @@ b playlist-next
 
 # Skip to the previous file
 c playlist-prev
+
+# default is 5 seconds and non-exact, often much longer jump.
+RIGHT seek  3 exact
+LEFT  seek -4 exact