23 lines
564 B
Bash
23 lines
564 B
Bash
# fix for screen readers
|
|
if grep -Fqa 'accessibility=' /proc/cmdline &> /dev/null; then
|
|
setopt SINGLE_LINE_ZLE
|
|
fi
|
|
|
|
~/.automated_script.sh
|
|
|
|
if bash -c "ls /sys/class/backlight/*/max_brightness" > /dev/null 2>&1;
|
|
then
|
|
cat /sys/class/backlight/*/max_brightness > /sys/class/backlight/*/brightness
|
|
fi;
|
|
|
|
pushd "PortValhalla" > /dev/null
|
|
|
|
git diff -p -R --no-ext-diff --no-color --diff-filter=M \
|
|
| grep -E "^(diff|(old|new) mode)" --color=never \
|
|
| sed "/^diff/{ x; d; }; x; /./{ p; z; }; x;" \
|
|
| git apply
|
|
|
|
popd > /dev/null
|
|
|
|
loadkeys de_CH-latin1
|