From: Ian Kelling Date: Tue, 13 May 2025 00:06:59 +0000 (-0400) Subject: minor improvements X-Git-Url: https://iankelling.org/git/?a=commitdiff_plain;h=c33c1d4f2b0755f3caf7172705f00ee5ec97df0a;p=distro-setup minor improvements --- diff --git a/brc b/brc index 4b69d76..47c2431 100644 --- 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 diff --git a/distro-end b/distro-end index 88db7cb..83380ba 100755 --- a/distro-end +++ b/distro-end @@ -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 diff --git a/subdir_files/.config/mpv/input.conf b/subdir_files/.config/mpv/input.conf index 5559759..9ce157d 100644 --- a/subdir_files/.config/mpv/input.conf +++ b/subdir_files/.config/mpv/input.conf @@ -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