200426.5 · 481b64a667e8d9aca522a0455a00f32dac1f4977
initial commit of ~/bin
This brings over everything that was in my bin-only repository.
I removed scripts that were unused or were no longer understood. I also moved any work-specific scripts to a separate (private) repository.
reading declarations
Changes to bin/system76-darter-hook-sleep. All files
bin/system76-darter-hook-sleep
@@ -0,0 +1,23 @@+#!/bin/sh++# This is a systemd hook script that is run whenever+# suspend/resume takes place. It should be symlinked into+# /usr/lib/systemd/system-sleep.++# To see logs from this script, use:+#+# journalctl -b -u systemd-suspend.service++# $1 is 'pre' (going to sleep) or 'post' (waking up)+# $2 is 'suspend', 'hibernate' or 'hybrid-sleep'+case "$1/$2" in+ pre/*)+ if lsmod | grep -q thunderbolt; then+ sudo rmmod thunderbolt+ fi+ ;;+ post/*)+ /home/andrew/bin/system76-darter-set-kbd-backlight+ sudo modprobe thunderbolt+ ;;+esac